void CApplicationPropPage::ProcessFilenameChange() { m_bFilenameValid = (m_wndFileName.GetWindowTextLength() > 0); BOOL bDummy; OnSetActive (0, 0, bDummy); }
BOOL CWZPropertyPage::OnInitDialog() { CPropertyPage::OnInitDialog(); // Set up buttons OnSetActive(); return TRUE; }
void CMotionsDlg::SetProjectPointer (AProject *Project) { CAStudioPropPage::SetProjectPointer (Project); if (IsWindow (m_hWnd)) { OnSetActive (); } }
static int OnNotify(HWND hDlg, NMHDR * pNMHDR) { switch(pNMHDR->code) { case PSN_SETACTIVE: return OnSetActive(hDlg); case PSN_KILLACTIVE: return OnKillActive(hDlg); } return FALSE; }
static int OnNotify(HWND hDlg, NMHDR * pNMHDR) { switch(pNMHDR->code) { case PSN_SETACTIVE: return OnSetActive(hDlg); case UDN_DELTAPOS: return OnDeltaPos(hDlg, (NMUPDOWN *)pNMHDR); case DEN_PASTE: return OnDataPaste(hDlg, (PDTE_PASTE_DATA)pNMHDR); } return FALSE; }
static int OnNotify(HWND hDlg, NMHDR * pNMHDR) { switch(pNMHDR->code) { case PSN_SETACTIVE: return OnSetActive(hDlg); case PSN_KILLACTIVE: return OnKillActive(hDlg); case UDN_DELTAPOS: return OnDeltaPos(hDlg, (NMUPDOWN *)pNMHDR); } return FALSE; }
//----------------------------- FUNCTION -------------------------------------* BOOL PropGSDModule::OnInitDialog() { CPropertyPage::OnInitDialog(); // TODO: Add extra initialization here GetDlgItem(IDC_USER_PRM_LINECOUNT)->SetWindowText(_T("0.\r\n8.\r\n16.")); VERIFY(m_ctrlUserPrm.SubclassDlgItem(IDC_DP_USER_PARAM, this)); InitListCrtls(); // init all listctrls with columnsize and columntext FillDeviceExtUserPrm(); // show all editable ExtUserParams OnSetActive(); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE }
void iGameEntity::SetActive(bool abX) { if(mbActive == abX) return; mbActive =abX; for(size_t i=0; i<mvBodies.size(); ++i) { mvBodies[i]->SetActive(mbActive); mvBodies[i]->SetTransformUpdated(true); } if(mpMeshEntity) { mpMeshEntity->SetVisible(mbActive); mpMeshEntity->SetActive(mbActive); if(mbActive) mpMeshEntity->UpdateLogic(0.01f); } if(mpCharBody) { mpCharBody->SetActive(mbActive); if(mbActive) { //Pre update the character body to make sure it is on ground. //Seems to mess up stuff /*for(int i=0; i<120; ++i) { //mpCharBody->Update(1.0f / 60.0f); }*/ } } for(size_t i=0; i<mvParticleSystems.size(); ++i) { if(mvParticleSystems[i]) mvParticleSystems[i]->SetVisible(mbActive); if(mvParticleSystems[i]) mvParticleSystems[i]->SetActive(mbActive); } for(size_t i=0; i<mvLights.size(); ++i) if(mvLights[i]) mvLights[i]->SetVisible(mbActive); for(size_t i=0; i<mvBillboards.size(); ++i) if(mvBillboards[i]) mvBillboards[i]->SetVisible(mbActive); OnSetActive(mbActive); }
bool CPropertyPage::OnNotify(UINT /* controlID */, LPNMHDR lParam) { switch (lParam->code) { case PSN_APPLY: SetMsgResult(OnApply(LPPSHNOTIFY(lParam))); break; case PSN_KILLACTIVE: SetMsgResult(BoolToBOOL(OnKillActive(LPPSHNOTIFY(lParam)))); break; case PSN_SETACTIVE: SetMsgResult(OnSetActive(LPPSHNOTIFY(lParam))); break; case PSN_RESET: OnReset(LPPSHNOTIFY(lParam)); break; case PSN_HELP: OnNotifyHelp(LPPSHNOTIFY(lParam)); break; default: return false; } return true; }