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
|
//Create the Child window
HWND_CHILD_New = CreateWindow(G_AppName,
TEXT("New Command"),
WS_VISIBLE | WS_BORDER | ES_CENTER | CS_NOMOVECARET | WS_CHILDWINDOW | WS_OVERLAPPEDWINDOW,
400, 100,
340, 375,
hwnd,
(HMENU)ID_CHILD_NEW,
G_hInstance,
NULL);
//Create the Editbox for the name of the command
HWND_EDIT_AddCommand_Name = CreateWindow(TEXT("EDIT"),
TEXT("Name des Befehls"),
WS_VISIBLE | WS_CHILD | WS_BORDER,
20, 20,
300, 20,
HWND_CHILD_New,
(HMENU)ID_BTN_AddCommand_Descr,
G_hInstance,
NULL);
//Create the Editbox for the description of the command
HWND_EDIT_AddCommand_Descr = CreateWindow(TEXT("EDIT"),
TEXT("Beschreibung des Befehls"),
WS_VISIBLE | WS_CHILD | WS_BORDER,
20, 50,
300, 230,
HWND_CHILD_New,
(HMENU)ID_BTN_AddCommand_Descr,
G_hInstance,
NULL);
//Create the Apply-Button in the Child window
HWND_BUTTON_AddCommand_Apply = CreateWindow(TEXT("BUTTON"),
TEXT("Übernehmen"),
WS_VISIBLE | WS_CHILD | WS_BORDER,
20, 300,
150, 30,
HWND_CHILD_New,
(HMENU)ID_BTN_AddCommand_Apply,
G_hInstance,
NULL);
|