//PlugInで設定が必要な場合、設定用のダイアログなどを表示する //引数: // parentWnd [IN]親ウインドウ void WINAPI Setting( HWND parentWnd ) { CSettingDlg dlg; dlg.CreateSettingDialog(g_Instance); }
void CLuzj_ZTEDlg::OnSetting() { CSettingDlg dlg; dlg.parent = this; //dlg.SetParent(this); dlg.DoModal(); }
// void SetUseGpac(BOOL bUse) // { // m_bUseGpac = bUse; // } // void SetWriteMP4(BOOL bUse) // { // m_bWriteMp4 = bUse; // } // void SetUseFFEncoder(BOOL bUse) // { // m_bUseFFEncoder = bUse; // } // void SetPushRtmp(BOOL bUse) // { // m_bPushRtmp = bUse; // } void CDlgPanel::ProcessVideoWndMenuMsg(int nId) { if (!m_pManager) { return; } switch (nId) { case 4000://参数设置 { CSettingDlg settingDlg; settingDlg.PreSetting(m_sAVCapParamInfo); settingDlg.DoModal(); settingDlg.SaveSetting(m_sAVCapParamInfo); } break; case 4001://录制MP4 { m_pManager->SetWriteMP4( !m_pManager->IsWriteMP4() ); } break; case 4002://??? null { } break; case 4003://推送RTMP { m_pManager->SetPushRtmp(!m_pManager->IsPushRtmp()); } break; case 4004://??? null { } break; case 3000://MP4BOX { m_pManager->SetUseGpac(TRUE); } break; case 3001://MP4Creater { m_pManager->SetUseGpac(FALSE); } break; case 3002://x264+AAC { m_pManager->SetUseFFEncoder(FALSE); } break; case 3003://FFEncoder { m_pManager->SetUseFFEncoder(TRUE); } break; } }
void CThemeMakerDlg::OnBnClickedBtnOption() { CSettingDlg dlg; dlg.m_bGroupSameName = m_TabCtrl.GetGroupSameName(); dlg.m_bShowCloseBtn = m_TabCtrl.GetShowCloseBtn(); if(dlg.DoModal() == IDOK) { m_TabCtrl.SetGroupSameName(dlg.m_bGroupSameName); m_TabCtrl.SetShowCloseBtn(dlg.m_bShowCloseBtn); } }
void CGraphicView::OnSetting() { CSettingDlg dlg; dlg.m_nLineWidth = m_nLineWidth; dlg.m_nLineStyle=m_nLineStyle; dlg.m_clr = m_clr; if(IDOK==dlg.DoModal()) { m_nLineWidth = dlg.m_nLineWidth; m_nLineStyle = dlg.m_nLineStyle; } }
LRESULT CMainDlg::OnMenuSetting(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { CSettingDlg dlgSetting; dlgSetting.m_Gap = CConfig::Instance()->GetIntValue(CK_GapBetweenShow, 30); dlgSetting.m_ShowLong = CConfig::Instance()->GetIntValue(CK_ShowLong, 30); if(IDOK == dlgSetting.DoModal(m_hWnd)){ CConfig::Instance()->SetIntValue(CK_GapBetweenShow, dlgSetting.m_Gap); CConfig::Instance()->SetIntValue(CK_ShowLong, dlgSetting.m_ShowLong); SetupMinitor(); } return 0; }
void CEpgDataCap_BonDlg::OnBnClickedButtonSet() { // TODO: ここにコントロール通知ハンドラー コードを追加します。 CSettingDlg setDlg; if( setDlg.DoModal() == IDOK ){ this->main.ReloadSetting(); ReloadNWSet(); WORD ONID; WORD TSID; WORD SID; this->main.GetCh(&ONID, &TSID, &SID); this->initONID = ONID; this->initTSID = TSID; this->initSID = SID; ReloadServiceList(); this->minTask = GetPrivateProfileInt( L"Set", L"MinTask", 0, this->moduleIniPath ); } }
LRESULT CMainDlg::OnSetting(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { CSettingDlg dlg; dlg.DoModal(); return 0; }
UINT SettingDlg_DoModal() { CSettingDlg dlg; return dlg.DoModal(); }
void CMainFrame::OnSettings() { // TODO: Add your command handler code here CSettingDlg dlg; dlg.DoModal(); }
LRESULT CMainDlg::OnMuhome(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { CSettingDlg setdlg; setdlg.DoModal(); return 0; }