c++wndclass类怎么使用使用
int WINAPI WinMain( HINSTANCE hInstance, // handle to current instance HINSTANCE hPrevInstance, // handle to previous instance LPSTR lpCmdLine, // command line int nCmdShow // show state){ WNDCLASS w; w.cbClsExtra=0; w.cbWndExtra=0; w.hbrBackground=(HBRUSH)GetStockObject(BLACK_BRUSH); w.hCursor=LoadCursor(NULL,IDC_CROSS); w.hIcon=LoadIcon(NULL,IDI_ERROR); w.hInstance=hInstance; w.lpfnWndProc=WinSunProc; w.lpszClassName="Weixin2003"; w.lpszMenuName=NULL; w.style=CS_HREDRAW | CS_VREDRAW; RegisterClass(&w); HWND hwnd; hwnd=CreateWindow("Weixin2003","北京维新科学技术培训中心",WS_OVERLAPPEDWINDOW, 0,0,600,400,NULL,NULL,hInstance,NULL); ShowWindow(hwnd,SW_SHOWNORMAL); UpdateWindow(hwnd); MSG msg; while(GetMessage(&msg,NULL,0,0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return 0;}这是创建一个简单窗口得部分代码我想问得是可以用creatwindow()这样得函数去替换WNDCLASS这个类吗比如定义一个wndclass()函数,里面包含各种参数比如定义一个wndclass()函数,里面包含各种参数 ,调用这个函数来表达窗口得风格 (背景话刷,水平重画……等等),怎么写