-
Notifications
You must be signed in to change notification settings - Fork 0
/
ButtonGUI.h
43 lines (38 loc) · 1.5 KB
/
ButtonGUI.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
#pragma once
class ButtonGUI{
public:
static void InitMainWndScreenshot();
static void InitButtonBitmaps();
static void InitBackBtn(RECT &rc);
static void InitCloseBtn(RECT &rc);
static void InitNormalBtn();
static void InitAutoPartitionButton();
static void InitManualPartitionButton();
private:
static void Paint(HWND &hWnd, HBITMAP &hButtonImg, int xBmpPos, int yBmpPos, int drawText, LPCWSTR text, int textX, int textY);
static void ChangeBitmapState(HWND &hWnd, BOOL& ButtonDisabled, HBITMAP &hButtonTmpImg, HBITMAP &hButtonImg, BOOL setState);
static LRESULT CALLBACK BackButtonProc(HWND, UINT, WPARAM, LPARAM, UINT_PTR, DWORD_PTR);
static LRESULT CALLBACK CloseButtonProc(HWND, UINT, WPARAM, LPARAM, UINT_PTR, DWORD_PTR);
static LRESULT CALLBACK NormalButtonProc(HWND, UINT, WPARAM, LPARAM, UINT_PTR, DWORD_PTR);
static LRESULT CALLBACK AutoPartButtonProc(HWND, UINT, WPARAM, LPARAM, UINT_PTR, DWORD_PTR);
static LRESULT CALLBACK ManualPartButtonProc(HWND, UINT, WPARAM, LPARAM, UINT_PTR, DWORD_PTR);
// Temporary bitmaps, used for making the buttons look transparent
HBITMAP hBackBtnTmpImg,
hCloseBtnTmpImg,
hNormalBtnTmpImg,
hAutoPartBtnTmpImg,
hManualPartBtnTmpImg;
HBITMAP hbmpWndScreenshot;
HDC hdcWndScreenshot,
hdcMainWnd;
BOOLEAN BackButtonTracking,
BackButtonHover,
CloseButtonTracking,
CloseButtonHover,
NormalButtonTracking,
NormalButtonHover,
AutoPartButtonTracking,
AutoPartButtonHover,
ManualPartButtonTracking,
ManualPartButtonHover;
};