Combo box help
-
Hi All, I need to know how to set a default value in Combo Box. For example, right now I have a combo box with 3 times in it (Train, Bus, Both). I need to set "BOTH" as a default value in the combo box. Thanks in advance :)
C++Prog
-
Hi All, I need to know how to set a default value in Combo Box. For example, right now I have a combo box with 3 times in it (Train, Bus, Both). I need to set "BOTH" as a default value in the combo box. Thanks in advance :)
C++Prog
You can send the combobox a CB_SETCURSEL message (CComboBox::SetCurSel() in MFC). Mark
-
You can send the combobox a CB_SETCURSEL message (CComboBox::SetCurSel() in MFC). Mark
Thanks a lot Can I do it in 'Combo Box properties dialog'..or need to write a code for it?
C++Prog
-
Thanks a lot Can I do it in 'Combo Box properties dialog'..or need to write a code for it?
C++Prog
Only at runtime, anytime after the Windows object (HWND) is created. In response to the WM_INITDIALOG message is a good place :) Mark
-
Thanks a lot Can I do it in 'Combo Box properties dialog'..or need to write a code for it?
C++Prog
And...you'll want to do that AFTER you add items to the combobox! Mark
-
And...you'll want to do that AFTER you add items to the combobox! Mark
I got it.....its working.....Thanks a bunch.
C++Prog
-
And...you'll want to do that AFTER you add items to the combobox! Mark
Here comes another thing...I need to do it dynamically. SetCurSel will make it static. Thanks again
C++Prog
-
Here comes another thing...I need to do it dynamically. SetCurSel will make it static. Thanks again
C++Prog
Preeti9 wrote:
I need to do it dynamically. SetCurSel will make it static.
How so? It should just select/highlight the string, scrolling it into view if necessary.
-
Preeti9 wrote:
I need to do it dynamically. SetCurSel will make it static.
How so? It should just select/highlight the string, scrolling it into view if necessary.
o okay...I got it.... Thanks
C++Prog
-
o okay...I got it.... Thanks
C++Prog
:)