summaryrefslogtreecommitdiff
path: root/win/wheelwnd.h
blob: 6a90100009fa6bc0c2f95551d45b3982a93e0371 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#if !defined(AFX_WHEELWND_H__CA6A1DC2_7283_11D2_8203_8EEC36A08D1C__INCLUDED_)
#define AFX_WHEELWND_H__CA6A1DC2_7283_11D2_8203_8EEC36A08D1C__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// WheelWnd.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CWheelWnd window

class CWheelWnd : public CWnd
{
// Construction
public:
	CWheelWnd(CPoint ptOrigin);
	BOOL Create(CWnd* pParentWnd);

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWheelWnd)
	protected:
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	virtual void PostNcDestroy();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CWheelWnd();

	// Generated message map functions
protected:
	static LRESULT CALLBACK HookProc(int code, WPARAM wParam, LPARAM lParam);
	CBitmap m_bitmap;
	CWnd* m_pParentWnd;
	CSize m_sizeBitmap;
	CPoint m_ptOrigin;
	CPoint m_ptCursorPrevious;
	CRect m_rcCursorMargin;

	//{{AFX_MSG(CWheelWnd)
	afx_msg void OnPaint();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WHEELWND_H__CA6A1DC2_7283_11D2_8203_8EEC36A08D1C__INCLUDED_)