Her er et eksempel program til at oprette en simpel liste kasse: #include bruge namespace std; LRESULT tilbagekald MainWndProc (HWND HWND, UINT uMsg, wParam wParam, lParam lParam) {switch (uMsg) {standard: returnere DefWindowProc (HWND, uMsg, wParam, lParam); } Returnere 0; } Int WinAPI WinMain (hInstance hInstance, hInstance hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {WNDCLASSEX WCX; wcx.cbSize = sizeof (WCX); wcx.style = CS_HREDRAW