该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
/*****************************************************************************************
主函数
/*****************************************************************************************
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
static TCHAR szAppName[] = TEXT ("SysMets1") ;
HWND hwnd ;
MSG msg ;
WNDCLASS wndclass ;
wndclass.style = CS_HREDRAW | CS_VREDRAW ; //窗口样式
wndclass.lpfnWndProc = WndProc ; //指向窗口函数的指针
wndclass.cbClsExtra = 0 ; //分配在窗口类的结构后的字节数,0即该窗口类无扩展
wndclass.cbWndExtra = 0 ; //分配在窗口类的实例后的字节数,0即该窗口实例无扩展
wndclass.hInstance = hInstance ; //窗口的实例句柄
wndclass.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));//图标
wndclass.hCursor =LoadCursor(hInstance, MAKEINTRESOURCE(IDC_CURSOR1));// 光标
wndclass.hbrBackground = NULL;// (HBRUSH) GetStockObject (WHITE_BRUSH) ; //背景刷
wndclass.lpszMenuName = NULL ;//菜单
wndclass.lpszClassName = szAppName ;//窗口类名