本文整理汇总了C++中COptions::GetSaveToFullPath方法的典型用法代码示例。如果您正苦于以下问题:C++ COptions::GetSaveToFullPath方法的具体用法?C++ COptions::GetSaveToFullPath怎么用?C++ COptions::GetSaveToFullPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类COptions
的用法示例。
在下文中一共展示了COptions::GetSaveToFullPath方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SaveToDialogProc
UINT_PTR CALLBACK CFileDialog::SaveToDialogProc(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
{
UNREFERENCED_PARAMETER(wParam);
COptions *pOptions = g_app.GetOptions();
switch (uiMsg)
{
case WM_INITDIALOG:
CheckRadioButton(hdlg, IDC_ID_SPACE_ASTERISK, IDC_ID_VERTICAL_BAR, IDC_ID_SPACE_ASTERISK + pOptions->GetItemDelimiter(TRUE));
CheckRadioButton(hdlg, IDC_LF_CR_LF, IDC_LF_CR, IDC_LF_CR_LF + pOptions->GetLineFeed(TRUE));
CheckRadioButton(hdlg, IDC_PD_BACKSLASH, IDC_PD_SLASH, IDC_PD_BACKSLASH + pOptions->GetPathDelimiter(TRUE));
CheckDlgButton(hdlg, IDC_SAVE_TO_FULL_PATH, pOptions->GetSaveToFullPath(TRUE));
CheckDlgButton(hdlg, IDC_SAVE_SETTINGS, FALSE);
return (UINT_PTR)TRUE;
case WM_NOTIFY:
switch (((LPNMHDR)lParam)->code)
{
case CDN_FILEOK:
if (IsDlgButtonChecked(hdlg, IDC_SAVE_SETTINGS) == BST_CHECKED)
pOptions->SetFlag(COptions::OnceSave, 0);
else
pOptions->SetFlag(COptions::OnceSave, COptions::OnceSave);
if (IsDlgButtonChecked(hdlg, IDC_ID_SPACES) == BST_CHECKED)
pOptions->SetItemDelimiter(MOE_ID_SPACES);
else if (IsDlgButtonChecked(hdlg, IDC_ID_VERTICAL_BAR) == BST_CHECKED)
pOptions->SetItemDelimiter(MOE_ID_VERTICAL_BAR);
else
pOptions->SetItemDelimiter(MOE_ID_SPACE_ASTERISK);
if (IsDlgButtonChecked(hdlg, IDC_LF_LF) == BST_CHECKED)
pOptions->SetLineFeed(MOE_LF_LF);
else if (IsDlgButtonChecked(hdlg, IDC_LF_CR) == BST_CHECKED)
pOptions->SetLineFeed(MOE_LF_CR);
else
pOptions->SetLineFeed(MOE_LF_CR_LF);
if (IsDlgButtonChecked(hdlg, IDC_PD_SLASH) == BST_CHECKED)
pOptions->SetPathDelimiter(MOE_PD_SLASH);
else
pOptions->SetPathDelimiter(MOE_PD_BACKSLASH);
pOptions->SetSaveToFullPath(IsDlgButtonChecked(hdlg, IDC_SAVE_TO_FULL_PATH) == BST_CHECKED);
if (IsDlgButtonChecked(hdlg, IDC_SAVE_SETTINGS) == BST_CHECKED)
pOptions->SavePage(MOPSP_SAVE);
break;
}
break;
}
return (UINT_PTR)FALSE;
}