BOOL CDlgFileList::OnInitDialog() { CDialog::OnInitDialog(); g_SetWndStaticText(this, DLG_FILENAME); // TODO: Add extra initialization here InitDlg(); OnFilenameBtnGet(); // char szSeq[8] = {0}; // itoa(1, szSeq, 10); // m_lsFileList.InsertItem(0, "", 0); // m_lsFileList.SetItemText(0, 0, szSeq); // m_lsFileList.SetItemText(0, 1, "abc"); // // itoa(2, szSeq, 10); // m_lsFileList.InsertItem(1, "", 0); // m_lsFileList.SetItemText(1, 0, szSeq); // m_lsFileList.SetItemText(1, 1, "123"); // // itoa(3, szSeq, 10); // m_lsFileList.InsertItem(2, "", 0); // m_lsFileList.SetItemText(2, 0, szSeq); // m_lsFileList.SetItemText(2, 1, "456"); // // char* szTemp1 = "abc"; // char* szTemp2 = "123"; // char* szTemp3 = "456"; // m_listInfo.push_back(szTemp1); // m_listInfo.push_back(szTemp2); // m_listInfo.push_back(szTemp3); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CDlgCfgAnalogAlarm::OnInitDialog() { CDialog::OnInitDialog(); g_SetWndStaticText(this, DLG_CFG_ANALOGALARM); // TODO: Add extra initialization here if (!m_hLoginID) { MessageBox(ConvertString("We haven't login yet!", DLG_CFG_ANALOGALARM), ConvertString("Prompt")); return FALSE; } int nRetLen = 0; BOOL bRet = CLIENT_QueryDevState(m_hLoginID,DH_DEVSTATE_GET_SENSORLIST,(char*)&m_stuSensorList, sizeof(m_stuSensorList),&nRetLen,SDK_API_WAIT); if (bRet == FALSE) { CString csErr; csErr.Format("%s %08x...",ConvertString("Query state GetSensorList failed:", DLG_CFG_ANALOGALARM), CLIENT_GetLastError()); MessageBox(csErr, ConvertString("Prompt")); //return FALSE; } GetConfigFromDevice(); InitDlg(); StuToDlg(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CSubDlgInfoCard::OnInitDialog() { CDialog::OnInitDialog(); g_SetWndStaticText(this, SUBDLG_INFO_CARD); // TODO: Add extra initialization here InitDlg(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
ExcDlgPowerTotal::ExcDlgPowerTotal(AmrDisplay &rAmrDisplay, unsigned int fd) : m_AmrDisplay(rAmrDisplay) , AmrDlgBase(fd) , x_pos(0) , y_pos(0) { name = "ExcDlgPowerTotal"; dev_fd = fd; InitDlg(); }
ExcDlgWelcome::ExcDlgWelcome(AmrDisplay &rAmrDisplay, unsigned int fd) : m_AmrDisplay(rAmrDisplay) , AmrDlgBase(fd) , x_pos(0) , y_pos(0) { name = "ExcDlgWelcome"; dev_fd = fd; InitDlg(); }
BOOL DateAdjustDlg::OnInitDialog() { try { return InitDlg(); } CATCH_ALL EndDialog(IDCANCEL); return true; }
BOOL CDlgCfgAlarmSubSystem::OnInitDialog() { CDialog::OnInitDialog(); g_SetWndStaticText(this, DLG_CFG_ALARM_SUBSYSTEM); // TODO: Add extra initialization here InitDlg(); if (GetConfig()) { StuToDlg(); } return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CDlgQueryLog::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here g_SetWndStaticText(this, DLG_QUERYLOG); InitDlg(); OnQuerylogBtnTotalCount(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
CZSetLogOutputDlg::CZSetLogOutputDlg(Cint2 nKey, const Cchar* pDialogTemplate, const Cchar* pDllName) : CZCardDlg(nKey, pDialogTemplate, pDllName) { m_pProc = NULL; //日志信息级别 m_nLogLevel = 3; //桩号循环信息显示 m_bStationLoop = false; //初始化对话框控件 InitDlg(); }
BOOL CDlgCfgAccessControl::OnInitDialog() { CDialog::OnInitDialog(); g_SetWndStaticText(this, DLG_CFG_ACCESS_CONTROL); // TODO: Add extra initialization here InitDlg(); if (GetConfigFromDevice()) { StuToDlg(); } return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CDlgCfgNetCollection::OnInitDialog() { CDialog::OnInitDialog(); g_SetWndStaticText(this, DLG_CFG_NETCOLLECTION); // TODO: Add extra initialization here InitDlg(); if (GetConfigFromDevice()) { showInfo(); } return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
CDlgTalk::CDlgTalk(CWnd* pParent /* = NULL */, LLONG lLoginId /* = NULL */, NET_DEVICE_TYPE emType /* = NET_AF6016 */, int nChannelNum /* = 1 */) : CDialog(CDlgTalk::IDD, pParent) { //{{AFX_DATA_INIT(CDlgTalk) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT m_emDeviceType = emType; m_lLoginID = lLoginId; m_nChannelNum = nChannelNum; m_hTalkingHandle = 0; m_bAnswered = FALSE; memset(&m_stuAudioEncodeFormate, 0, sizeof(DHDEV_TALKFORMAT_LIST)); InitDlg(m_lLoginID, m_nChannelNum); }
BOOL CFileView::OnInitDialog() { CDialog::OnInitDialog(); bool bSuccess = true; InitDlg(); GetClientRect(&m_rect); //得到客户区大小 MSGINFO msgInfo; memset(&msgInfo, 0, sizeof(MSGINFO)); msgInfo.nMsgCmd = CMD_DISKINFO; //获取磁盘信息 UINT32 result = m_moduleSocket.SendCommand(m_socket, (char*)&msgInfo, sizeof(MSGINFO), &bSuccess); //发送获取磁盘信息命令 if (ERROR_SUCCESS != result && !bSuccess) { AfxMessageBox(_T("发送获取磁盘信息命令失败!")); } return TRUE; }
BOOL CDlgCfgExAlarmInput::OnInitDialog() { CDialog::OnInitDialog(); g_SetWndStaticText(this, DLG_CFG_EXALARMINPUT); // TODO: Add extra initialization here if (!m_lLoginID) { MessageBox(ConvertString(CString("We haven't login yet!"), DLG_CFG_EXALARMINPUT), ConvertString("Prompt")); //EndDialog(0); } GetConfigFromDevice(); InitDlg(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CDlgCfgAlarm::OnInitDialog() { CDialog::OnInitDialog(); g_SetWndStaticText(this, DLG_CFG_ALARM); // TODO: Add extra initialization here if (m_hLoginID == 0) { MessageBox(ConvertString("We haven't login yet!", DLG_CFG_ALARM), ConvertString("Prompt")); //EndDialog(0); } InitDlg(); if (GetConfigFromDevice()) { StuToDlg(); } return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
// // FUNCTION: SampleDialogProc() // // PURPOSE: Dialog proc for the UI used for controlling fullscreen magnification. // INT_PTR CALLBACK SampleDialogProc( _In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM /*lParam*/ ) { INT_PTR ipRet = 0; switch (uMsg) { case WM_INITDIALOG: InitDlg(hwndDlg); ipRet = 0; break; case WM_COMMAND: if(HIWORD(wParam) == BN_CLICKED) { WORD wCtrlId = LOWORD(wParam); HandleCommand(hwndDlg, wCtrlId); ipRet = 1; } break; case WM_CLOSE: EndDialog(hwndDlg, 0); break; } return ipRet; }
BOOL CDlgCfgAlarmExAlarmBox::OnInitDialog() { CDialog::OnInitDialog(); g_SetWndStaticText(this, DLG_CFG_EXALARMBOX); // TODO: Add extra initialization here if (!m_lLoginId) { MessageBox(ConvertString("we haven't login a device yet!", DLG_CFG_EXALARMBOX), ConvertString("Prompt")); return FALSE; } InitDlg(); // 默认显示第0个盒子 m_cbSerialPort.SetCurSel(0); if (GetConfigFromDevice()) { StuToDlg(); } return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL DlgHisto::Create(CWnd* pParentWnd, UINT nIDTemplate, UINT nStyle, UINT nID) { BOOL bSuccess = CDialogBar::Create(pParentWnd, nIDTemplate, nStyle, nID); InitDlg(); return bSuccess; }
MRESULT _System MainWndProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) { switch (msg) { case WM_INITDLG: InitDlg( hwnd); break; case WM_COMMAND: if ((USHORT)mp1 == IDC_OK) Run( hwnd); else if ((USHORT)mp1 == IDC_CLEAR) ClearDlg( hwnd); break; case WM_CONTROL: if (SHORT2FROMMP( mp1) != CBN_LBSELECT) break; switch (SHORT1FROMMP( mp1)) { case IDC_PROCTYPE: SwitchTypeLists( hwnd, (HWND)mp2); break; case IDC_ARG1TYPE: case IDC_ARG2TYPE: case IDC_ARG3TYPE: case IDC_ARG4TYPE: case IDC_ARG5TYPE: case IDC_ARG6TYPE: SetXDS( hwnd, (HWND)mp2, SHORT1FROMMP( mp1)); break; } break; case WM_CHAR: // defeat default button action if (((CHARMSG(&msg)->fs & (USHORT)KC_VIRTUALKEY) && CHARMSG(&msg)->vkey == VK_ENTER) || ((CHARMSG(&msg)->fs & (USHORT)KC_CHAR) && CHARMSG(&msg)->chr == '\r')) break; return (WinDefDlgProc( hwnd, msg, mp1, mp2)); case WM_CLOSE: WinPostMsg( hwnd, WM_QUIT, NULL, NULL); break; case WM_DESTROY: if (RwsClientTerminate()) printf( "\r\nRwsClientTerminate failed\r\n"); return (WinDefDlgProc( hwnd, msg, mp1, mp2)); default: return (WinDefDlgProc( hwnd, msg, mp1, mp2)); } //end switch (msg) return (0); }
BOOL CAboutPage::OnInitDialog() { CDialog::OnInitDialog(); InitDlg(GetSafeHwnd()); return TRUE; }