windows_programming_notes.nbk: Home | Index | Next Page: WM_QUERYOPEN | Previous Page: WM_QUERYENDSESSION


 WM_QUERYNEWPALETTE

The WM_QUERYNEWPALETTE message informs a window that it is about to receive the keyboard focus, giving the window the opportunity to realize its logical palette when it receives the focus.

A window receives this message through its WindowProc function.

    LRESULT CALLBACK WindowProc(
      HWND hwnd,       // handle to window
      UINT uMsg,       // WM_QUERYNEWPALETTE
      WPARAM wParam,   // not used
      LPARAM lParam    // not used
    );

Parameters

This message has no parameters.

Return Values

If the window realizes its logical palette, it must return TRUE; otherwise, it must return FALSE.

Requirements

  Windows NT/2000 or later: Requires Windows NT 3.1 or later.
  Windows 95/98/Me: Requires Windows 95 or later.
  Header: Declared in Winuser.h; include Windows.h.

windows_programming_notes.nbk: Home | Index | Next Page: WM_QUERYOPEN | Previous Page: WM_QUERYENDSESSION


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time