Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - About icon of command
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

About icon of command

 Post Reply Post Reply
Author
Message
wuyunpeng View Drop Down
Newbie
Newbie


Joined: 01 December 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote wuyunpeng Quote  Post ReplyReply Direct Link To This Post Topic: About icon of command
    Posted: 02 December 2005 at 9:04pm

I made one bitmap(contain 24 bit color) for every command,and put the bitmaps into a dll file.

so how can i use these bitmaps for my menu bar and toolbars?

thanks.

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2005 at 4:08am

1. Load it as bitmap;

::LoadImage(hinst, ...);

2. Set Icons using

pCommandBars->GetImageManager()->SetIcons(bmp, pCommands, nCount, szIcon);

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.