An application sends a CB_SETITEMDATA message to set the 32-bit value associated with the specified item in a combo box.
CB_SETITEMDATA wParam = (WPARAM) index; // item index lParam = (LPARAM) (DWORD) dwData; // item data
If an error occurs, the return value is CB_ERR.
If the specified item is in an owner-drawn combo box created without the CBS_HASSTRINGS style, this message replaces the 32-bit value in the lParam parameter of the CB_ADDSTRING or CB_INSERTSTRING message that added the item to the combo box.
CB_ADDSTRING, CB_GETITEMDATA, CB_INSERTSTRING
file: /Techref/os/win/api/win32/mess/src/msg02_9.htm, 1KB, , updated: 2008/6/24 02:51, local time: 2024/9/4 06:23,
3.145.183.243:LOG IN
|
©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://sxlist.com/techref/os/win/api/win32/mess/src/msg02_9.htm"> CB_SETITEMDATA</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.