控件名 |
创建 |
特别注明 |
ListBox控件 |
一、创建方法 hListBox = CreateWindow("LISTBOX", NULL, WS_CHILD|WS_VSCROLL | WS_TABSTOP | LBS_STANDARD | LBS_HASSTRINGS|WS_VISIBLE, 230, 20, 60, 80, hwnd, (HMENU)2001, ((LPCREATESTRUCT)lParam)->hInstance, NULL); ShowWindow(hListBox,SW_SHOW); SendMessage(hListBox,LB_ADDSTRING ,0,(LPARAM)"列表一"); SendMessage(hListBox,LB_ADDSTRING ,0,(LPARAM)"列表二"); SendMessage(hListBox,LB_ADDSTRING ,0,(LPARAM)"列表三"); |
|