Skip to main content
GameDev.net gamedev.net
🔒 Locked

Toolbars in MFC

Started by ACAC May 15, 2004 at 12:48 PM 0 replies 550+ views
Original Post
ACAC
ACAC
Ive been trying to create a toolbar with mfc but ive had no luck, i havent used SDI/MDI style interface, would that matter, do i need a CFrameWnd to actually use one? Any feedback is good! Regards Ash.
iNsAn1tY
iNsAn1tY
What kind of window are you using? All windows are derived from the basic CWnd, so you should be able to embed a CToolbar object in your derived window class (CYourWindow : public CWnd) as a member variable, then call it''s CreateEx method in your window''s OnCreate message handler. You''ll need a toolbar template resource to include in the CreateEx method...
My opinion is a recombination and regurgitation of the opinions of those around me. I bring nothing new to the table, and as such, can be safely ignored.[ Useful things - Firefox | GLee | Boost | DevIL ]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.