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

📄 menubutt.h

📁 支持Windows 3.x、Windows 9x平台上的中文(GB、Big5)、日文(Shift JIS、EUC JIS)、韩文(KS C 5601)、HZ码的显示与输入,智能内码识别
💻 H
字号:
// menubutt.h : header file
//
//菜单按钮类

/////////////////////////////////////////////////////////////////////////////
// CMenuButton window

class CMenuButton : public CBasicButton
{
// Construction
public:
	CMenuButton();

// Attributes
	public:
		//标记菜单显示状态,0表示没有显示菜单
		//1表示已经显示
		BOOL	m_bMenuStatus ;
private:
	CBitmap	m_Bitmap ;	//按钮上的显示位图
	CMenu	m_Menu ;	//该按钮上的菜单
	
	CSystemSetSheet	*m_pSystemSetSheet ;	//系统设置页式对话框
// Operations
	private:
		//改变输出内码
		void ChangeCodeMenu( int m ) ;
public:
	BOOL	InitButton( 
							LPCSTR 	lpcsName , 	//窗口名称
							const RECT &rect ,	//窗口大小
							CWnd 	*pParent ,	//父窗口
							UINT	uWinID ,	//窗口ID
							UINT	uBitmapID , 	//位图ID
							UINT	uMenuID ) ;	//菜单ID		

// Implementation
public:
	virtual ~CMenuButton();

protected:
	// Generated message map functions
	//{{AFX_MSG(CMenuButton)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnPaint();
	afx_msg void OnSystemSet();
	afx_msg void OnExitCs();
	afx_msg void OnVersion();
	afx_msg void OnFriends();
	afx_msg void OnOutputGb();
	afx_msg void OnOutputBig5();
	afx_msg void OnOutputShiftjis();
	afx_msg void OnOutputEucjis();
	afx_msg void OnOutputKsc5601();
	afx_msg void OnOuputEnglish();
	afx_msg void OnSystemTranslation();
	afx_msg void OnSystemInput();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg LRESULT OnMenuChar(UINT nChar, UINT nFlags, CMenu* pMenu);
	afx_msg void OnMenuSelect(UINT nItemID, UINT nFlags, HMENU hSysMenu);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnSystemHelp();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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