1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#include <windows.h>
int WINAPI WinMain ( HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nCmdShow)
{
WNDCLASS Win;
HWND hWnd;
Win.cbClsExtra=0;
Win.cbWndExtra=0;
Win.hbrBackground=(HBRUSH)(COLOR_WINDOW+1);
Win.hCursor=LoadCursor(NULL, IDI_APPLICATION);
Win.hIcon=LoadIcon(NULL, IDI_APPLICATION);
Win.lpszClassName="C1";
Win.lpszMenuName=NULL;
Win.style=CS_HREDRAW|CS_VREDRAW;
hWnd=CreateWindow("C1","Mywind",WS_OVERLAPPEDWINDOW,100,200,600,300,NULL,NULL,NULL,NULL);
ShowWindow(hWnd,nCmdShow);
} |
Partager