forked from louxj424/virtualkeyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
virtualkeyboard.h
66 lines (46 loc) · 1.38 KB
/
virtualkeyboard.h
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
62
63
64
65
66
#pragma once
#include "resource.h"
#include "stdafx.h"
enum TimerID
{
E_TOOLTIPTIMER = 1,
E_REFLESHKEYSTATE= 2,
};
class CDYVirtualKeyBoardFrameWnd : public WindowImplBase
{
public:
CDYVirtualKeyBoardFrameWnd();
virtual ~CDYVirtualKeyBoardFrameWnd() {};
#ifdef _DEBUG
virtual UILIB_RESOURCETYPE GetResourceType() const
{
return UILIB_FILE;
};
#else
virtual LPCTSTR GetResourceID() const
{
return MAKEINTRESOURCE(IDR_ZIP_SKIN);
};
virtual UILIB_RESOURCETYPE GetResourceType() const
{
return UILIB_ZIPRESOURCE;
};
#endif
virtual LPCTSTR GetWindowClassName() const;
virtual CDuiString GetSkinFile() { return _T("skin.xml"); }
virtual CDuiString GetSkinFolder() { return _T("Skin"); }
virtual void InitWindow();
virtual LRESULT OnSize(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
virtual void Notify(TNotifyUI& msg);
virtual CControlUI* CreateControl(LPCTSTR pstrClass);
virtual void OnFinalMessage(HWND hWnd);
virtual LRESULT OnLButtonDown(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled);
virtual LRESULT OnLButtonUp(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& bHandled);
virtual LRESULT HandleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam) override;
public:
void SetCtrlKeyandLightKeyState();
void ProcessButtonDown(CControlUI* pControl, BOOL isButtonDown);
public:
HWND hTooltip_;
TOOLINFO toolInfo_;
};