F
hwndbut1 = CreateWindow (L"button", L"Child",WS_CHILD | WS_VISIBLE,30, 24, 75, 75, hWnd, (HMENU) but1,hInstance, NULL);
hwndbut2 = CreateWindow (L"button", L"Exit",WS_CHILD | WS_VISIBLE,135, 123, 75, 75, hWnd, (HMENU) but2,hInstance, NULL);
hwndchild = CreateWindow (text,text,WS_CHILD | WS_VISIBLE | WS_BORDER,0, 0, 100, 100, hWnd,NULL,hInstance, NULL);
Wenn du die beiden Elemente so positionierst, dass sie sich überlagern, musst du doch wohl wissen, welches vorne sein soll