15,471
社区成员
发帖
与我相关
我的任务
分享
BOOL CCxSkinButtonDemoApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CCxSkinButtonDemoDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
// Since the dialog has been closed, return FALSE so that we exit the
// application, rather than start the application's message pump.
return FALSE;
}
int nResponse = dlg.DoModal(); //打开对话框
if (nResponse == IDOK)
{ AfxMessageBox("upspring!"); }
else if (nResponse == IDCANCEL)
{ }