Advertisement

win32 help

Started by May 28, 2001 09:44 PM
5 comments, last by jharkey 23 years, 8 months ago
i have two questions. first, i''m having troubles with combo boxes. i''m trying to use the GetComboBoxInfo function and the compiler tells me that GetComboBoxInfo function and the COMBOBOXINFO structure are both undeclared identifiers. in the win32 docs it says that they are defined in winuser.h, which is already included in windows.h(i''ve tried including both anyway). and it says to link my project with user32.lib, which vc++ already does anyway when you start a win32 project. plus, i double checked anyway just to make sure. i cant figure this out? why would they be undeclared if i linked and included everything im supposed to? any ideas? next, i need help with toolbars. do you need to be programming with mfc to use toolbars? because i cant find anything for them in the win32 documentation. but there is plenty on CToolBar stuff for mfc. i''ve even looked on the msdn website, maybe i''m not looking in the right places. please help.
ok first never forget that MFC is HEAVILY LYING on WIN 32 API!
so it means everything you do with MFC you can do with WIN 32 API too, with a bit more work
but theoretically it''s true!
now why do you need that GetComboBoxInfo function, when i use combo box i never use this function...

and about toolbars search for this article in msdn: Toolbar Controls
and voila

good luck pal

Arkon
[QSoft Systems]
Advertisement
No idea about the ComboBox problem. But for your toolbar question, call the win32 function CreateToolbarEx. I''ll go check out the GetComboBoxInfo when I get home.
==========================================In a team, you either lead, follow or GET OUT OF THE WAY.
thanks for the ideas, but i still cant figure it out. The documentation for CreateToolbarEx says that it''s for Windows CE, not Windows 98 or ME. and when i search for "toolbar controls" on msdn, i still dont get any help. all it pulls up is stuff about mfc, visual basic, or visual foxpro. nothing for the win32 api.

and Arkon, how do you use a combo box without using this function? dont you need the handle to the list box part of the combo box to insert strings into it? or is there another way? whenever i try to send the to send the CB_ADDSTRING message to the combo box, it doesnt work, maybe im doing that wrong. i dont know. i would still like to know why the compiler says the function is undeclared anyway, i''ve never had this kind of problem in windows before.
i just wanted to bring this post back to the top. please help.
http://www.winprog.org/tutorial/

check out the old tutorial too for the toolbar

http://www.winprog.org/tutorial-old/#2.
Advertisement
if you still don''t know how to use the combo box
i''ll make a small code and send it to you...
lemme know

Arkon
[QSoft Systems]

This topic is closed to new replies.

Advertisement