📄 skindialog.h
字号:
#if !defined(AFX_SKINDIALOG_H__D14065F7_F9E2_4EC2_B0DD_DF01AAEE4E31__INCLUDED_)
#define AFX_SKINDIALOG_H__D14065F7_F9E2_4EC2_B0DD_DF01AAEE4E31__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif
#include "IniFile.h"
#include "BitmapBtn.h"
class CSkinDialog : public CDialog
{
// Construction
public:
CIniFile* GetIniFile();
CRect GetRect(CString strInfo);
void SetBtnID(CDWordArray* pArray);
void SetCtrlID(CDWordArray *pArray);
void SetButton(CBitmapBtn* pBtn, CString lpKey, CBitmap *pNormal, CBitmap* pOver, CBitmap* pDown, CBitmap* pDisable);
void LoadMenu();
void LoadSkin();
void InitSkinPathName();
void LoadBkBitmap();
void SetMainMenu(UINT nMenuID);
CSkinDialog(UINT nIDTemplate, CWnd* pParent = NULL); // standard constructor
~CSkinDialog();
// Dialog Data
//{{AFX_DATA(CSkinDialog)
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSkinDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSkinDialog)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLoadskin();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
virtual BOOL OnInitDialog();
afx_msg void OnAbout();
afx_msg void OnExit();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void SetWindowTransparent();
void LoadCtrlPosition();
CDWordArray* pBtnIDArray;
CDWordArray* pCtrlIDArray;
void LoadBtnCtrl();
void GetBkColorValue(COLORREF& crTransparent, COLORREF& crArrange);
HBITMAP CopyFromBitmap(CDC* pDC, CRect& rect, CBitmap* pBitmap);
CString m_SkinPath;
CIniFile m_SkinIniFile;
CDC* pMemDC;
CSize m_WinSize;
CBitmap* pBkBitmap;
CMenu* pMainMenu;
UINT m_nMainMenuID;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SKINDIALOG_H__D14065F7_F9E2_4EC2_B0DD_DF01AAEE4E31__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -