1 2 3 4 5 6 7 8 9 10 11 12 13
|
char* line;
/* ... */
// Creates textbox for input
hwnd_ed_1 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", "Line one",
WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_BORDER | ES_LEFT,
CW_USEDEFAULT, CW_USEDEFAULT, 200, 24, // x, y, w, h
hwnd, (HMENU)(123),
(HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL);
GetDlgItemText(hwnd, 123, line, 100);
MessageBox(NULL, line, "Stuff", MB_ICONINFORMATION | MB_OK);
|