Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------------------------------------------------------
- #include <windows.h>
- #include "string.h"
- //---------------------------------------------------------------------------
- LPCTSTR Caption = "Ankieta";
- INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
- LPSTR lpCmdLine, int nCmdShow)
- {
- HWND hWnd = GetConsoleWindow();
- ShowWindow( hWnd, SW_HIDE );
- int result = MessageBox( NULL,"Czy lubisz system windows?",Caption, MB_YESNO | MB_ICONQUESTION);
- switch(result)
- {
- case IDYES:
- MessageBox( NULL,"Dziekujemy za uznanie!",NULL, MB_OK | MB_ICONINFORMATION);
- break;
- case IDNO:
- {
- int counter = 500;
- while(counter > 0)
- {
- char title[21];
- sprintf(title, "Pozostalo klikniec: %d",counter);
- MessageBox(NULL, "To teraz sobie chuju poklikasz!",title ,MB_OK | MB_ICONWARNING);
- counter--;
- }
- break;
- }
- }
- return 0;
- }
- //---------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment