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.");
    }