forked from jps1973/Internet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButtonWindow.h
More file actions
34 lines (20 loc) · 853 Bytes
/
ButtonWindow.h
File metadata and controls
34 lines (20 loc) · 853 Bytes
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
// ButtonWindow.h
#pragma once
#include <windows.h>
#include <commctrl.h>
#include "Ascii.h"
#include "Common.h"
#define BUTTON_WINDOW_CLASS_NAME WC_BUTTON
#define BUTTON_WINDOW_EXTENDED_STYLE WS_EX_WINDOWEDGE
#define BUTTON_WINDOW_STYLE ( WS_CHILD | WS_VISIBLE | WS_BORDER | BS_FLAT )
#define BUTTON_WINDOW_TEXT "Go"
#define BUTTON_WINDOW_ID WM_USER
#define BUTTON_WINDOW_WIDTH 30
#define BUTTON_WINDOW_HEIGHT 25
BOOL IsButtonWindow( HWND hWnd );
BOOL ButtonWindowCreate( HWND hWndParent, HINSTANCE hInstance );
BOOL ButtonWindowEnable( BOOL bState );
BOOL ButtonWindowGetRect( LPRECT lpRect );
BOOL ButtonWindowMove( int nX, int nY, int nWidth, int nHeight, BOOL bRepaint = TRUE );
HWND ButtonWindowSetFocus();
void ButtonWindowSetFont( HFONT hFont );