CDialog::OnInitDialog();做了哪些事情?可以在我下面几行代码中删除吗,我的目的是让模态对话框不显示
BOOL CuiDlg::OnInitDialog() {DWORD m_hTimer;
m_hTimer = SetTimer(1,7000,NULL);
// init the variable that needs to show the popup the client
// point to a server that is not patched
setShowEmailSlowSyncPopup(true);
// it is used to decide if reset the counter of the total item.
resetTheItem = false;
// it is used to populate the message without the default message
messageToWrite = "";
CString s1;
s1.LoadString(getLocalizationUtils()->getLocaleResource(),IDS_FUNAMBOL); SetWindowText(s1);
CDialog::OnInitDialog();
LOG.setLevel(getLOGLevel());
AfxGetMainWnd()->EnableWindow();
// init settings
ClientSettings* cs = getRegConfig(); deleteFileForUpdate();
try {
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
}
catch(...) {
LOG.error("uiDlg: can't set application icon.");
}
BOOL CuiDlg::OnInitDialog() {DWORD m_hTimer;
m_hTimer = SetTimer(1,7000,NULL);
// init the variable that needs to show the popup the client
// point to a server that is not patched
setShowEmailSlowSyncPopup(true);
// it is used to decide if reset the counter of the total item.
resetTheItem = false;
// it is used to populate the message without the default message
messageToWrite = "";
CString s1;
s1.LoadString(getLocalizationUtils()->getLocaleResource(),IDS_FUNAMBOL); SetWindowText(s1);
CDialog::OnInitDialog();
LOG.setLevel(getLOGLevel());
AfxGetMainWnd()->EnableWindow();
// init settings
ClientSettings* cs = getRegConfig(); deleteFileForUpdate();
try {
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
}
catch(...) {
LOG.error("uiDlg: can't set application icon.");
}
解决方案 »
- 界面排布有经验的人帮忙
- 套接字TCP编程
- 谁能帮我解释一下WMP组件的OpenStateChange,PlayStateChange和StatusChange之间的区别?
- 网络回放
- [在线等!解决立即给分]简单问题:为什么字符串的长度为0
- 请问CWindow是什么类,基类是谁?再线等待,问题简单,分就低了点
- 关于 lResult = (this->*mmf.pfn_is)((LPTSTR)lParam)
- 菜鸟提问:单独使用CRecordSet 如何添加记录?急!!!!!!快帮帮俺吧!
- MainFrame 如何关闭指定的子窗口childFrame
- 如何分析别人的VC原程序?
- TCP 3次握手的问题
- 服务器端监听的简单问题 在线等
隐藏对话框:ShowWindow(SW_HIDE)
编译时静态调用,做了什么你把CuiDlg::OnInitDialog()其他代码注释掉就知道了。