#include #include #include "przybornik.h" int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { HWND hOkno; UtworzOknoDD(&hOkno, "Moj Program"); UtworzObiektyDD(); MSG msg; int czas=GetTickCount(); while(msg.message!=WM_QUIT) { if(PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { TranslateMessage(&msg); DispatchMessage(&msg); } else { if(GetTickCount()>czas+10) { RenderujKlatke(); czas=GetTickCount(); }; }; }; ZwolnijObiektyDD(); return 0; };