wcex.cbSize = sizeof(WNDCLASSEX);
wcex.style = CS_HREDRAW | CS_VREDRAW;
wcex.lpfnWndProc = WndProc;
wcex.cbClsExtra = 0;
wcex.cbWndExtra = 0;
wcex.hInstance = hInstance;
wcex.hCursor = LoadCursor(NULL, IDC_ARROW);
wcex.lpszMenuName = 0;
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcex.lpfnWndProc = ChildWndP;
wcex.hIcon = 0;
wcex.lpszMenuName = 0;
wcex.lpszClassName = L"child";
wcex.hIconSm = 0;
hchild[0][0]=CreateWindowW(L"child",L"ye",WS_CHILDWINDOW|WS_OVERLAPPEDWINDOW|WS_VISIBLE,0,0,50,60,hWnd,HMENU(1),hInst,0);
无法获得输入焦点
一用SetFocus程序就出错终止