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