case WM_CREATE:
{
CreateWindow("STATIC","Статический текст",WS_CHILD|WS_VISIBLE,
10,31,150,20,hwnd,(HMENU)0,hinstance,NULL);
hEdit = CreateWindow("EDIT","Поле ввода",
WS_CHILD|WS_VISIBLE|ES_WANTRETURN|ES_LEFT|WS_BORDER,
150,30,150,20,hwnd,(HMENU)ID_EDIT1,hinstance,NULL);
hButton = CreateWindow("BUTTON","Пример кнопки",
WS_CHILD|WS_VISIBLE|BS_DEFPUSHBUTTON,
310,60,75,22,hwnd,(HMENU)ID_BUTTON1,hinstance,NULL);
hListBox = CreateWindow("LISTBOX", NULL ,WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_BORDER,
10, 200, 507,130, hwnd, (HMENU)ID_LISTBOX, hinstance, NULL);
break;
}