SelectPasteFormat.h 973 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #include "afxwin.h"
  3. #include "resource.h"
  4. #include "Exports.h"
  5. #include "DialogResizer.h"
  6. // CSelectPasteFormat dialog
  7. class CSelectPasteFormat : public CDialog
  8. {
  9. DECLARE_DYNAMIC(CSelectPasteFormat)
  10. public:
  11. CSelectPasteFormat(CWnd* pParent, IClipFormats *clipFormats); // standard constructor
  12. virtual ~CSelectPasteFormat();
  13. CLIPFORMAT SelectedFormat() const { return m_selectedFormat; }
  14. void SelectedFormat(CLIPFORMAT val) { m_selectedFormat = val; }
  15. bool PasteAsUnicode() { return m_pasteAsUnicode; }
  16. // Dialog Data
  17. enum { IDD = IDD_DIALOG_SELECT_FORMAT };
  18. protected:
  19. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  20. IClipFormats *m_pClipFormats;
  21. CLIPFORMAT m_selectedFormat;
  22. CDialogResizer m_Resize;
  23. bool m_pasteAsUnicode;
  24. DECLARE_MESSAGE_MAP()
  25. CListBox m_Formats;
  26. virtual BOOL OnInitDialog();
  27. virtual void OnOK();
  28. public:
  29. afx_msg void OnLbnDblclkList1();
  30. afx_msg void OnSize(UINT nType, int cx, int cy);
  31. };