DC to BMP

Post Reply
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

DC to BMP

Post by Natter »

Hi,

I get DC ( GetDC(hWnd) ) of one window and as a BRUSH for another window. How to do this ?
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: DC to BMP

Post by nageswaragunupudi »

You know the other hWnd

Code: Select all

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

G. N. Rao.
Hyderabad, India
Natter
Posts: 524
Joined: Mon May 14, 2007 9:49 am

Re: DC to BMP

Post by Natter »

Thank you, it works !

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