| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- // dialogDlg.h : header file
- //一个研究windows gdi的例子,望大家多提意见!
- // 作者:pangzi2k(万涛)
- // 2003.10.3 pangzi2k@yahoo.com.cn
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_DIALOGDLG_H__FB350B2B_D7BD_4ED5_A689_5D7BE1EB47CD__INCLUDED_)
- #define AFX_DIALOGDLG_H__FB350B2B_D7BD_4ED5_A689_5D7BE1EB47CD__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CDialogDlg dialog
- #include "EnBitmap.h"
- #include "SkinButton.h"
- #include "SkinStatic.h"
- #include "SkinTabCtrl.h"
- #include "SkinStatusBar.h"
- #include "SkinToolBar.h"
- #include "SkinView.h"
- #include "SkinMenu.h"
- class CDialogDlg : public CDialog
- {
- // Construction
- public:
- void SetViewSize(int cx, int cy);
- COLORREF m_NormalText;
- COLORREF m_MainWindowBackGround;
- COLORREF m_ExplainViewBackGround;
- COLORREF m_ExplainViewBorder;
- COLORREF m_crFlatBK;
- COLORREF m_crFlatHighLight;
- COLORREF m_crHighLight;
- COLORREF m_crFlatGray;
- COLORREF m_crBtnShadow;
- COLORREF m_crFlatHighLightText;
- CSize m_LeftTitleBarPos;
- CSize m_ButtonMenusPos;
- CSize m_ButtonForewardPos;
- CSize m_ButtonBackwardPos;
- CSize m_ButtonHelpMePos;
- CSize m_ButtonGoDropDownPos;
- CSize m_ButtonGoPos;
- CString m_strPathName;
- CString GetPathName( const char * filename );
- CRect m_BorderSizes;
- COLORREF GetColor(char *buf);
- CRect GetRect(char *buf);
- CSize GetSize(char *buf);
- void SplitString(char *buf,int nCount,CStringList& strList);
- void LoadSkin(CString strFileName);
- CDialogDlg(CWnd* pParent = NULL); // standard constructor
- CEnBitmap bmp;
- CEnBitmap m_bmpBottomBorder;
- CEnBitmap m_bmpRightBorder;
- BOOL m_bShow;
- UINT m_nMenuID;
- // Dialog Data
- enum { IDD = IDD_DIALOG_DIALOG };
- CComboBox m_cbFind; // 下拉框;
- CSkinStatusBar m_StatusBar; // 右下角状态栏;
- CSkinView m_View;
- CSkinButton m_btnHide; // 隐藏按钮;
- CSkinStatic m_ToolBarBk; //
- CSkinToolBar m_ToolBar; // 工具条
- CSkinStatic m_Panel; // 侧边栏;
- CSkinButton m_btnHelp; // 帮助按钮;
- CSkinButton m_btnBack; // 后退按钮;
- CSkinButton m_btnMenu; // 菜单按钮;
- CSkinButton m_btnFore; // 向前按钮;
- CSkinButton m_btnDropDown; // 下拉按钮;
- CSkinButton m_btnGo; // 查询按钮;
- CSkinStatic m_MainTitle; // 主标题栏
- CSkinTabCtrl m_Tab; // 左边的tabctrl
- CSkinButton m_btnDown; // 向下的按钮;
- CSkinStatic m_Title; // 标题按钮;
- CSkinButton m_btnUp; // 向上的按钮;
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDialogDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnHide();
- afx_msg void OnScheme();
- afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
- afx_msg void OnSchemeBlue();
- afx_msg void OnSchemeSliver();
- afx_msg void OnSchemeDefault();
- afx_msg void OnSchemeGreen();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- public:
- afx_msg void OnBnClickedGo();
- afx_msg void OnBnClickedMenu();
- virtual BOOL DestroyWindow();
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DIALOGDLG_H__FB350B2B_D7BD_4ED5_A689_5D7BE1EB47CD__INCLUDED_)
|