how is windowblinds skinning? a programmers question...
from
WinCustomize Forums
how is windowblinds skinning windows. is it just taking the window handles (hwnd) and BITBLTing the bitmaps or setting the control's background.
i tried to experiment with it. just tried to change the START button's picture. and it worked!
i got the start button's hWnd, then i found its hDC then i BITBLTed the image onto it.
for the rollover image, i set up a timer (in VB) and checked if the hWnd under the mouse's coordinates is that of the START button (by GETCURSORPOS and WINDOWFROMPOINT API) then again i BITBLTed the picture.
is it this way or someother way??
i tried to experiment with it. just tried to change the START button's picture. and it worked!
i got the start button's hWnd, then i found its hDC then i BITBLTed the image onto it.
for the rollover image, i set up a timer (in VB) and checked if the hWnd under the mouse's coordinates is that of the START button (by GETCURSORPOS and WINDOWFROMPOINT API) then again i BITBLTed the picture.
is it this way or someother way??
. But using a timer and repainting is probably a problem as well - you really only want to repaint when you have to.