void CSizeImageDlg::OnOK() { if ( (FMUL( m_Resolution, m_Width ) > MAX_IMAGE_WIDTH) || (FMUL( m_Resolution, m_Height) > MAX_IMAGE_HEIGHT)) { Message( IDS_ETOOWIDE ); OnCancel(); return; } SetUnitResolution( 0 ); SetUnitInfo((UNIT_TYPE)(m_Units-IDC_PREF_UNITINCHES), m_UnitRes, m_Points); PostDoModal(); CPPViewModalDlg::OnOK(); }
void CChromaDlg::OnOK() { PostDoModal(); if (m_pView->GetSafeHwnd()) { CHROMA_PARMS parms; if ( bPreview ) DeactivateTool(); bPreview = NO; parms.ChromaCombineMode = lpChromaMask->ChromaCombineMode; parms.ChromaColorMode = lpChromaMask->ChromaColorMode ; parms.Fade = lpChromaMask->Fade ; parms.Mask = lpChromaMask->Mask ; parms.Delete = lpChromaMask->Delete ; for (int i=0; i < NUM_CHROMAMASKS; i++) { parms.MaskRange[i] = lpChromaMask->MaskRange[i]; parms.MaskColor[i] = lpChromaMask->MaskColor[i]; } ProcessCommand(GetImage()->lpCmdList, IDS_CMD_CHROMA, &parms); } CPPViewModalDlg::OnOK(); }
void CChromaDlg::OnCancel() { PostDoModal(); CPPViewModalDlg::OnCancel(); }
void CToneBalanceOptionsDlg::OnOK() { PostDoModal(); CPPModalDlg::OnOK(); }