如下代码段, WndProc 哪个case里做处理?wm_command? 还是 wm_notify?
最好贴下case 处理代码。
HWND hListBox=0;
hListBox = CreateWindow(WC_LISTBOX,
NULL,
WS_CHILD|WS_VSCROLL | WS_TABSTOP | LBS_STANDARD
,
x, 23,
100, rcClient.bottom - rcClient.top - 100,
parentWnd, (HMENU)IDC_ListBox,
(HINSTANCE) GetWindowLong(parentWnd, GWL_HINSTANCE),
NULL);
ShowWindow(hListBox,SW_SHOW);
SendMessage(hListBox,LB_ADDSTRING ,0,(LPARAM)"Clear");
SendMessage(hListBox,LB_ADDSTRING ,0,(LPARAM)"你好");
SendMessage(hListBox,LB_ADDSTRING ,0,(LPARAM)"我好");
SendMessage(hListBox,LB_ADDSTRING ,0,(LPARAM)"他好");