17 this->
create(X, Y, HEIGHT, WIDTH, TEXT);
31 this->ehWnd = CreateWindowExW(WS_EX_WINDOWEDGE, TEXT(
"Edit"), TEXT,
32 WS_CHILD | WS_VISIBLE | WS_BORDER | ES_CENTER,
34 this->
hWnd, (HMENU)this->ID, this->
hInst, NULL);
36 HFONT hfont = CreateFont(HEIGHT-2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, TEXT(
"Arial"));
37 SendMessage(this->ehWnd, WM_SETFONT, (WPARAM)hfont, 0);
45 GetWindowText(this->ehWnd, buf, 5);
51 WCHAR* result = this->
getText();
52 if (wcslen(result) == 0)
66 DestroyWindow(GetDlgItem(this->
hWnd, this->ID));
HWND create(int X, int Y, int HEIGHT, int WIDTH, WCHAR *TEXT) override