FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour DC to BMP
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
DC to BMP
Posted: Wed Oct 07, 2020 08:03 AM

Hi,

I get DC ( GetDC(hWnd) ) of one window and as a BRUSH for another window. How to do this ?

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: DC to BMP
Posted: Wed Oct 07, 2020 02:34 PM
You know the other hWnd

Code (fw): Select all Collapse
hBmp := WndBitmap( hWnd )
DEFINE BRUSH oBrush RESOURCE hBmp STRETCH
oYourWnd:SetBrush( oBrush )
Regards



G. N. Rao.

Hyderabad, India
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: DC to BMP
Posted: Thu Oct 08, 2020 06:31 AM

Thank you, it works !

I tried doing the same with FWRestScreen() and FWSaveScreen(). Also work

Continue the discussion