◄CWnd► ◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation Classes────────────────────────────────────────────── The following message handlers require an entry in a message map. ◄OnCommand► Called when the user selects an item from a menu, when a control calls its parent's message handler, or when an access keystroke is translated. ◄OnActivate► Called when CWnd is being activated or deactivated. ◄OnActivateApp► Called when CWnd is about to be activated and CWnd belongs to a different task than the currently active window. ◄OnCancelMode► Called to allow CWnd to cancel any internal modes, such as mouse capture, if CWnd has the focus when a dialog box or message box is displayed. ◄OnChildActivate► Called whenever the size or position of CWnd changes if CWnd is a child window. ◄OnClose► Called as a signal that CWnd or an application will terminate. ◄OnCreate► Called when an application requests that CWnd be created. ◄OnCtlColor► Called when the control or message box is about to be drawn if CWnd is the parent of a system-defined control class or a message box. ◄OnDestroy► Called when CWnd is being destroyed. ◄OnEnable► Called when an application changes the enabled state of CWnd. ◄OnEndSession► Called when the session is ending. ◄OnEnterIdle► Called to inform an application's main window procedure that a modal dialog box or a menu is entering an idle state. ◄OnEraseBkgnd► Called when the background needs erasing. ◄OnGetMinMaxInfo► Called whenever Windows needs to know the maximized position or dimensions, or the minimum or maximum tracking size. ◄OnIconEraseBkgnd► Called when CWnd is being minimized (made iconic) and the background of the icon must be filled before painting the icon. ◄OnKillFocus► Called immediately before CWnd loses the input focus. ◄OnMenuChar► Called when the user presses a menu mnemonic character that doesn't match any of the predefined mnemonics in the current menu. ◄OnMenuSelect► Called when the user selects a menu item. ◄OnMove► Called after the position of the CWnd has been changed. ◄OnPaint► Called when Windows or an application makes a request to repaint a portion of the window. ◄OnPaintIcon► No longer a part of the Foundation class library. ◄OnParentNotify► Called when a CWnd child window is created or destroyed, or when the user clicks a mouse button while the cursor is over the child window. ◄OnQueryDragIcon► Called when a minimized (iconic) CWnd is about to be dragged by the user (if CWnd does not have an icon defined for its class). ◄OnQueryEndSession► Called when the user chooses to end the Windows session, or when an application calls the ◄ExitWindows► Windows function. ◄OnQueryNewPalette► Informs CWnd that it is about to receive the input focus. ◄OnQueryOpen► Called when CWnd is an icon, and the user requests that the icon be opened. ◄OnSetFocus► Called after CWnd gains the input focus. ◄OnShowWindow► Called when CWnd is to be hidden or shown. ◄OnSize► Called after the size of CWnd has changed. -♦-