mainfrm.h

来自「一个快捷面板,可以将自己常用的程序放在其中!」· C头文件 代码 · 共 93 行

H
93
字号
// MainFrm.h : CMainFrame 类的接口
//


#pragma once

#include ".\SkinWin\SkinWin.h"
#include ".\SkinWin\SkinButton.h"
#include "trayicon.h"


class CMainFrame : public CFrameWnd
{
	
protected: // 仅从序列化创建
	CMainFrame();
	DECLARE_DYNCREATE(CMainFrame)

// 属性
public:
	// 属性的设置
	BOOL					m_bMinButton;
	BOOL					m_bMaxButton;
	BOOL					m_bStyle;
	BOOL					m_bShowBmp;

	WORD					m_Control;
	WORD					m_Key;

	// 支持换肤的类
	CSkinButtonResource		m_btnres;					//skin button resource
	CSkinWin				m_skinWin;					//skin win
	BOOL					m_bFirst;					//first time call
	CObList					m_wndList;					//hold button instance

	CTrayIcon				m_trayIcon;					// my tray icon

	BOOL					m_bShutdown;				// OK to terminate Program
	BOOL					m_bSave;
	BOOL					m_bRun;

	WINDOWPLACEMENT			m_wpPalace;



	CStatusBar				m_wndStatusBar;

public:
	void					WriteKeySetting();
	BOOL					ReadKeySetting();
	void					SetSyle();




// 操作
public:
	BOOL					SetSkin(CString sSkinFile);

// 重写
public:
	virtual BOOL			PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL			PreTranslateMessage(MSG* pMsg);

// 实现
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void			AssertValid() const;
	virtual void			Dump(CDumpContext& dc) const;
#endif

protected:  // 控件条嵌入成员
	CToolBar				m_wndToolBar;

// 生成的消息映射函数
protected:
	afx_msg int				OnCreate(LPCREATESTRUCT lpCreateStruct);
	DECLARE_MESSAGE_MAP()

public:
	afx_msg void			OnDestroy();
	afx_msg	LRESULT			OnTrayNotification(WPARAM wp, LPARAM lp);

	afx_msg void			OnClose();
	afx_msg void			OnAppExit();
	afx_msg void			OnShow();
	afx_msg void			OnOpenAddremove();
	afx_msg void			OnLockComputer();
};


⌨️ 快捷键说明

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