Search:

Type: Posts; User: Tada

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    3,267

    I think RedrawWindow() may be the answer, I...

    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);...
  2. Thread: BMP File Saving

    by Tada
    Replies
    13
    Views
    2,468

    I'm going with FillYourBrain on this one, and a...

    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...
  3. Thread: Problem with XP

    by Tada
    Replies
    22
    Views
    2,075

    Heh yeh, sorry i have a habbit of editing posts...

    Heh yeh, sorry i have a habbit of editing posts :p Only just read your post.
  4. Thread: Problem with XP

    by Tada
    Replies
    22
    Views
    2,075

    Ok ignore the suggestions above, just do the...

    Ok ignore the suggestions above, just do the following:

    after:

    WNDCLASS wndclass;

    add:

    ZeroMemory(&wndclass,sizeof(WNDCLASS));
  5. Thread: Problem with XP

    by Tada
    Replies
    22
    Views
    2,075

    If it is an invalid parameter then my only...

    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...
  6. Thread: Problem with XP

    by Tada
    Replies
    22
    Views
    2,075

    RegisterClass(Ex) returns NULL if it fails, for...

    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...
  7. Replies
    13
    Views
    5,292

    Another method assuming a calculation will need...

    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...
Results 1 to 7 of 7