cex.lpfnWndProc?= WndProc;Р?wcex.cbClsExtra = 0;Р?wcex.cbWndExtra = 0;Р?wcex.hInstance = hInstance;Р?wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_FINAL));Р?wcex.hCursor = LoadCursor(NULL, IDC_ARROW);Р?wcex.hbrBackground?= (HBRUSH)(COLOR_WINDOW+1);Р?wcex.lpszMenuName?= MAKEINTRESOURCE(IDC_FINAL);Р?wcex.lpszClassName?= szWindowClass;Р?wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL));Р?return RegisterClassEx(&wcex);Р}Р//Р// 函数: InitInstance(HINSTANCE, int)Р//Р// 目的: 保存实例句柄并创建主窗口Р//Р// 注释:Р//Р// 在此函数中,我们在全局变量中保存实例句柄并Р// 创建和显示主程序窗口。Р//РBOOL InitInstance(HINSTANCE hInstance, int nCmdShow)Р{Р HWND hWnd;Р hInst = hInstance; // 将实例句柄存储在全局变量中Р hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,Р CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);