jeśli klepiesz w MFC, to musisz:
1. w swoim dialogu w konstruktorze ustawić:
m_bFullScreen = FALSE;
2. przeciążyć komunikaty: WM_ACTIVATE i WM_SETTINGCHANGE, czyli
w .cpp:
BEGIN_MESSAGE_MAP( CNonFullScreenDialog, CDialog )
//{{AFX_MSG_MAP(CNonFullScreenDialog)
//}}AFX_MSG_MAP
ON_WM_ACTIVATE()
ON_WM_SETTINGCHANGE()
END_MESSAGE_MAP()
void CNonFullScreenDialog::OnActivate( UINT nState, CWnd* pWndOther, BOOL bMinimized )
{
CWnd::OnActivate(nState, pWndOther, bMinimized);
}
void CNonFullScreenDialog::OnSettingChange( UINT uFlags, LPCTSTR lpszSection )
{
CWnd::OnSettingChange( uFlags, lpszSection );
}
w .h:
afx_msg void OnActivate( UINT nState, CWnd* pWndOther, BOOL bMinimized );
afx_msg void OnSettingChange( UINT uFlags, LPCTSTR lpszSection );
DECLARE_MESSAGE_MAP()