windows_programming_notes.nbk: Home | Index | Next Page: WM_DISPLAYCHANGE | Previous Page: WM_DEVICECHANGE
The WM_DEVMODECHANGE message is sent to all top-level windows whenever the user changes device-mode settings.
A window receives this message through its WindowProc function.
    LRESULT CALLBACK WindowProc(
     HWND hwnd,       // handle to window
     UINT uMsg,       // WM_DEVMODECHANGE
     WPARAM wParam,   // not used
     LPARAM lParam    // device name (LPCTSTR)
    );
An application should return zero if it processes this message.
This message cannot be sent directly to a window. To send the WM_DEVMODECHANGE message to all top-level windows, use the SendMessageTimeout function with the hWnd parameter set to HWND_BROADCAST.
windows_programming_notes.nbk: Home | Index | Next Page: WM_DISPLAYCHANGE | Previous Page: WM_DEVICECHANGE
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time