-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainDlg.h
46 lines (39 loc) · 2.21 KB
/
MainDlg.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
// MainDlg.h : interface of the CMainDlg class
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include "SnapshotDlg.h"
#define WM_STARTSNAPSHOT WM_USER+108
class CMainDlg : public SHostWnd
{
public:
CMainDlg();
~CMainDlg();
void OnClose();
void OnStart();
int OnCreate(LPCREATESTRUCT lpCreateStruct);
BOOL OnInitDialog(HWND wndFocus, LPARAM lInitParam);
void OnDestroy();
LRESULT OnUserDefinedMsg(UINT uMsg, WPARAM wParam, LPARAM lParam);
void OnHotKey(int nHotKeyID, UINT uModifiers, UINT uVirtKey);
LRESULT StartCap(UINT uMsg, WPARAM wParam, LPARAM lParam,BOOL &bHandled);
protected:
//soui消息
EVENT_MAP_BEGIN()
EVENT_MAP_END()
//HostWnd真实窗口消息处理
BEGIN_MSG_MAP_EX(CMainDlg)
MSG_WM_CREATE(OnCreate)
MESSAGE_HANDLER(WM_STARTSNAPSHOT, StartCap)
MSG_WM_INITDIALOG(OnInitDialog)
MSG_WM_CLOSE(OnClose)
MSG_WM_DESTROY(OnDestroy)
MSG_WM_HOTKEY(OnHotKey)
CHAIN_MSG_MAP(SHostWnd)
REFLECT_NOTIFICATIONS_EX()
END_MSG_MAP()
private:
BOOL m_bLayoutInited;
int m_iHotKeyId;
bool m_Captured;
};