Archived

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

redneckCoder

toolbar

Recommended Posts

redneckCoder    122
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
Oluseyi    2103

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