-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMessageDef.cpp
66 lines (57 loc) · 3.54 KB
/
MessageDef.cpp
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
//---------------------------------------------------------------------------//
//
// MessageDef.cpp
// TTB Plugin Template (C++11)
//
//---------------------------------------------------------------------------//
#include <windows.h>
//---------------------------------------------------------------------------//
// Message用文字列
//---------------------------------------------------------------------------//
constexpr auto TTB_HSHELL_ACTIVATESHELLWINDOW_MESSAGE = TEXT("TTBase HShell Activate ShellWindow");
constexpr auto TTB_HSHELL_GETMINRECT_MESSAGE = TEXT("TTBase HShell GetMinRect");
constexpr auto TTB_HSHELL_LANGUAGE_MESSAGE = TEXT("TTBase HShell Language");
constexpr auto TTB_HSHELL_REDRAW_MESSAGE = TEXT("TTBase HShell Redraw");
constexpr auto TTB_HSHELL_TASKMAN_MESSAGE = TEXT("TTBase HShell TaskMan");
constexpr auto TTB_HSHELL_WINDOWACTIVATED_MESSAGE = TEXT("TTBase HShell WindowActivated");
constexpr auto TTB_HSHELL_WINDOWCREATED_MESSAGE = TEXT("TTBase HShell WindowCreated");
constexpr auto TTB_HSHELL_WINDOWDESTROYED_MESSAGE = TEXT("TTBase HShell WindowDestroyed");
constexpr auto TTB_HMOUSE_ACTION_MESSAGE = TEXT("TTBase HMouse Action");
constexpr auto TTB_ICON_NOTIFY_MESSAGE = TEXT("TTBase ICON NOTIFY");
constexpr auto TTB_LOAD_DATA_FILE_MESSAGE = TEXT("TTBase LOAD DATA FILE");
constexpr auto TTB_SAVE_DATA_FILE_MESSAGE = TEXT("TTBase SAVE DATA FILE");
//---------------------------------------------------------------------------//
// Message定義
//---------------------------------------------------------------------------//
UINT TTB_HSHELL_ACTIVATESHELLWINDOW { 0 };
UINT TTB_HSHELL_GETMINRECT { 0 };
UINT TTB_HSHELL_LANGUAGE { 0 };
UINT TTB_HSHELL_REDRAW { 0 };
UINT TTB_HSHELL_TASKMAN { 0 };
UINT TTB_HSHELL_WINDOWACTIVATED { 0 };
UINT TTB_HSHELL_WINDOWCREATED { 0 };
UINT TTB_HSHELL_WINDOWDESTROYED { 0 };
UINT TTB_HMOUSE_ACTION { 0 };
UINT TTB_ICON_NOTIFY { 0 };
UINT TTB_LOAD_DATA_FILE { 0 };
UINT TTB_SAVE_DATA_FILE { 0 };
//---------------------------------------------------------------------------//
// 取得用関数
//---------------------------------------------------------------------------//
void RegisterMessages(void)
{
TTB_HSHELL_ACTIVATESHELLWINDOW = ::RegisterWindowMessage(TTB_HSHELL_ACTIVATESHELLWINDOW_MESSAGE);
TTB_HSHELL_GETMINRECT = ::RegisterWindowMessage(TTB_HSHELL_GETMINRECT_MESSAGE);
TTB_HSHELL_LANGUAGE = ::RegisterWindowMessage(TTB_HSHELL_LANGUAGE_MESSAGE);
TTB_HSHELL_REDRAW = ::RegisterWindowMessage(TTB_HSHELL_REDRAW_MESSAGE);
TTB_HSHELL_TASKMAN = ::RegisterWindowMessage(TTB_HSHELL_TASKMAN_MESSAGE);
TTB_HSHELL_WINDOWACTIVATED = ::RegisterWindowMessage(TTB_HSHELL_WINDOWACTIVATED_MESSAGE);
TTB_HSHELL_WINDOWCREATED = ::RegisterWindowMessage(TTB_HSHELL_WINDOWCREATED_MESSAGE);
TTB_HSHELL_WINDOWDESTROYED = ::RegisterWindowMessage(TTB_HSHELL_WINDOWDESTROYED_MESSAGE);
TTB_HMOUSE_ACTION = ::RegisterWindowMessage(TTB_HMOUSE_ACTION_MESSAGE);
TTB_ICON_NOTIFY = ::RegisterWindowMessage(TTB_ICON_NOTIFY_MESSAGE);
TTB_LOAD_DATA_FILE = ::RegisterWindowMessage(TTB_LOAD_DATA_FILE_MESSAGE);
TTB_SAVE_DATA_FILE = ::RegisterWindowMessage(TTB_SAVE_DATA_FILE_MESSAGE);
}
//---------------------------------------------------------------------------//
// MessageDef.cpp