mfc >> MFC 7: Dropdown combobox not working under Win98?

by Arthur Hsu » Thu, 04 Dec 2003 03:43:09 GMT

Hello,

I've written a dialog based app which has comboboxes. In my RC file it is
defined as

COMBOBOX IDC_WSCBOW,168,100,72,12,CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP

and I use CComboBox type as mapped variable. The dialog runs ok on XP, but
in 98, the dropdown list is not drawn. Any ideas to get around this
problem? I've tried the SetItemHeight() but in vain.

TIA,

Arthur




mfc >> MFC 7: Dropdown combobox not working under Win98?

by Ali R. » Thu, 04 Dec 2003 04:25:37 GMT


CheckAbduol loves this question. Open the RC File and click on the arrow of
the combo box, same way you would drop down the list, it should give you the
outline of the drop down area, resize it to as big as you want it to be.

Ali R.



but





mfc >> MFC 7: Dropdown combobox not working under Win98?

by CheckAbdoul » Thu, 04 Dec 2003 05:03:51 GMT

:-)

--
Cheers
Check Abdoul [VC++ MVP]
-----------------------------------



of
the


is




MFC 7: Dropdown combobox not working under Win98?

by Arthur Hsu » Thu, 04 Dec 2003 07:39:33 GMT

Thanks for the trick. I finally realized that my RC script is not right.
It should be something like

COMBOBOX IDC_WSCBOW,168,100,72,60,CBS_DROPDOWNLIST | WS_VSCROLL |
WS_TABSTOP

The height of COMBOBOX is it's dropdown list height plus it's original
height. I misunderstand it.

-Arthur



of
the


is




Similar Threads

1. MFC ComboBox dropdown list doesn't open...

Hi,

I am kind of a newbie with C++ and like to get help about this problem
I have :
I put a ComboBox in MFC project. everything compiles and looks fine
except that when I run the dialog box (the project) I can choose from
the combobox since it is empty.
but if I run the : mCombo1.SetCurSel(2);  it actually chooses the
second string I put inside the combo.....can someone explain that...?


thanks...
Noam.

2. FileSystem Watcher not working in win98 - CSharp/C#

3. Win98-FE RichEdit20a and LineScroll/GetCharPos not working?

4. Win98-FE RichEdit 1.0 and \highlight1 not working

5. Rich edit not working on Win98...

Hi All,
I have an MFC Unicode application (which uses MSLU for 98/me)
which has a Rich edit control in a dialog box.
It works fine on my XP machine, but it doesn't run on a Win98 computer.
What can I do to make it run on the 98.
Also are the dlls: RichEdxx.dll or msftedit.dll redistributable? If so, 
would it work then?
Thanks a lot
Srishti

6. Works on WIN98 but not on XP

7. Tip if Release version works with dynamic MFC dll but not with static MFC

It took me some time to figure this out. My print preview worked when
compiling using dynamic MFC libraries, but not in static MFC. I fixed it
under the Properties-Resources page. The first field is Preprocesor
Definitions. If you created your Application with MFC as Dynamic DLL,
there is a definition there called "_AFXDLL". You have to delete it.

8. ComboBox, ListBox DataSource = null not work - CSharp/C#