Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CWnd::OnPaletteChanged
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  afx_msg void OnPaletteChanged( CWnd*  pFocusWnd  );
 
  Parameter   Description
 
  <pFocusWnd> Specifies a pointer to the window that caused the system
              palette to change. The pointer may be temporary, and should
              not be stored.
 
  Remarks
 
  Called after the window with input focus has realized its logical
  palette, thereby changing the system palette. This call allows windows
  without the input focus that use a color palette to realize their
  logical palettes and update their client areas.
 
  To avoid creating a loop, CWnd shouldn't realize its palette unless it
  determines that <pFocusWnd> does not contain a pointer to itself.
 
  This message-handler member function calls the Default member
  function. Override this member function in your derived class to handle
  the WM_PALETTECHANGED message.
 
  See Also
 
  ::RealizePalette, WM_PALETTECHANGED, CWnd::Default
 
 
                                     -♦-