Code:
#include <Windows.h>
int main()
{
MSG msg;
HWND hWnd = CreateWindow(TEXT("button"), TEXT("START"), WS_VISIBLE | WS_POPUP | WS_CHILD | WS_TABSTOP | BS_BITMAP,
50, 50, 150, 150, NULL, NULL, NULL, NULL);
SendMessageA(hWnd, WM_SETTEXT, 0, (LPARAM)"STOP");
hWnd = CreateWindow(TEXT("button"), TEXT("START"), WS_VISIBLE | WS_POPUP | WS_CHILD | WS_TABSTOP | BS_BITMAP,
250, 250, 150, 150, NULL, NULL, NULL, NULL);
SendMessageA(hWnd, WM_SETTEXT, 0, (LPARAM)"PAUSE");
hWnd = CreateWindow(TEXT("button"), TEXT("START"), WS_VISIBLE | WS_POPUP | WS_CHILD | WS_TABSTOP | BS_BITMAP,
350, 350, 150, 150, NULL, NULL, NULL, NULL);
SendMessageA(hWnd, WM_SETTEXT, 0, (LPARAM)"EXIT");
hWnd = CreateWindow(TEXT("button"), TEXT("START"), WS_VISIBLE | WS_POPUP | WS_CHILD | WS_TABSTOP | BS_BITMAP,
450, 450, 150, 150, NULL, NULL, NULL, NULL);
while (GetMessage(&msg, NULL, 0, 0))
{
ShowWindow(hWnd, SW_SHOW);
UpdateWindow(hWnd);
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return (int)msg.wParam;
}