Archived

This topic is now archived and is closed to further replies.

This topic is 5783 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do I attach a toolbar right under my menu from a resource? I looked at my API reference and found a couple function, but some of the parameters I saw were inapplicable to the situation, I think. So if someone could help, that''d be great. Thanks. -AJ

Share this post


Link to post
Share on other sites

hwndTB = CreateWindowEx( 0, TOOLBARCLASSNAME, (LPSTR)NULL,
WS_CHILD|CCS_ADJUSTABLE|other styles, x, y, w, h,
hwndParent, (HMENU)ID_TOOLBAR, hInstance, NULL );

If you apply the CCS_TOP style, the window will attach itself to the top of the parent window''s client area.

[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!

Share this post


Link to post
Share on other sites