//Main.cpp
#include "Head.h"
/*
* deal the message of the programm
*/
LRESULT CALLBACK WndProc(HWND hwnd,UINT message
,WPARAM wParam,LPARAM IParam)
{
switch(message)
{
case WM_DESTROY:
PostQuitMessage(0);
default:
return DefWindowProc(hwnd,message,wParam,IParam);
}
return(0);
}
/*
*init WNDCLASS of the main window and regedit it
*/
BOOL InitWindowsClass()
{
WNDCLASS wndclass;
wndclass.style=0