#include int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MSG msg; HWND updn, edit; updn = CreateWindow(UPDOWN_CLASS, 0, UDS_SETBUDDYINT, 0, 0, 25, 15, NULL, NULL, NULL, NULL); edit = Create edit window SendMessage(updn, UDM_SETBUDDY, (WPARAM)edit, 0); while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return 0; }