dialogDlg.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. // dialogDlg.h : header file
  2. //一个研究windows gdi的例子,望大家多提意见!
  3. // 作者:pangzi2k(万涛)
  4. // 2003.10.3 pangzi2k@yahoo.com.cn
  5. //////////////////////////////////////////////////////////////////////
  6. #if !defined(AFX_DIALOGDLG_H__FB350B2B_D7BD_4ED5_A689_5D7BE1EB47CD__INCLUDED_)
  7. #define AFX_DIALOGDLG_H__FB350B2B_D7BD_4ED5_A689_5D7BE1EB47CD__INCLUDED_
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CDialogDlg dialog
  13. #include "EnBitmap.h"
  14. #include "SkinButton.h"
  15. #include "SkinStatic.h"
  16. #include "SkinTabCtrl.h"
  17. #include "SkinStatusBar.h"
  18. #include "SkinToolBar.h"
  19. #include "SkinView.h"
  20. #include "SkinMenu.h"
  21. class CDialogDlg : public CDialog
  22. {
  23. // Construction
  24. public:
  25. void SetViewSize(int cx, int cy);
  26. COLORREF m_NormalText;
  27. COLORREF m_MainWindowBackGround;
  28. COLORREF m_ExplainViewBackGround;
  29. COLORREF m_ExplainViewBorder;
  30. COLORREF m_crFlatBK;
  31. COLORREF m_crFlatHighLight;
  32. COLORREF m_crHighLight;
  33. COLORREF m_crFlatGray;
  34. COLORREF m_crBtnShadow;
  35. COLORREF m_crFlatHighLightText;
  36. CSize m_LeftTitleBarPos;
  37. CSize m_ButtonMenusPos;
  38. CSize m_ButtonForewardPos;
  39. CSize m_ButtonBackwardPos;
  40. CSize m_ButtonHelpMePos;
  41. CSize m_ButtonGoDropDownPos;
  42. CSize m_ButtonGoPos;
  43. CString m_strPathName;
  44. CString GetPathName( const char * filename );
  45. CRect m_BorderSizes;
  46. COLORREF GetColor(char *buf);
  47. CRect GetRect(char *buf);
  48. CSize GetSize(char *buf);
  49. void SplitString(char *buf,int nCount,CStringList& strList);
  50. void LoadSkin(CString strFileName);
  51. CDialogDlg(CWnd* pParent = NULL); // standard constructor
  52. CEnBitmap bmp;
  53. CEnBitmap m_bmpBottomBorder;
  54. CEnBitmap m_bmpRightBorder;
  55. BOOL m_bShow;
  56. UINT m_nMenuID;
  57. // Dialog Data
  58. enum { IDD = IDD_DIALOG_DIALOG };
  59. CComboBox m_cbFind; // 下拉框;
  60. CSkinStatusBar m_StatusBar; // 右下角状态栏;
  61. CSkinView m_View;
  62. CSkinButton m_btnHide; // 隐藏按钮;
  63. CSkinStatic m_ToolBarBk; //
  64. CSkinToolBar m_ToolBar; // 工具条
  65. CSkinStatic m_Panel; // 侧边栏;
  66. CSkinButton m_btnHelp; // 帮助按钮;
  67. CSkinButton m_btnBack; // 后退按钮;
  68. CSkinButton m_btnMenu; // 菜单按钮;
  69. CSkinButton m_btnFore; // 向前按钮;
  70. CSkinButton m_btnDropDown; // 下拉按钮;
  71. CSkinButton m_btnGo; // 查询按钮;
  72. CSkinStatic m_MainTitle; // 主标题栏
  73. CSkinTabCtrl m_Tab; // 左边的tabctrl
  74. CSkinButton m_btnDown; // 向下的按钮;
  75. CSkinStatic m_Title; // 标题按钮;
  76. CSkinButton m_btnUp; // 向上的按钮;
  77. // ClassWizard generated virtual function overrides
  78. //{{AFX_VIRTUAL(CDialogDlg)
  79. protected:
  80. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  81. //}}AFX_VIRTUAL
  82. // Implementation
  83. protected:
  84. HICON m_hIcon;
  85. // Generated message map functions
  86. virtual BOOL OnInitDialog();
  87. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  88. afx_msg void OnPaint();
  89. afx_msg HCURSOR OnQueryDragIcon();
  90. afx_msg void OnSize(UINT nType, int cx, int cy);
  91. afx_msg void OnHide();
  92. afx_msg void OnScheme();
  93. afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
  94. afx_msg void OnSchemeBlue();
  95. afx_msg void OnSchemeSliver();
  96. afx_msg void OnSchemeDefault();
  97. afx_msg void OnSchemeGreen();
  98. //}}AFX_MSG
  99. DECLARE_MESSAGE_MAP()
  100. public:
  101. afx_msg void OnBnClickedGo();
  102. afx_msg void OnBnClickedMenu();
  103. virtual BOOL DestroyWindow();
  104. };
  105. //{{AFX_INSERT_LOCATION}}
  106. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  107. #endif // !defined(AFX_DIALOGDLG_H__FB350B2B_D7BD_4ED5_A689_5D7BE1EB47CD__INCLUDED_)