void SyncPasswordImprovementDialog::ShowProgress(BOOL show) { m_in_progress = show; g_input_manager->UpdateAllInputStates(); OpProgressBar* progress_spinner = static_cast<OpProgressBar *>(GetWidgetByName(SyncConstant::PROGRESS_SPINNER)); OP_ASSERT(progress_spinner); if (!progress_spinner) return; progress_spinner->SetType(OpProgressBar::Spinner); OpLabel* progress_label = static_cast<OpLabel*>(GetWidgetByName(SyncConstant::PROGRESS_LABEL)); OP_ASSERT(progress_label); if (!progress_label) return; progress_spinner->SetVisibility(show); progress_label->SetVisibility(show); OpString changing_password_str; OpStatus::Ignore(g_languageManager->GetString( Str::D_PASSWORD_IMPROVEMENT_CHANGING_PASSWORD, changing_password_str)); OpStatus::Ignore(progress_label->SetText(changing_password_str)); ResetDialog(); }
void softreset_dialog(HWND hwnd) { if (ResetDialog(hwnd, " Soft Reset:\n Do you really want to reset the emulated machine?")) return; vsync_suspend_speed_eval(); machine_trigger_reset(MACHINE_RESET_MODE_SOFT); }
bool ArmDialog::Initialize(dxKeyboard *_keyBoard, ArmGuiData* _armGuiData, ArmConnector* _armConnector,ArmConfig* _armConfig,Calibrate* _calibrate, Surf *_surf,CameraManager *_cameraMan,Stereo *_stereo,Cube* _cube,Mesh *_mesh) { keyboard = _keyBoard; armDlgData = _armGuiData; armConnector = _armConnector; armConfig = _armConfig; stereo = _stereo; calibrate = _calibrate; cube = _cube; mesh = _mesh; targetX=0;targetY=0;targetZ=0; surf = _surf; cameraMan = _cameraMan; InitDialog(); if(FAILED(keyboard->OnCreateDevice( m_hDlg ))) { MessageBox( NULL, _T("Failed To Initialize keyboard."), _T("ERROR"), MB_OK | MB_ICONEXCLAMATION ); return false; } glApp.m_hWnd = GetDlgItem( m_hDlg, IDC_Render_Pic ); if ( !glApp.CreateGLWindow( GetModuleHandle(NULL), 0, 0, 0, 0 ) ) { MessageBox( NULL, _T("Failed To Create GL Windows."), _T("ERROR"), MB_OK | MB_ICONEXCLAMATION ); return FALSE; // Quit If Window Was Not Created } camera.SetUpAxis(ModelViewerCamera::UPAXIS_Z); camera.m_fAngleY = G_PI; camera.m_fAngleX = G_PI/8; camera.CalPosition(); // originCamera = camera; ResetDialog(); armDlgData->isScanning = false; armDlgData->hasObj = false; armDlgData->noObj = false; armDlgData->unknownObj = false; positionPath = fopen("img/savepos/path.txt","w"); walkPath = fopen("img/savepos/path2.txt","r"); numsave = 0; return true; }
BOOL KMaterialUniformToolAlphaOperation::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here m_ctlAlphaCmpBase.SetBuddy(&m_ctlAlphaRef); m_ctlAlphaCmpBase.SetRange(0, 255); ResetDialog(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
CSmartFieldsDialog::CSmartFieldsDialog(CPmwView* pView, CWnd* pParent /*=NULL*/, BOOL fStartup /*=FALSE*/) : CDialog(IDD, pParent == NULL ? pView : pParent) { m_uSoundID = IDD; m_fShowValues = FALSE; m_pReflowHook = NULL; m_fStartup = fStartup; m_fOriginalModified = -1; //{{AFX_DATA_INIT(CSmartFieldsDialog) //}}AFX_DATA_INIT m_pList = NULL; ResetDialog(); m_pView = pView; }
void CSmartFieldsDialog::SetView(CPmwView* pView, BOOL fDoItAnyway /*=FALSE*/) { if (m_pView != pView || fDoItAnyway) { /* Reset everything. */ ResetDialog(); /* Set the new view. */ if ((m_pView = pView) != NULL) { m_pDoc = pView->GetDocument(); m_pDoc->GetMacrosInUse(m_cwaMacrosInUse); m_pMacroServer = m_pDoc->GetMacroServer(); ASSERT(m_pMacroServer != NULL); m_fShowValues = m_pMacroServer->ShowMacroValues(); /* // Make a local copy of the macros. */ m_pMacros = &m_pMacroServer->MacroList(); /* // Bind the fields to the list. // This rebuilds the list as well. */ m_pList->Fields(m_pMacroServer, m_pMacros, &m_cwaMacrosInUse); } UpdateButtons(); } }
CNPCWnd::~CNPCWnd() { ResetDialog(); }