BOOL CNetServer3G::OnInitDialog() { CDialog::OnInitDialog(); CenterWindow(); _CWndCS(this); return TRUE; }
BOOL CSnapStorageDlg::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here _CWndCS(this); //初始化星期下拉框 m_ctlRecordWeek.ResetContent(); int nIndex = m_ctlRecordWeek.AddString(_CS("OneClick.Sun")); m_ctlRecordWeek.SetItemData(nIndex,0); nIndex = m_ctlRecordWeek.AddString(_CS("OneClick.Mon")); m_ctlRecordWeek.SetItemData(nIndex,1); nIndex = m_ctlRecordWeek.AddString(_CS("OneClick.Tue")); m_ctlRecordWeek.SetItemData(nIndex,2); nIndex = m_ctlRecordWeek.AddString(_CS("OneClick.Wed")); m_ctlRecordWeek.SetItemData(nIndex,3); nIndex = m_ctlRecordWeek.AddString(_CS("OneClick.Thu")); m_ctlRecordWeek.SetItemData(nIndex,4); nIndex = m_ctlRecordWeek.AddString(_CS("OneClick.Fri")); m_ctlRecordWeek.SetItemData(nIndex,5); nIndex = m_ctlRecordWeek.AddString(_CS("OneClick.Sat")); m_ctlRecordWeek.SetItemData(nIndex,6); nIndex = m_ctlRecordWeek.AddString(_CS("OneClick.All")); m_ctlRecordWeek.SetItemData(nIndex,7); m_nLastChannel = 0; m_nLastWeek = 0; CleanAll(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
// CUserAddDlg 消息处理程序 BOOL CUserAddDlg::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); //显示字符个数,实际上现在和设备的交互是以字符串方式,所以也没太大必要限制 m_editName.SetLimitText(8); m_editPsw.SetLimitText(6); m_editConfirm.SetLimitText(6); m_editDescribe.SetLimitText(31); m_listAuthority.SetExtendedStyle(m_listAuthority.GetExtendedStyle() | LVS_EX_CHECKBOXES ); m_listAuthority.InsertColumn(0, _CS("UserManager.No"), LVCFMT_LEFT, 50); m_listAuthority.InsertColumn(1, _CS("UserManager.Authority"), LVCFMT_LEFT, 200); //获取组信息 USER_MANAGE_INFO *pUser = m_userinfo; for ( int i = 0; i < pUser->groupNum; i ++ ) { if ( strcmp(pUser->groupList[i].name, "") != 0 ) { m_cmbGroup.AddString(pUser->groupList[i].name); } } m_cmbGroup.SetCurSel(0); m_cmbGroup.GetWindowText(m_strGroupName); UpdateAuthorityList(m_strGroupName); return TRUE; // return TRUE unless you set the focus to a control // 异常: OCX 属性页应返回 FALSE }
///////////////////////////////////////////////////////////////////////////// // CVehicleState message handlers BOOL CVehicleState::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); // TODO: Add extra initialization here return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CNetServerRtsp::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); m_editPort.SetLimitText(5); CenterWindow(); return TRUE; }
BOOL CConfigPtz::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); // TODO: Add extra initialization here m_editAddress.SetLimitText(4); m_cmbStoppos.AddString("1"); m_cmbStoppos.AddString("2"); m_cmbStoppos485.AddString("1"); m_cmbStoppos485.AddString("2"); m_cmbData.AddString("5"); m_cmbData.AddString("6"); m_cmbData.AddString("7"); m_cmbData.AddString("8"); m_cmbData485.AddString("5"); m_cmbData485.AddString("6"); m_cmbData485.AddString("7"); m_cmbData485.AddString("8"); m_cmbConfirm.AddString(_CS("ConfigPtz.None")); m_cmbConfirm.AddString(_CS("ConfigPtz.Odd")); m_cmbConfirm.AddString(_CS("ConfigPtz.Even")); m_cmbConfirm.AddString(_CS("ConfigPtz.Mark")); m_cmbConfirm.AddString(_CS("ConfigPtz.Space")); m_cmbConfirm485.AddString(_CS("ConfigPtz.None")); m_cmbConfirm485.AddString(_CS("ConfigPtz.Odd")); m_cmbConfirm485.AddString(_CS("ConfigPtz.Even")); m_cmbConfirm485.AddString(_CS("ConfigPtz.Mark")); m_cmbConfirm485.AddString(_CS("ConfigPtz.Space")); m_cmbBaundrate.AddString("1200"); m_cmbBaundrate.AddString("2400"); m_cmbBaundrate.AddString("4800"); m_cmbBaundrate.AddString("9600"); m_cmbBaundrate.AddString("19200"); m_cmbBaundrate.AddString("38400"); m_cmbBaundrate.AddString("57600"); m_cmbBaundrate.AddString("115200"); m_cmbBaundrate485.AddString("1200"); m_cmbBaundrate485.AddString("2400"); m_cmbBaundrate485.AddString("4800"); m_cmbBaundrate485.AddString("9600"); m_cmbBaundrate485.AddString("19200"); m_cmbBaundrate485.AddString("38400"); m_cmbBaundrate485.AddString("57600"); m_cmbBaundrate485.AddString("115200"); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CAlarmShelter::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); // TODO: Add extra initialization here m_nLastChannel = 0; return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CNetServerEmail::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); CenterWindow(); //m_bBusy = FALSE; //m_TestPrompt = ""; return TRUE; }
BOOL CConfigNetwork::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); // TODO: Add extra initialization here CleanAll(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
///////////////////////////////////////////////////////////////////////////// // CNetAlarmDlg message handlers BOOL CNetAlarmDlg::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CNetServerNAT::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here _CWndCS(this); CenterWindow(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CNetServerPPPOE::OnInitDialog() { CDialog::OnInitDialog(); GetDlgItem(IDC_IPADDRESS)->EnableWindow(FALSE); GetDlgItem(IDC_IPADDRESS2)->ShowWindow(SW_HIDE); GetDlgItem(IDC_STATIC_IP2)->ShowWindow(SW_HIDE); _CWndCS(this); CenterWindow(); return TRUE; }
BOOL CNetServerDDNS::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here _CWndCS(this); m_editLocalDomain.SetLimitText( NET_NAME_PASSWORD_LEN ); m_editServerDomain.SetLimitText( NET_NAME_PASSWORD_LEN ); m_editUserName.SetLimitText( NET_NAME_PASSWORD_LEN ); m_editPsw.SetLimitText( NET_NAME_PASSWORD_LEN ); CenterWindow(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CVideoOSCRuleSetDlg::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); CString strText; CComboBox *pComboBox = (CComboBox*)GetDlgItem(IDC_COMBO_SENSITIVITY_LEVEL); strText.Format("%s", _CS("ConfigVideo.High") ); pComboBox->InsertString(0,strText); // int nInsert = pComboBox->AddString(strText); // pComboBox->SetItemData(nInsert, 0); strText.Format("%s", _CS("ConfigVideo.Middle") ); pComboBox->InsertString(1,strText); // nInsert = pComboBox->AddString(strText); // pComboBox->SetItemData(nInsert, 1); strText.Format("%s", _CS("ConfigVideo.Lower") ); pComboBox->InsertString(2,strText); // nInsert = pComboBox->AddString(strText); // pComboBox->SetItemData(nInsert, 2); pComboBox->SetCurSel(m_Rule.iLevel); CButton* pCheck = (CButton*)GetDlgItem(IDC_CHECK_SHOWTRACE); if (m_Rule.iShowTrack!=0) { pCheck->SetCheck(BST_CHECKED); } else { pCheck->SetCheck(BST_UNCHECKED); } if (m_Rule.iAbandumEnable) { ((CButton*)GetDlgItem(IDC_RADIO_ABANDUM))->SetCheck(BST_CHECKED); } else if (m_Rule.iStolenEnable) { ((CButton*)GetDlgItem(IDC_RADIO_STOLEN))->SetCheck(BST_CHECKED); } else if (m_Rule.iNoParkingEnable) { ((CButton*)GetDlgItem(IDC_RADIO_NOPARKING))->SetCheck(BST_CHECKED); } m_sliderRangeMin.SetPos(m_Rule.stNoParkingRulePara.stOscPara.nSizeMin);//显示其中一个最小像素,保存时,保存所有 OnReleasedcaptureSliderRangeMin(0,0); return TRUE; }
BOOL CRemoteChannelDlg::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); //AfxSetResourceHandle(OldResourceHanlde);//对话框已创建,设置回原来的模块 SetWindowText(_CS(_T("DigitalChannel.RemoteChannel"))); m_cmbDevType.ResetContent(); m_cmbStream.ResetContent(); m_cmbProc.ResetContent(); m_cmbDevType.AddString(_CS(_T("DigitalChannel.IPC"))); m_cmbDevType.AddString(_CS(_T("DigitalChannel.DVR"))); m_cmbDevType.AddString(_CS(_T("DigitalChannel.HVR"))); m_cmbDevType.SetCurSel(0); m_cmbProc.AddString(_CS(_T("DigitalChannel.TCP"))); m_cmbProc.SetCurSel(0); m_cmbProc.EnableWindow(FALSE); m_cmbStream.AddString(_CS(_T("Desktop.MainStream"))); m_cmbStream.AddString(_CS(_T("Desktop.ExtStream"))); m_cmbStream.SetCurSel(0); m_EditRemoteChannel.SetWindowText(_T("1")); if ( m_nNum >= 0) { CString str; str.Format(_T("chConfig%d"),m_nNum + 1); m_EditCfgName.SetWindowText(str); } m_EditUsername.SetWindowText(_T("admin")); m_EditPort.SetWindowText(_T("34567")); //setting list item m_CtrlListDev.InsertColumn(0, _CS(_T("Upgrade.NO")), LVCFMT_LEFT, 50); m_CtrlListDev.InsertColumn(1, _CS(_T("ConfigNet.DeviceName")), LVCFMT_LEFT, 80); m_CtrlListDev.InsertColumn(2, _CS(_T("ConfigNet.MAC")), LVCFMT_LEFT, 80); m_CtrlListDev.InsertColumn(3, _CS(_T("DeviceManage.IPAddress")), LVCFMT_LEFT, 80); m_CtrlListDev.InsertColumn(4, _CS(_T("DeviceManage.PortNum")), LVCFMT_LEFT,80); m_CtrlListDev.SetExtendedStyle( m_CtrlListDev.GetExtendedStyle() | LVS_EX_FULLROWSELECT ); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CDlgChannelStatus::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); // TODO: Add extra initialization here //list m_ctrlList.InsertColumn(0, _CS(_T("DigitalChannel.Channel")), LVCFMT_LEFT, 80); m_ctrlList.InsertColumn(1, _CS(_T("DigitalChannel.MaxResolution")), LVCFMT_LEFT, 80); m_ctrlList.InsertColumn(2, _CS(_T("DigitalChannel.CurResolution")), LVCFMT_LEFT,80); m_ctrlList.InsertColumn(3, _CS(_T("DigitalChannel.ConnStatus")), LVCFMT_LEFT, 80); m_ctrlList.SetExtendedStyle( m_ctrlList.GetExtendedStyle() | LVS_EX_FULLROWSELECT); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CToolManagerHardDisk::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); // TODO: Add extra initialization here m_listDisk.InsertColumn(0, _CS("HDDInfo.IndexNo"), LVCFMT_LEFT, 40); m_listDisk.InsertColumn(1, _CS("HDDInfo.Disk"),LVCFMT_LEFT, 80); m_listDisk.InsertColumn(2, _CS("HDDInfo.Type"),LVCFMT_LEFT, 80); m_listDisk.InsertColumn(3, _CS("HDDInfo.Status"),LVCFMT_LEFT, 80); m_listDisk.SetExtendedStyle(m_listDisk.GetExtendedStyle() | LVS_EX_FULLROWSELECT ); m_nPartNo = -1; m_nPhyNo = -1; return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CIPEdit::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); m_nHttpPort = m_NetComm.HttpPort; m_nTCPPort = m_NetComm.TCPPort; m_strMac = m_NetComm.sMac; unsigned char *pIP = (unsigned char*)&m_NetComm.HostIP.l; m_IPAddrCtrl.SetAddress(*pIP, *(pIP+1), *(pIP+2), *(pIP+3)); pIP = (unsigned char*)&m_NetComm.Submask.l; m_MaskCtrl.SetAddress(*pIP, *(pIP+1), *(pIP+2), *(pIP+3)); pIP = (unsigned char*)&m_NetComm.Gateway.l; m_GateCtrl.SetAddress(*pIP, *(pIP+1), *(pIP+2), *(pIP+3)); UpdateData(FALSE); return TRUE; }
BOOL CLocalPlayback::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here _CWndCS(this); // m_nPort = 90; // m_bplaythread = false; m_ctrlSlider.SetRange(0,1000); m_SliderPos = 0; m_ctrlSlider.SetPos(0); m_PreTime = 0; GetDlgItem(IDC_SLIDERFILE)->EnableWindow(FALSE); //HW return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CNetPre::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); int nItem; CString netType[3] = {_CS("ConfigNet.Wirecard"),_CS("ConfigNet.Wireless"),_CS("ConfigNet.Wifi")}; //int nType; m_listctrl.SetExtendedStyle(LVS_EX_FULLROWSELECT); for ( int i = 0 ; i < 3; i++) { nItem = m_pNetOrder.pNetOrder[i].netOrder; m_listctrl.InsertItem(nItem,netType[i]); } ((CButton*)GetDlgItem(IDC_CHECK_NETPRE))->SetCheck(m_pNetOrder.bEnable); OnCheckNetpre(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CLocalPlayback::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here _CWndCS(this); m_nPort = 90; m_bplaythread = false; m_PlayerStatus =STATUS_READY; m_FastSpeed = 0; m_SlowSpeed = 0; m_nFileLen = 0; m_ctrlSlider.SetRange(0,1000); m_SliderPos = 0; m_ctrlSlider.SetPos(0); m_PreTime = 0; return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CAlarmMotion::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); // TODO: Add extra initialization here m_nRow = 0; m_nCol = 0; CString strText; strText.Format("%s", _CS("ConfigVideo.Lowest") ); int nInsert = m_ctrlDelicacy.AddString(strText); m_ctrlDelicacy.SetItemData(nInsert, 1); strText.Format("%s", _CS("ConfigVideo.Lower") ); nInsert = m_ctrlDelicacy.AddString(strText); m_ctrlDelicacy.SetItemData(nInsert, 2); strText.Format("%s", _CS("ConfigVideo.Middle") ); nInsert = m_ctrlDelicacy.AddString(strText); m_ctrlDelicacy.SetItemData(nInsert, 3); strText.Format("%s", _CS("ConfigVideo.High") ); nInsert = m_ctrlDelicacy.AddString(strText); m_ctrlDelicacy.SetItemData(nInsert, 4); strText.Format("%s", _CS("ConfigVideo.Higher") ); nInsert = m_ctrlDelicacy.AddString(strText); m_ctrlDelicacy.SetItemData(nInsert, 5); strText.Format("%s", _CS("ConfigVideo.Highest") ); nInsert = m_ctrlDelicacy.AddString(strText); m_ctrlDelicacy.SetItemData(nInsert, 6); m_nLastChannel = 0; return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CCoverSetDlg::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); // TODO: Add extra initialization here m_dlgCoverArea.Create(CCoverAreaDlg::IDD,this); m_dlgCoverArea.ModifyStyle(WS_POPUP,WS_CHILD,0); m_dlgCoverArea.SetParent(this); CRect rect; GetClientRect(&rect); CRect BtnRect,CoverAreaRect; GetDlgItem(IDOK)->GetWindowRect(&BtnRect); ScreenToClient(BtnRect); CoverAreaRect.SetRect(rect.left,rect.top,rect.right,BtnRect.top - 10); m_dlgCoverArea.m_nWidth = CoverAreaRect.Width(); m_dlgCoverArea.m_nHeight = CoverAreaRect.Height(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CRemotePlaybackDlg::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); m_fileList.SetExtendedStyle( m_fileList.GetExtendedStyle() | LVS_EX_FULLROWSELECT); int nIndex = m_cmbDevice.AddString(_CS("PlayBack.SelectDevice")); m_cmbDevice.SetItemData(nIndex, 1); //get device info CClientDemoDlg *pMain = (CClientDemoDlg *)AfxGetApp()->m_pMainWnd; if ( pMain ) { Devc_Map *pMap = pMain->GetDeviceMap(); if ( pMap ) { Devc_Map::iterator bIter; for ( bIter = pMap->begin(); bIter != pMap->end(); bIter ++ ) { DEV_INFO *pDev = bIter->second; if ( pDev ) { nIndex = m_cmbDevice.AddString(pDev->szDevName); m_cmbDevice.SetItemData(nIndex, (DWORD)pDev ); } } } } m_cmbDevice.SetCurSel(0); // HW 不选择默认设备 /* if (m_cmbDevice.GetCount() > 1) { m_cmbDevice.SetCurSel(1); } else { m_cmbDevice.SetCurSel(0); } */ OnSelchangeComboDevice(); m_cmbType.AddString(_CS("PlayBack.ALL")); m_cmbType.AddString(_CS("PlayBack.AlarmRecordFile")); m_cmbType.AddString(_CS("PlayBack.DetectRecordfile")); m_cmbType.AddString(_CS("PlayBack.GeneralRecordFile")); m_cmbType.AddString(_CS("PlayBack.HandRecordFile")); m_cmbType.SetCurSel(0); CTime cur_time = CTime::GetCurrentTime(); CTime time = CTime(cur_time.GetYear(),cur_time.GetMonth(), cur_time.GetDay(), cur_time.GetHour(),cur_time.GetMinute(),cur_time.GetSecond()); m_begData = m_endData = m_endTime = time; CTime bTime = CTime( cur_time.GetYear(),cur_time.GetMonth(), cur_time.GetDay(), 0 , 0 , 0 ); m_begTime = bTime; UpdateData( FALSE ); m_fileList.InsertColumn(0, _CS("PlayBack.NO"), LVCFMT_LEFT, 80,-1 ); m_fileList.InsertColumn(1, _CS("PlayBack.File"), LVCFMT_LEFT,200,-1); m_progress.SetRange(0,100); m_nGetPage=0; m_nCurPage=-1; m_nTotalPage=-1; m_bOpenAudio=false; m_sliderPlayBack.SetRange(0,1000); m_SliderPos = 0; m_sliderPlayBack.SetPos(0); /********************************///hw GetDlgItem(IDC_SLIDER_REMOTE)->EnableWindow(FALSE); GetDlgItem(IDC_PAGE_DOWN)->EnableWindow(FALSE); GetDlgItem(IDC_PAGE_UP)->EnableWindow(FALSE); /************************************/ return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
BOOL CPTZDlg::OnInitDialog() { CDialog::OnInitDialog(); _CWndCS(this); m_mybuttonup.SubclassDlgItem(IDC_BUTTONUP,this); m_mybuttonup.SetType(1000); m_mybuttondown.SubclassDlgItem(IDC_BUTTONDOWN,this); m_mybuttondown.SetType(1000); m_mybuttonleft.SubclassDlgItem(IDC_BUTTONLEFT,this); m_mybuttonleft.SetType(1000); m_mybuttonright.SubclassDlgItem(IDC_BUTTONRIGHT,this); m_mybuttonright.SetType(1000); m_mybuttontjright.SubclassDlgItem(IDC_BUTTONTJRIGHT,this); m_mybuttontjright.SetType(1000); m_mybuttontjleft.SubclassDlgItem(IDC_BUTTONTJLEFT,this); m_mybuttontjleft.SetType(1000); m_mybuttonjjleft.SubclassDlgItem(IDC_BUTTONJJLEFT,this); m_mybuttonjjleft.SetType(1000); m_mybuttonjjright.SubclassDlgItem(IDC_BUTTONJJRIGHT,this); m_mybuttonjjright.SetType(1000); m_mybuttongqleft.SubclassDlgItem(IDC_BUTTONGQLEFT,this); m_mybuttongqleft.SetType(1000); m_mybuttongqright.SubclassDlgItem(IDC_BUTTONGQRIGHT,this); m_mybuttongqright.SetType(1000); m_mybuttonrighttop.SubclassDlgItem(IDC_BUTTONRIGHTUP,this); m_mybuttonrighttop.SetType(1000); m_mybuttonleftdown.SubclassDlgItem(IDC_BUTTONLEFTDOWN,this); m_mybuttonleftdown.SetType(1000); m_mybuttonlefttop.SubclassDlgItem(IDC_BUTTONLEFTUP,this); m_mybuttonlefttop.SetType(1000); m_mybuttonrightdown.SubclassDlgItem(IDC_BUTTONRIGHTDOWN,this); m_mybuttonrightdown.SetType(1000); m_mybuttonusepresent.SubclassDlgItem(IDC_UsePresent,this); m_mybuttonusepresent.SetType(1000); m_mybuttonaddpresent.SubclassDlgItem(IDC_ADDPRESENT,this); m_mybuttonaddpresent.SetType(1000); m_mybuttondeletepresent.SubclassDlgItem(IDC_PRESENTDELETE,this); m_mybuttondeletepresent.SetType(1000); m_mybuttoncruiseplay.SubclassDlgItem(IDC_CRUISEPLAY,this); m_mybuttoncruiseplay.SetType(1000); m_mybuttoncruisestop.SubclassDlgItem(IDC_CRUISESTOP,this); m_mybuttoncruisestop.SetType(1000); m_mybuttoncruiseedit.SubclassDlgItem(IDC_CRUISEEDIT,this); m_mybuttoncruiseedit.SetType(1000); //m_present.ResetContent(); UINT i; CString temp=""; for (i=1;i<65;i++) { temp.Format("%d",i); m_present.AddString(temp); } m_present.SetCurSel(0); for (i=1;i<33;i++) { temp.Format("%d",i); m_ComboCruise.AddString(temp); } m_ComboCruise.SetCurSel(0); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }