-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWinApiHelper.h
47 lines (34 loc) · 1.62 KB
/
WinApiHelper.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
#ifndef WINAPIHELPER___H
#define WINAPIHELPER___H
#include <windows.h>
#include <CommCtrl.h>
#ifdef __cplusplus
extern "C" {
#endif
void EnableControl(HWND hDlg, int controlId);
void DisableControl(HWND hDlg, int controlId);
void SetText (HWND hDlg, int controlId, const char* text);
void SetTextLength(HWND hDlg, int controlId, int maxLength);
void SetUnicodeText (HWND hDlg, int controlId, const wchar_t* text);
void SetMaxTextLength(HWND hDlg, int controlId, int maxLength);
void GetText (HWND hDlg, int controlId, char* buffer, int bufferSize);
void ComboBox_Clear(HWND hDlg, int comboboxId);
void ComboBox_AddItem(HWND hDlg, int comboboxId, const char* text);
void ComboBox_SetItemIndex(HWND hDlg, int comboboxId, int itemIndex);
int ComboBox_GetItemIndex(HWND hDlg, int comboboxId);
void ComboBox_SetDropdownListHeight(HWND hDlg, int comboboxId, int height);
void ListBox_Clear(HWND hDlg, int comboboxId);
void ListBox_AddItem(HWND hDlg, int comboboxId, const char* text);
void ListBox_SetItemIndex(HWND hDlg, int comboboxId, int itemIndex);
int ListBox_GetItemIndex(HWND hDlg, int comboboxId);
int Slider_GetPosition(HWND hDlg, int sliderId);
void CheckBox_SetState(HWND hDlg, int checkboxId, BOOL checked, BOOL enabled);
BOOL CheckBox_GetState(HWND hDlg, int checkboxId);
void RadioButton_SetState(HWND hDlg, int radioButtonId, BOOL checked, BOOL enabled);
BOOL RadioButton_GetState(HWND hDlg, int radioButtonId);
HTREEITEM TreeView_AddNode (HWND hWnd, int treeId, HTREEITEM parent, wchar_t* caption, int icon, int selected_icon);
void TreeView_ExpandNode(HWND hWnd, int treeId, HTREEITEM itemToExpand);
#ifdef __cplusplus
}
#endif
#endif