各位同仁: 在看wince程序设计一书时,碰到如下问题 这函数是处理WM_CREATE消息的,如下: LRESULT DoCreateFrame (HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam) { HWND hwndCB, hwndClient; INT sHeight; LPCREATESTRUCT lpcs;
// Convert lParam into pointer to create structure. lpcs = (LPCREATESTRUCT) lParam;
// Create a command bar. hwndCB = CommandBar_Create (hInst, hWnd, IDC_CMDBAR); // Add exit button to command bar. CommandBar_AddAdornments (hwndCB, 0, 0); sHeight = CommandBar_Height (GetDlgItem (hWnd, IDC_CMDBAR)); // // Create client window. Size it so that it fits under // the command bar and fills the remaining client area. // hwndClient = CreateWindow (CLIENTWINDOW, TEXT (""), WS_VISIBLE | WS_CHILD | WS_VSCROLL, lpcs->x, lpcs->y + sHeight, lpcs->cx, lpcs->cy - sHeight, hWnd, (HMENU)IDC_CLIENT, lpcs->hInstance, NULL);
// Destroy frame if client window not created. if (!IsWindow (hwndClient)) DestroyWindow (hWnd); return 0; } 其中参数中的 LPARAM lParam 包含了一些什么信息?lpcs = (LPCREATESTRUCT) lParam; |