调用API LB_INSERTSTRING An application sends an LB_INSERTSTRING message to insert a string into a list box. Unlike the LB_ADDSTRING message, the LB_INSERTSTRING message does not cause a list with the LBS_SORT style to be sorted. To send this message, call the SendMessage function with the following parameters. SendMessage( (HWND) hWnd, // handle to destination window LB_INSERTSTRING, // message to send (WPARAM) wParam, // item index (LPARAM) lParam // string (LPCTSTR)
LB_INSERTSTRING
An application sends an LB_INSERTSTRING message to insert a string into a list box. Unlike the LB_ADDSTRING message, the LB_INSERTSTRING message does not cause a list with the LBS_SORT style to be sorted. To send this message, call the SendMessage function with the following parameters. SendMessage(
(HWND) hWnd, // handle to destination window
LB_INSERTSTRING, // message to send
(WPARAM) wParam, // item index
(LPARAM) lParam // string (LPCTSTR)