DC to BMP

DC to BMP

Postby Natter » Wed Oct 07, 2020 8:03 am

Hi,

I get DC ( GetDC(hWnd) ) of one window and as a BRUSH for another window. How to do this ?
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Re: DC to BMP

Postby nageswaragunupudi » Wed Oct 07, 2020 2:34 pm

You know the other hWnd

Code: Select all  Expand view

hBmp := WndBitmap( hWnd )
DEFINE BRUSH oBrush RESOURCE hBmp STRETCH
oYourWnd:SetBrush( oBrush )
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: DC to BMP

Postby Natter » Thu Oct 08, 2020 6:31 am

Thank you, it works !

I tried doing the same with FWRestScreen() and FWSaveScreen(). Also work
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 83 guests