aduiDialogBar.h 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. #ifndef _aduiDialogBar_h
  11. #define _aduiDialogBar_h
  12. #pragma pack (push, 8)
  13. #pragma once
  14. #ifndef _ADESK_MAC_
  15. //////////////////////////////////////////////////////////////////////////////
  16. // Dialog Bar
  17. //
  18. // Essentialy a straight port of CAdUiBaseDialog, except for the constructor.
  19. //
  20. // Note: This class is now obsolete and is slated for removal.
  21. #pragma warning(push)
  22. #pragma warning(disable : 4275)
  23. class ADUI_PORT CAdUiDialogBar : public CDialogBar {
  24. DECLARE_DYNAMIC(CAdUiDialogBar);
  25. public:
  26. CAdUiDialogBar ();
  27. virtual ~CAdUiDialogBar ();
  28. // AdUi message handlers
  29. protected:
  30. virtual ADUI_REPLY DoAdUiMessage (
  31. ADUI_NOTIFY notifyCode, UINT controlId, LPARAM lParam
  32. );
  33. virtual ADUI_REPLY OnNotifyControlChange (UINT controlId, LPARAM lParam);
  34. virtual ADUI_REPLY OnNotifyControlValid (UINT controlId, BOOL isValid);
  35. virtual ADUI_REPLY OnNotifyGeneric (UINT controlId, LPARAM lParam);
  36. virtual ADUI_REPLY OnNotifyUpdateTip (CWnd *control);
  37. // Misc.
  38. protected:
  39. BOOL m_bUseTips;
  40. CAdUiTextTip *m_pTextTip;
  41. CToolTipCtrl *m_pToolTip;
  42. CString m_rootKey;
  43. public:
  44. virtual CWnd *AppMainWindow ();
  45. virtual HINSTANCE AppResourceInstance ();
  46. virtual LPCTSTR AppRootKey ();
  47. BOOL GetUseTips ();
  48. void SetUseTips (BOOL useTips);
  49. // ClassWizard-controlled
  50. public:
  51. //{{AFX_DATA(CAdUiDialogBar)
  52. enum { IDD = 0 };
  53. //}}AFX_DATA
  54. //{{AFX_VIRTUAL(CAdUiDialogBar)
  55. public:
  56. virtual BOOL PreTranslateMessage(MSG* pMsg);
  57. protected:
  58. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  59. virtual void PostNcDestroy();
  60. //}}AFX_VIRTUAL
  61. protected:
  62. //{{AFX_MSG(CAdUiDialogBar)
  63. afx_msg LRESULT OnAdUiMessage (WPARAM wParam, LPARAM lParam);
  64. afx_msg int OnCreate(LPCREATESTRUCT lpcs);
  65. afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
  66. //}}AFX_MSG
  67. afx_msg BOOL OnNotify_ToolTipText(UINT id, NMHDR *pNMHDR, LRESULT *pResult);
  68. DECLARE_MESSAGE_MAP()
  69. };
  70. #pragma warning(pop)
  71. #endif //_ADESK_MAC_
  72. /////////////////////////////////////////////////////////////////////////////
  73. //{{AFX_INSERT_LOCATION}}
  74. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  75. #pragma pack (pop)
  76. #endif
  77. /////////////////////////////////////////////////////////////////////////////