-
January 9th, 2009, 11:19 AM
#1
Selection Change of Combo Box from InitDialog
How can I invoke the Combobox Item SelectionChange from Init Dialog.
If I set combobox.SetCurSel(1) in InitDialog, the SelectionChange event is not invoked.
How Can I achieve this.
Thanks
-
January 9th, 2009, 11:27 AM
#2
Re: Selection Change of Combo Box from InitDialog
Originally Posted by kirantoday
If I set combobox.SetCurSel(1) in InitDialog, the SelectionChange event is not invoked.
Yes, it is by design. From MSDN:
The CBN_SELCHANGE notification message is sent when the user changes the current selection in the list box of a combo box. The user can change the selection by clicking in the list box or by using the arrow keys.
Originally Posted by kirantoday
How Can I achieve this.
As a "workaround" you could directly call the message handler of CBN_SELCHANGE notification.
Victor Nijegorodov
-
January 9th, 2009, 11:41 AM
#3
Re: Selection Change of Combo Box from InitDialog
No, SetCurSel should work. I used it frequently. You're talking about the notification message, not programatically setting the selection.
Can you show the code you're using?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|