An application sends a CB_INSERTSTRING message to insert a string into the list box of a combo box. Unlike the CB_ADDSTRING message, the CB_INSERTSTRING message does not cause a list with the CBS_SORT style to be sorted.
CB_INSERTSTRING wParam = (WPARAM) index; // item index lParam = (LPARAM) (LPCTSTR) lpsz; // address of string to insert
The return value is the index of the position at which the string was inserted. If an error occurs, the return value is CB_ERR. If there is insufficient space available to store the new string, it is CB_ERRSPACE.
file: /Techref/os/win/api/win32/mess/src/msg02.htm, 1KB, , updated: 2000/4/7 11:19, local time: 2024/11/5 07:21,
18.119.114.187:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/techref/os/win/api/win32/mess/src/msg02.htm"> CB_INSERTSTRING</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.