Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't get standard images to appear on toolbar?

Status
Not open for further replies.

weevilofdoom

Programmer
Jan 28, 2003
91
US
Trying to just setup a few standard toolbar items in my app, got my array of TBBUTTON

TBBUTTON tbb[] = { STD_DELETE, 1, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 0,
STD_PRINT, 2, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 0,
STD_HELP, 3, TBSTATE_ENABLED, TBSTYLE_BUTTON, 0, 0, 0, 0 };

(sorry about formatting).

I make sure to initialize the common controls and toolbars, they appear fine in my app, but with no images on them?

hwndTool = CreateToolbarEx( hwnd, WS_VISIBLE | TBSTYLE_TOOLTIPS, ID_TOOLBAR,
0, NULL, (UINT_PTR)NULL, tbb, 3, 0, 0, 0, 0,
sizeof(TBBUTTON ) );

this is how i create my toolbar control... ?? (this function states that WS_CHILD is used by default, is why I don't have it there ), however, I am stumped...

The weevil of doooooooooom
-The eagle may soar, but the weasel never gets sucked up by a jet engine (Anonymous)
 
I don't believe your initialization of TBBUTTON tbb[] is correct. Put a break point on the line with CreateToolbarEx and take a look at the values in tbb

-pete
 
figured it out, was forgetting the "IDB_STD_LARGE whatever it is for the standard toolbar images... feh. thanks though :)

The weevil of doooooooooom
-The eagle may soar, but the weasel never gets sucked up by a jet engine (Anonymous)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top