win32 help
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![](smile.gif)
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![](smile.gif)
good luck pal
Arkon
[QSoft Systems]
so it means everything you do with MFC you can do with WIN 32 API too, with a bit more work
![](smile.gif)
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
![](smile.gif)
good luck pal
Arkon
[QSoft Systems]
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.
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.
http://www.winprog.org/tutorial/
check out the old tutorial too for the toolbar
http://www.winprog.org/tutorial-old/#2.
check out the old tutorial too for the toolbar
http://www.winprog.org/tutorial-old/#2.
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]
i''ll make a small code and send it to you...
lemme know
Arkon
[QSoft Systems]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement