-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMainWindowOverrides.h
49 lines (39 loc) · 1.54 KB
/
MainWindowOverrides.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
#pragma once
#include "UIManager.h"
namespace cse
{
namespace uiManager
{
class MainWindowMiscData : public bgsee::WindowExtraData
{
public:
Subwindow* ToolbarExtras;
MainWindowMiscData();
virtual ~MainWindowMiscData();
enum { kTypeID = 'XMWM' };
};
class MainWindowToolbarData : public bgsee::WindowExtraData
{
public:
bool SettingTODSlider;
MainWindowToolbarData();
virtual ~MainWindowToolbarData();
enum { kTypeID = 'XMTD' };
};
LRESULT CALLBACK MainWindowMenuInitSubclassProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
bgsee::WindowSubclassProcCollection::SubclassProcExtraParams* SubclassParams);
LRESULT CALLBACK MainWindowMenuSelectSubclassProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
bgsee::WindowSubclassProcCollection::SubclassProcExtraParams* SubclassParams);
LRESULT CALLBACK MainWindowMiscSubclassProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
bgsee::WindowSubclassProcCollection::SubclassProcExtraParams* SubclassParams);
LRESULT CALLBACK MainWindowToolbarSubClassProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
bgsee::WindowSubclassProcCollection::SubclassProcExtraParams* SubclassParams);
void InitializeMainWindowOverrides();
}
}
// custom window messages
#define WM_MAINWINDOW_INIT_DIALOG (WM_USER + 2003)
#define WM_MAINWINDOW_INIT_EXTRADATA (WM_USER + 2004)
#define WM_MAINTOOLBAR_INIT (WM_USER + 2005)
// wParam = position
#define WM_MAINTOOLBAR_SETTOD (WM_USER + 2006)