www.pudn.com > 智能内码识别,支持屏幕取词翻译的程序.zip > MENUBUTT.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() 
}; 
 
/////////////////////////////////////////////////////////////////////////////