Re: WTL CCombobox with CBS_DROPDOWNLIST style



I kind of fixed my problem by modifying the resource file (*.rc) with a text
editor replacing CBS_DROPDOWN by CBS_DROPDOWNLIST.

Actually after doing this I noticed the member "Type" under
"Properties/Behavior" in resource editor... I would have sworn it was not
there before :-(

Sorry...

"Phil" <phil@xxxxxxxxxx> wrote in message
news:Sgp%h.161451$ld5.1127474@xxxxxxxxxxxxxxxxxxxxxxxx
I would like to make a drop down list type combobox with the standard WTL
controls.

At the moment all of my controls are initialized with DDX_CONTROL_HANDLE()
so I am not invoking any Create() functions for the controls directly in
OnInitDialog().

I would like to modify the Combobox control from default DROPDOWN style
into DROPDOWNLIST style. I was expecting an option to modify this in the
resource editor but it does not seem possible.

I have my WTL combobox already up and running perfectly. I would just like
to avoid user editing so the user can only select from a predefined list.

Can anyone tell me how I can do this ?



.



Relevant Pages

  • Re: Where did the buttons come from?
    ... only I wanted the controls to show up. ... Open the .rc file in a text editor. ... The Dialog .cpp file BEGIN_MESSAG_MAP contains ON_BN_CLICKED(IDC_SOMEID, ... Right click on the Project.rc in the Resource View. ...
    (microsoft.public.vc.mfc)
  • Re: Dialogeditor
    ... wenn du den Dialog Editor nutzen mußt: kreiere eine .RC Datei per Hand ... Dialogeditor erzeugt ja eine .DLG und eine .RES Datei). ... Es ist dann zwar nach wie vor so, daß bei jedem Arbeiten der Dialog Editor ... nebenbei), aber du kannst jederzeit die KOMPLETTE Resource erzeugen, indem ...
    (de.comp.os.os2.programmer)
  • Re: dynamic menu question
    ... If you define IDR_DYNA in the resource ... editor, it will be ... delete it from the map. ... I just need find a way to give that menu IDR_ identifier somehow... ...
    (microsoft.public.vc.mfc)
  • Re: Headers common to .cpp and .rc files
    ... .RC file you may have problems if you use the RC editor to add or remove resources in the future since it takes liberties in rewriting the file. ... I typically do "extra" things in the .RC2 file that is created since there is no way of controlling how the editor rewrites the .RC file. ... It's a bit of an art, as it appeared to me at the time that the resource compiler does not respect ALL preprocessor definitions which the CPP compiler does. ... The appended header definitions seem to work, but I never worked out why both _STR and STR are needed. ...
    (microsoft.public.vc.language)
  • Re: dynamic menu question
    ... Create a menu at design time and load it dynamically, ... a menu from the resource segment. ... editor, it will be ... delete it from the map. ...
    (microsoft.public.vc.mfc)