-
Notifications
You must be signed in to change notification settings - Fork 0
/
BaseWindow.h
46 lines (37 loc) · 1.2 KB
/
BaseWindow.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
// BaseWindow.h: Schnittstelle für die Klasse BaseWindow.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GLWINDOW_H__E323E2E3_4043_11D4_B941_0000E8699C86__INCLUDED_)
#define AFX_GLWINDOW_H__E323E2E3_4043_11D4_B941_0000E8699C86__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <windows.h>
#include "resource.h"
class BaseWindow
{
private:
static bool isRegistered;
static bool registerWindow();
static LRESULT CALLBACK staticWndProc (HWND, UINT, WPARAM, LPARAM);
static LRESULT CALLBACK CBTHook(int code, WPARAM wp, LPARAM lp);
protected:
HWND hWnd,parentHWND; // Handle Window
virtual LRESULT windowProc(HWND, UINT, WPARAM, LPARAM);
DWORD dwExStyle;
DWORD dwStyle;
RECT rctPosition;
int screen_index;
public:
HWND getWindowHandle();
void setParentHandle(HWND h);
RECT getPosition();
void setPosition(RECT pos);
DWORD getStyle(bool getExStyle=false);
void setStyles(DWORD exStyle=-1, DWORD style=-1);
bool createWindow(int screen_index);
int MessageLoop();
BaseWindow();
virtual ~BaseWindow();
};
#endif // !defined(AFX_GLWINDOW_H__E323E2E3_4043_11D4_B941_0000E8699C86__INCLUDED_)