Saturday, December 5, 2009

SIMPLE WINDOW CREATION

A simple window creation program is,

int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow);
int _stdcall WinMain(HINSTANCE i,HINSTANCE j,char *k,int l)
{
HWND h;
h=CreateWindow("Button","Press Me",WS_OVERLAPPEDWINDOW,100,100,150,100,0,0,i,0);
ShowWindow(h,l);
MessageBox(0,"Hello","Title",0);
return 0;
}

0 comments:

Post a Comment

  © Blogger template Coozie by Ourblogtemplates.com 2008

Back to TOP