Expand
WM_QUERYNEWPALETTE Message

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, 
  UINT  uMsg, 
  WPARAM wParam, 
  LPARAM lParam     
);

Parameters

This message has no parameters.

Return Value

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

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

See Also

Colors Overview
Color Messages
WM_PALETTECHANGED
WM_PALETTEISCHANGING

 

 

Send comments about this topic to Microsoft

Build date: 5/4/2010

Community ContentAdd
Page view tracker