Click to See Complete Forum and Search --> : Bitmap Toolbar


Cooker
August 18th, 2004, 01:11 AM
Hi.
I know how to create bitmap toolbar by using CreateToolbarEx.
But the note:[Note This function is obsolete. Use CreateWindow instead.].
I would like to use CreateWindow to create bitmap toolbar.
But i don't know how to use the CreateWindow API.
Could someone tell me???
Thanks a lot! :)

Boris K K
August 18th, 2004, 04:11 AM
After CreateWindow/CreateWindowEx send messages TB_BUTTONSTRUCTSIZE, TB_ADDBITMAP, TB_ADDBUTTONS (in that order).

Cooker
August 18th, 2004, 07:28 AM
After CreateWindow/CreateWindowEx send messages TB_BUTTONSTRUCTSIZE, TB_ADDBITMAP, TB_ADDBUTTONS (in that order).
Execuse me!How to send messages with TB_BUTTONSTRUCTSIZE, TB_ADDBITMAP, TB_ADDBUTTONS ??
Could you give me a example???
Thanks!

Bond
August 18th, 2004, 09:29 AM
Check out the section on MSDN. The "Using Toolbars" has some code examples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/toolbar/toolbar.asp