The MEASUREITEMSTRUCT structure informs Windows of the dimensions of an owner-drawn control or menu item. This allows Windows to process user interaction with the control correctly.
typedef struct tagMEASUREITEMSTRUCT { // mis UINT CtlType; // type of control UINT CtlID; // combo box, list box, or button identifier UINT itemID; // menu item, variable-height list box, or combo box identifier UINT itemWidth; // width of menu item, in pixels UINT itemHeight; // height of single item in list box menu, in pixels DWORD itemData; // application-defined 32-bit value } MEASUREITEMSTRUCT;
Value |
Meaning |
ODT_BUTTON |
Owner-drawn button |
ODT_COMBOBOX |
Owner-drawn combo box |
ODT_LISTBOX |
Owner-drawn list box |
ODT_LISTVIEW |
Owner-draw listview control |
ODT_MENU |
Owner-drawn menu |
The owner window of an owner-drawn control receives a pointer to the MEASUREITEMSTRUCT structure as the lParam parameter of a WM_MEASUREITEM message. The owner-drawn control sends this message to its owner window when the control is created. The owner then fills in the appropriate members in the structure for the control and returns. This structure is common to all owner-drawn controls.
If an application does not fill the appropriate members of MEASUREITEMSTRUCT, the control or menu item may not be drawn properly.
CB_ADDSTRING, CB_INSERTSTRING, CB_SETITEMDATA, LB_ADDSTRING, LB_INSERTSTRING, LB_SETITEMDATA, WM_MEASUREITEM
file: /Techref/os/win/api/win32/struc/src/str10_24.htm, 5KB, , updated: 2000/4/7 12:20, local time: 2024/8/23 21:13,
3.149.238.49: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://piclist.com/tecHREF/os/win/api/win32/struc/src/str10_24.htm"> MEASUREITEMSTRUCT</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to piclist.com! |
.