📄 skindialog.h
字号:
#if !defined(AFX_SKINDIALOG_H__D4BB580D_03C1_4790_8613_43CB268CF4ED__INCLUDED_)
#define AFX_SKINDIALOG_H__D4BB580D_03C1_4790_8613_43CB268CF4ED__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BitmapSK.h"
/////////////////////////////////////////////////////////////////////////////
// CSkinDialog dialog
class CDialogSK : public CDialog
{
public:
// constructor and Destructor
CDialogSK();
CDialogSK(LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL);
CDialogSK(UINT nIDTemplate, CWnd* pParentWnd = NULL);
~CDialogSK();
protected:
// common constructor
virtual void Constructor();
// Destructor,Release the bitmap
void Destructor();
protected:
//window title text
CString m_titleText;
protected:
//interface bitmap
CBitmapSK m_bmpLeft; //dialog border left bitmap
CBitmapSK m_bmpRight; //dialog border right bitmap
CBitmapSK m_bmpBottom;//dialog border bottom bitmap
CBitmapSK m_bmpTitle; //two bitmap, dlg active and disactive
CBitmapSK m_bmpTitleBtn;//max min close btn bitmap
CBitmapSK m_bmpBkDlg; //dialog back ground bitmap
protected:
//transparent color of bitmap
COLORREF m_transColorLeft;
COLORREF m_transColorRight;
COLORREF m_transColorBottom;
COLORREF m_transColorTitle;
COLORREF m_transColorTitleBtn;
COLORREF m_transColorBackDlg;
protected:
//window border width and height
// the border can not more than the border bmp size
int m_borderLeftWidth;
int m_borderRightWidth;
int m_borderBottomHeight;
int m_titleHeight;
//offset in the bitmap
int m_offsetLeft1, m_offsetLeft2;
int m_offsetRight1, m_offsetRight2;
int m_offsetBottom1, m_offsetBottom2;
int m_offsetTitle1, m_offsetTitle2;
public:
//window style
BOOL m_titlable;
BOOL m_sizable;
BOOL m_minable;
BOOL m_maxable;
BOOL m_sysmenu;
BOOL m_isActive;
public:
BOOL m_winTransable;
public:
//msg
void OnPaint();
BOOL OnEraseBkgnd(CDC* pDC);
public:
// draw skin (x,y) is this dialog region
BOOL DrawRight(CDC *pDC, int x, int y, int height, int state);
BOOL DrawLeft(CDC *pDC, int x, int y, int height, int state);
BOOL DrawBottom(CDC *pDC, int x, int y, int width, int state);
BOOL DrawTitle(CDC *pDC, int x, int y, int width, int state);
BOOL DrawFrame(CDC *pDC, int x, int y,int width, int height, int state);
BOOL DrawBkDlg(CDC *pDC, int x, int y,int width, int height, int state);
BOOL DrawButton( CDC * pDC, int i, int state );
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SKINDIALOG_H__D4BB580D_03C1_4790_8613_43CB268CF4ED__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -