More buttons dont work?

LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message) /* handle the messages */
{case WM_CREATE:
CreateWindow(TEXT("Button"), TEXT("Close"),
WS_VISIBLE | WS_CHILD ,
350, 300, 150, 25, hwnd, (HMENU) 10, NULL, NULL);
CreateWindow(TEXT("Button2"), TEXT("Login"),
WS_VISIBLE | WS_CHILD ,
300, 250, 100, 25, hwnd, (HMENU) 10, NULL, NULL);
break;
case WM_DESTROY:
PostQuitMessage (0); /* send a WM_QUIT to the message queue */
break;
default: /* for messages that we don't deal with */
return DefWindowProc (hwnd, message, wParam, lParam);
}

return 0;
}
Topic archived. No new replies allowed.