WM_SetDesktopColor seems don't work

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • WM_SetDesktopColor seems don't work

    I'm trying to use WM_SetDesktopColor() function to draw the background window with a green color, but it seems it doesn't work.

    The only solution is to specify a custom callback for desktop window through WM_SetCallback(WM_HBKWIN, cbBackgroundWin); and manually manage the WM_PAINT message with the following code:

    Source Code

    1. case WM_PAINT: {
    2. GUI_RECT r;
    3. WM_GetClientRectEx(hWin, &r);
    4. GUI_SetColor(GUI_GREEN);
    5. GUI_FillRectEx(&r);
    6. break;
    7. }