📄 rygwnd.h
字号:
// RygWnd.h: interface for the RygWnd class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_RYGWND_H__096141E2_6AC5_11D8_B5C9_F1F27BB8AAFB__INCLUDED_)
#define AFX_RYGWND_H__096141E2_6AC5_11D8_B5C9_F1F27BB8AAFB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CRygWnd window
#define RYG_SETSTATE WM_USER + 0
#define RYG_GETSTATE WM_USER + 1
LRESULT CALLBACK AFX_EXPORT
RygWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
class CRygWnd : public CWnd
{
private:
int m_nState; // 0=off, 1=red, 2=yellow, 3=green
static CRect s_rect;
static CPoint s_point;
static CRect s_rColor;
static CBrush s_bColor[2];
// Construction
public:
CRygWnd();
public:
static BOOL RegisterWndClass(HINSTANCE hInstance);
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRygWnd)
protected:
virtual void PostNcDestroy();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CRygWnd();
// Generated message map functions
private:
void SetMapping(CDC* pDC);
void UpdateColor(CDC* pDC, int n);
protected:
//{{AFX_MSG(CRygWnd)
afx_msg void OnPaint();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
afx_msg LRESULT OnSetState(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnGetState(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
};
#endif // !defined(AFX_RYGWND_H__096141E2_6AC5_11D8_B5C9_F1F27BB8AAFB__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -