BOOL COptionsMisc::OnApply() { UpdateData(TRUE); // Go ask Security for ClearClipboardOnMinimize value BOOL bClearClipboardOnMinimize; if (QuerySiblings(PPOPT_GET_CCOM, (LPARAM)&bClearClipboardOnMinimize) == 0L) { // Security not loaded - get from Prefs bClearClipboardOnMinimize = PWSprefs::GetInstance()->GetPref(PWSprefs::ClearClipboardOnMinimize); } if (m_DoubleClickAction == PWSprefs::DoubleClickCopyPasswordMinimize && bClearClipboardOnMinimize) { CGeneralMsgBox gmb; gmb.AfxMessageBox(IDS_MINIMIZECONFLICT); // Are we the current page, if not activate this page COptions_PropertySheet *pPS = (COptions_PropertySheet *)GetParent(); if (pPS->GetActivePage() != (COptions_PropertyPage *)this) pPS->SetActivePage(this); m_dblclk_cbox.SetFocus(); return FALSE; } M_DefUsername() = (CSecString)m_DefUsername; M_OtherBrowserLocation() = m_OtherBrowserLocation; M_OtherEditorLocation() = m_OtherEditorLocation; M_OtherBrowserCmdLineParms() = m_OtherBrowserCmdLineParms; M_OtherEditorCmdLineParms() = m_OtherEditorCmdLineParms; M_AutotypeText() = m_AutotypeText; M_AutotypeDelay() = m_AutotypeDelay; M_ConfirmDelete() = m_ConfirmDelete; M_MaintainDatetimeStamps() = m_MaintainDatetimeStamps; M_EscExits() = m_EscExits; M_UseDefUsername() = m_UseDefUsername; M_QuerySetDefUsername() = m_QuerySetDefUsername; M_AutotypeMinimize() = m_AutotypeMinimize; M_DoubleClickAction() = m_DoubleClickAction; M_ShiftDoubleClickAction() = m_ShiftDoubleClickAction; return COptions_PropertyPage::OnApply(); }
BOOL COptionsSecurity::OnApply() { UpdateData(TRUE); CGeneralMsgBox gmb; // Go ask Misc for DoubleClickAction value int iDoubleClickAction; if (QuerySiblings(PPOPT_GET_DCA, (LPARAM)&iDoubleClickAction) == 0L) { // Misc not loaded - get from Prefs iDoubleClickAction = PWSprefs::GetInstance()->GetPref(PWSprefs::DoubleClickAction); } if (m_ClearClipboardOnMinimize && iDoubleClickAction == PWSprefs::DoubleClickCopyPasswordMinimize) { gmb.AfxMessageBox(IDS_MINIMIZECONFLICT); // Are we the current page, if not activate this page COptions_PropertySheet *pPS = (COptions_PropertySheet *)GetParent(); if (pPS->GetActivePage() != (COptions_PropertyPage *)this) pPS->SetActivePage(this); GetDlgItem(IDC_CLEARBOARDONMINIMIZE)->SetFocus(); return FALSE; } M_ClearClipboardOnMinimize() = m_ClearClipboardOnMinimize; M_ClearClipboardOnExit() = m_ClearClipboardOnExit; M_LockOnMinimize() = m_LockOnMinimize; M_ConfirmCopy() = m_ConfirmCopy; M_LockOnWindowLock() = m_LockOnWindowLock; M_LockOnIdleTimeout() = m_LockOnIdleTimeout; M_CopyPswdBrowseURL() = m_CopyPswdBrowseURL; M_IdleTimeOut() = m_IdleTimeOut; UpdateHashIter(); M_HashIters() = m_HashIter; return COptions_PropertyPage::OnApply(); }