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

📄 agvdlg.h

📁 windows ce 下启动代理程序
💻 H
字号:
// agvdlg.h : header file
//

#ifndef __CAgvDialog
#define __CAgvDialog

#include "UserMsg.h"
#include "Colors.h"

#define ITEM_HEIGHT         20
#define CTLCOLOR_DLG        4

/////////////////////////////////////////////////////////////////////////////
// CAgvDialog dialog

class CAgvDialog : public CDialog
{
private:
	int           m_nPressedButton;
	int           m_nPressTicks;
	CDC           m_MemDC;
	CBitmap       m_Bitmap;
	BOOL          m_bNotPainted;
	CString       m_strText;
	CBrush        m_brBkgrnd;
	CBrush        m_brButton;
	CBrush        m_brListBox;
	CBrush        m_brEdit;
	static CPoint m_ptButtons[4];

protected:	
	COLORREF      m_clrDialog;
	COLORREF      m_clrButton;
	COLORREF      m_clrListBox;
	COLORREF      m_clrEdit;
	COLORREF      m_clrTitleBar;
	WPARAM        m_wParam;
	LPARAM        m_lParam;

private:
	void PressButton(int nButtonID);
	void ReleaseButton(int nButtonID);
	
// Construction
public:
	CAgvDialog();
	CAgvDialog(UINT nID, CWnd* pParent = NULL);

	// Create the dialog based on a template
   BOOL Create(UINT nIDTemplate, CWnd* pParentWnd = NULL, 
   				COLORREF clrDialog = RGB(170, 220, 255),
					COLORREF clrButton = RGB(255, 128, 64),
					COLORREF clrListBox = RGB(0, 213, 213),
					COLORREF clrEdit = CLR_WHITE);
   				
	void SetTitleString(CString strTitle);
   
   virtual void OnButton1() {}
   virtual void OnButton2() {}
   virtual void OnButton3() {}
   virtual void OnButton4() {}
   virtual void OnEscape() {}
   virtual void OnInsert() {}
   virtual void OnF9() {}
	virtual void OnOK() {}
   
// Implementation
protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	virtual void PostNcDestroy();

	// Generated message map functions
	//{{AFX_MSG(CAgvDialog)
	virtual BOOL OnInitDialog();
	afx_msg LRESULT OnUserButton(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnQuitApp(WPARAM wParam, LPARAM lParam);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	afx_msg void OnPaint();
	afx_msg BOOL OnNcActivate(BOOL bActive);
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
	afx_msg LRESULT OnChildClosed(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};
#endif

⌨️ 快捷键说明

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