2007-03-27 17:47:10 +00:00
|
|
|
/*
|
|
|
|
* CiderPress
|
|
|
|
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
|
|
|
|
* See the file LICENSE for distribution terms.
|
|
|
|
*/
|
|
|
|
/*
|
|
|
|
* Support for PasteSpecialDialog.
|
|
|
|
*/
|
|
|
|
#include "StdAfx.h"
|
|
|
|
#include "PasteSpecialDialog.h"
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
BEGIN_MESSAGE_MAP(PasteSpecialDialog, CDialog)
|
|
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
PasteSpecialDialog::OnInitDialog(void)
|
|
|
|
{
|
2014-11-04 00:26:53 +00:00
|
|
|
CString countStr;
|
|
|
|
CWnd* pWnd;
|
2007-03-27 17:47:10 +00:00
|
|
|
|
2014-11-04 00:26:53 +00:00
|
|
|
countStr.Format(IDS_PASTE_SPECIAL_COUNT, 3);
|
|
|
|
pWnd = GetDlgItem(IDC_PASTE_SPECIAL_COUNT);
|
|
|
|
pWnd->SetWindowText(countStr);
|
2007-03-27 17:47:10 +00:00
|
|
|
|
2014-11-04 00:26:53 +00:00
|
|
|
return CDialog::OnInitDialog();
|
2007-03-27 17:47:10 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2014-11-21 21:18:20 +00:00
|
|
|
void PasteSpecialDialog::DoDataExchange(CDataExchange* pDX)
|
2007-03-27 17:47:10 +00:00
|
|
|
{
|
2014-11-21 21:18:20 +00:00
|
|
|
/*
|
|
|
|
* Initialize radio control with value from fPasteHow.
|
|
|
|
*/
|
|
|
|
|
2014-11-04 00:26:53 +00:00
|
|
|
if (!pDX->m_bSaveAndValidate) {
|
|
|
|
UINT ctrlId;
|
|
|
|
|
|
|
|
if (fPasteHow == kPastePaths)
|
|
|
|
ctrlId = IDC_PASTE_SPECIAL_PATHS;
|
|
|
|
else
|
|
|
|
ctrlId = IDC_PASTE_SPECIAL_NOPATHS;
|
|
|
|
|
|
|
|
CButton* pButton = (CButton*) GetDlgItem(ctrlId);
|
|
|
|
pButton->SetCheck(BST_CHECKED);
|
|
|
|
} else {
|
|
|
|
CButton* pButton = (CButton*) GetDlgItem(IDC_PASTE_SPECIAL_PATHS);
|
|
|
|
|
|
|
|
if (pButton->GetCheck() == BST_CHECKED)
|
|
|
|
fPasteHow = kPastePaths;
|
|
|
|
else
|
|
|
|
fPasteHow = kPasteNoPaths;
|
|
|
|
}
|
2007-03-27 17:47:10 +00:00
|
|
|
}
|