AcFdUiFieldOptionDialog.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. //
  11. // Name: AcFdUiFieldOptionDialog.h
  12. //
  13. // Description:
  14. //
  15. //////////////////////////////////////////////////////////////////////////////
  16. #pragma once
  17. #include "AdUi.h"
  18. #include "AcFdUi.h"
  19. class AcTcUiSystemInternals;
  20. class CAcFdUiFieldDialog;
  21. class CAcFdUiFieldDialogHook;
  22. class CAcFdUiImpFieldDialog;
  23. class AcDbField;
  24. class ACFDUI_PORT CAcFdUiFieldOptionDialog : public CAdUiDialog
  25. {
  26. friend CAcFdUiFieldDialog;
  27. friend CAcFdUiImpFieldDialog;
  28. DECLARE_DYNAMIC(CAcFdUiFieldOptionDialog)
  29. public:
  30. CAcFdUiFieldOptionDialog(CAcFdUiFieldDialogHook* pDialogHook, CAcFdUiFieldDialog* pFieldDlg,
  31. UINT nIDTemplate, HINSTANCE hDialogResource = NULL);
  32. virtual ~CAcFdUiFieldOptionDialog();
  33. CAcFdUiFieldDialogHook* GetFieldDialogHook(void) const;
  34. CAcFdUiFieldDialog* GetFieldDialog (void) const;
  35. virtual BOOL Create (CWnd* pParent);
  36. public:
  37. // Base class overrides
  38. virtual BOOL Create (LPCTSTR lpszTemplateName,
  39. CWnd* pParent = NULL);
  40. virtual BOOL Create (UINT nIDTemplate,
  41. CWnd* pParent = NULL);
  42. protected:
  43. virtual BOOL OnSetActive (void);
  44. virtual BOOL OnKillActive (void);
  45. virtual BOOL OnFieldSelected (UINT uNewFieldId);
  46. protected:
  47. // Base class overrides
  48. virtual void OnOK (void);
  49. virtual void OnCancel (void);
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX);
  52. afx_msg LRESULT OnFormatChanged (WPARAM wParam,
  53. LPARAM lParam);
  54. afx_msg LRESULT OnBeginFormatExDialog (WPARAM wParam,
  55. LPARAM lParam);
  56. afx_msg LRESULT OnEndFormatExDialog (WPARAM wParam,
  57. LPARAM lParam);
  58. DECLARE_MESSAGE_MAP()
  59. protected:
  60. void * mpImpObj;
  61. private:
  62. friend class AcFdUiSystemInternals;
  63. };