Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Offer Har
|
Apr 23, 2008 - 3:59 PM
|
I have posted this in the past, but it was never resolved: I want to verify with the user that he closes the application, so I added this code:
void CMainFrame::OnClose()
{
int nRes = AfxMessageBox("Are you sure you want to exit?", MB_YESNO|MB_ICONQUESTION);
if (IDNO==nRes)
{
return;
}
CExtNCW<CMDIFrameWnd>::OnClose();
} Just add it to any of your sample application, and use an office 2007 skin, and you’ll see that the frame of the application expaneds a couple of pixles. If the user selects No - then the frame remains in this explanded state forever now...
|
|
Technical Support
|
Apr 24, 2008 - 1:47 PM
|
The CExtNCW template class that skins the non-client area was re-coded for v.2.83 due to several issues including this one and support for MDI child frames. We can provide you with the update.
|
|