⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setwindlg.h

📁 一个类似卡巴斯基界面的设计!其按钮和别的一些控件都是封装了各种优秀的自绘类!
💻 H
字号:
// SetWinDlg.h : header file
//

#if !defined(AFX_SETWINDLG_H__A6FC14C6_9408_41A4_B9AC_9827C7FB7D7B__INCLUDED_)
#define AFX_SETWINDLG_H__A6FC14C6_9408_41A4_B9AC_9827C7FB7D7B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define MYWM_NOTIFYICON WM_USER+1

/////////////////////////////////////////////////////////////////////////////
// CSetWinDlg dialog
#include "PPHtmlStatic.h"
#include "XpStyleButtonST.h"
#include "ThemeHelperST.h"
#include "HyperLink.h"
#include "common.h"
#include "Manage.h"
#include "Usbkey.h"
#include "WinXPButtonST.h"

////////////////////////////////////////////////////////////////////////
//程序中封装了Button的扩展类CButtonST类,完成了按钮的设计,封装Hyperlink类
//实现文本的超链接,其对象的定义如下! 
//
//
//
//

class CSetWinDlg : public CDialog
{
// Construction
public:
	CSetWinDlg(CWnd* pParent = NULL);	// standard constructor
	void OnUpdateFlush(CMenu *pMenu);
	BOOL editcheck;

	CFont m_font;
// Dialog Data
	//{{AFX_DATA(CSetWinDlg)
	enum { IDD = IDD_SETWIN_DIALOG };
	CPPHtmlStatic	m_com1;
	CPPHtmlStatic	m_com2;
	CPPHtmlStatic	m_USBKEY1;
	CPPHtmlStatic	m_group1;
	CPPHtmlStatic	m_group2;
    CPPHtmlStatic   m_Seting;
    CPPHtmlStatic   m_Container;
//  CPPHtmlStatic   m_common;
	CPPHtmlStatic   m_Test;
	CPPHtmlStatic   m_Title1;
	CWinXPButtonST  m_Btn1;//winxpbuttonst风格的按钮
	CWinXPButtonST  m_Btn2;
	CWinXPButtonST  m_Btn3;
	CXPStyleButtonST  m_Close;//关闭、确定、应用按钮控制对象
	CXPStyleButtonST  m_OK;
	CXPStyleButtonST  m_Cancel;
	CXPStyleButtonST  m_Application;
	CPPHtmlStatic   m_Title2;
	CPPHtmlStatic   m_Title3;
	CPPHtmlStatic   m_Title4;
	CPPHtmlStatic   m_Title5;


	CThemeHelperST	m_Theme;
	HICON           m_hColorIcon;
	CHyperLink      m_hylink3;//超链接控制对象
	CHyperLink      m_hylink4;
	Ccommon         *com;//子窗体类对象
	Manage          *man;
	CUsbkey         *usb;
	NOTIFYICONDATA m_tnid;  //设置系统托盘
	BCMenu m_menu;//菜单控制对象
	PNOTIFYICONDATA m_ptnid;


		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSetWinDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSetWinDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSeting();
	virtual void OnCancel();
	afx_msg void OnBtn3();
	afx_msg void OnBtn1();
	afx_msg void Oncom1();
	afx_msg void Oncom2();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnDestroy();
	afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
	afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
	afx_msg LRESULT OnMenuChar(UINT nChar, UINT nFlags, CMenu* pMenu);
	afx_msg void OnUpdateEditCut(CCmdUI* pCmdUI);
	afx_msg void OnBtn2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SETWINDLG_H__A6FC14C6_9408_41A4_B9AC_9827C7FB7D7B__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -