[ros-bugs] [Bug 1732] desk.cpl appearance tab + custom SysColors

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Sat Aug 5 04:46:38 CEST 2006


http://www.reactos.org/bugzilla/show_bug.cgi?id=1732





------- Comment #5 from jimtabor at adsl-64-217-116-74.dsl.hstntx.swbell.net  2006-08-05 04:46 CET -------
Hi,
You can use WM_SYSCOLORCHANGE in the desktop proc if it is used, should be!,
user32/misc/desktop.c;

static
LRESULT
WINAPI
DesktopWndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam )
{
    DPRINT1("Desktop Class Atom!\n");
    switch(message)
   {
    case WM_NCCREATE:
         return TRUE;

    case WM_CREATE:
    /* when I spy I see notify */
         SendNotifyMessageW( hwnd, WM_SYSCOLORCHANGE , 0, 0 );
    break;

    case WM_SYSCOLORCHANGE:
    /* update everything, well in theory anyway */
         RedrawWindow( hwnd, NULL, 0, RDW_INVALIDATE | RDW_ERASE |
RDW_ALLCHILDREN );
    break;

    default:
         return DefWindowProcW(hwnd,message,wParam,lParam);
    }
    return 0;  /* all other messages are ignored */
}

Its crude, I'm not sure if it will compile, its off the top of my head ATM.
8^D
Thanks,
James


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
You are the assignee for the bug, or are watching the assignee.


More information about the Ros-bugs mailing list