◄CWnd► ◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation Classes────────────────────────────────────────────── afx_msg void OnEnable( BOOL bEnable ); Parameter Description <bEnable> Specifies whether the CWnd has been enabled or disabled. This parameter is TRUE if the CWnd has been enabled; it is FALSE if the CWnd has been disabled. Remarks Called when an application changes the enabled state of CWnd. It is sent to the CWnd whose enabled state is changing. OnEnable is called before the ◄EnableWindow► member function returns, but after the window enabled state (◄WS_DISABLED► style bit) has changed. This message-handler member function calls the ◄Default► member function. Override this member function in your derived class to handle the ◄WM_ENABLE► message. See Also ◄CWnd::EnableWindow►, ◄CWnd::Default►, ◄WM_ENABLE► -♦-