#include <windows.h>
int WINAPI WinMain( HINSTANCE hinstance, HINSTANCE hprevinstance, PSTR Lcmdline, int cmdshow ) { int i; for( i = 0; i <= 5; ++i ) { switch(i) { case 0: MessageBox( NULL, "hey! ling jie.","hello", MB_OK ); break; case 1: MessageBox( NULL, "hey! ling jie.","hello", MB_OKCANCEL ); break; case 2: MessageBox( NULL, "hey! ling jie.","hello", MB_ABORTRETRYIGNORE ); break; case 3: MessageBox( NULL, "hey! ling jie.","hello", MB_YESNOCANCEL ); break; case 4: MessageBox( NULL, "hey! ling jie.","hello", MB_YESNO ); break; case 5: MessageBox( NULL, "hey! ling jie.","hello", MB_RETRYCANCEL ); break; default: break; } }
return 0; }

|