• Advertisement
Sign in to follow this  

icons in win32 api

This topic is 4351 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

Hi.., I have no ideia where to start, or in what string to browse around. What i want to do, is below a menu bar in win32 api, to place some quick icons, like we see in many tools. Instead of pulling a push up menu, and choosing the option, the used would simply click a icon\button below the menu bar. Any hints would be very welcome Thanks. Bruno

Share this post


Link to post
Share on other sites
Advertisement
For straight Win32 programming, you might want to start with Toolbars at MSDN.

If you ever want to try something new, though, check out wxWidgets, an intuitive cross-platform C++ GUI programming library. It'll help you do things like this with a minimum of fuss, much more easily than using the Win32 API directly.

Share this post


Link to post
Share on other sites
Quote:
Original post by Bruno
Hi..,

I have no ideia where to start, or in what string to browse around.
What i want to do, is below a menu bar in win32 api, to place some quick icons, like we see in many tools.
Instead of pulling a push up menu, and choosing the option, the used would simply click a icon\button below the menu bar.
Any hints would be very welcome

Thanks.
Bruno


For the icons:

LoadResource()
DrawIconEx()

For UI on the icons, try creating flat buttons and putting icons on them.

CreateWindowEx()

Look in MSDN under Controls (Buttons)

You'll have to process the WM_COMMAND/BN_CLICKED message to get the button clicks.

Either that or you could just use the icons directly on the Window surface,
and trap the WM_LBUTTONDOWN message. If/when the cursor is over your icon,
(GetCursorPos) and the button is pressed, process how you'd like.

Hope that gives you a start.


Chad

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement