I think RedrawWindow() may be the answer, I generally use the following for redrawing a window entirely:
RedrawWindow([handle],NULL,NULL,RDW_INVALIDATE | RDW_FRAME | RDW_ERASE | RDW_ALLCHILDREN);...
Type: Posts; User: Tada
I think RedrawWindow() may be the answer, I generally use the following for redrawing a window entirely:
RedrawWindow([handle],NULL,NULL,RDW_INVALIDATE | RDW_FRAME | RDW_ERASE | RDW_ALLCHILDREN);...
I'm going with FillYourBrain on this one, and a quick flick through MSDN brought this up:
http://msdn.microsoft.com/library/en-us/gdi/bitmaps_7zfp.asp
I expect the code there will do what you...
Heh yeh, sorry i have a habbit of editing posts :p Only just read your post.
Ok ignore the suggestions above, just do the following:
after:
WNDCLASS wndclass;
add:
ZeroMemory(&wndclass,sizeof(WNDCLASS));
If it is an invalid parameter then my only suggestions are:
wndclass.hbrBackground=(HBRUSH)(COLOR_WINDOW+1);
This is the reccommended method to set the hbrBackground member, although i'm not...
RegisterClass(Ex) returns NULL if it fails, for any reason. Other things can cause this function call to fail, specifically, incorrect parameters in the WNDCLASS(EX) structure. At first glance, the...
Another method assuming a calculation will need to be made, which i don't believe has ben mentioned yet is to check if the first bit of the valut is set, which is equvilant to decimal 1, which causes...