
Screensaver painting problem
For LoadImage, I think you can specify NULL as the instance handle.
You can use GetWindowLong to retrieve the instance handle, as follows:
(HINSTANCE) GetWindowLong( hwnd, GWL_HINSTANCE );
An MFC app can use AfxGetInstanceHandle().
Claire Sylvestre
Quote:
>I went and got the ssaver sample from the micorsoft site.
>I messed around with the drawing code a little but now I
>want to load a bitmap from the resources to blt to the screen.
>how to i get a HINSTANCE handle to use with LoadImage or LoadBitmap?
>thanks
>Rosco