The CBN_SELENDCANCEL notification message is sent when the user selects an item, but then selects another control or closes the dialog box. It indicates the user’s initial selection is to be ignored. The parent window of the combo box receives this notification message through the WM_COMMAND message.
CBN_SELENDCANCEL idComboBox = (int) LOWORD(wParam); // identifier of combo box hwndComboBox = (HWND) lParam; // handle of combo box
In a combo box with the CBS_SIMPLE style, the CBN_SELENDCANCEL notification message is not sent. The CBN_SELENDOK notification message is sent immediately before every CBN_SELCHANGE notification message.
If the WS_EX_NOPARENTNOTIFY extended window style is specified for the combo box, the CBN_SELENDCANCEL notification message is not sent.
CBN_SELCHANGE, CBN_SELENDOK, WM_COMMAND
file: /Techref/os/win/api/win32/mess/src/msg02_22.htm, 1KB, , updated: 2000/4/7 11:19, local time: 2024/11/4 10:52,
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_22.htm"> CBN_SELENDCANCEL</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.