Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - menu with a bold text
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

menu with a bold text

 Post Reply Post Reply
Author
Message
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 515
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post Topic: menu with a bold text
    Posted: 25 March 2004 at 2:30am
Hello,
How can i show a menu text in bold font ?
Back to Top
vladsch View Drop Down
Newbie
Newbie


Joined: 04 February 2004
Location: Canada
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote vladsch Quote  Post ReplyReply Direct Link To This Post Posted: 26 March 2004 at 11:49am

Default Items show up in bold, so for the items that you want in bold you have to set the corresponding control's default item property to TRUE.

Get the control that corresponds to the menu item from the controls collection:

CXTPControl *pXTPControl =  GetCommandBars()->GetMenuBar()->GetControls()-&g t;GetControl(nIndex);

pXTPControl->SetItemDefault(true);

You are only supposed to have one default item, but I tried it and all the items can be set to default and will appear bold. I did not test to see if there are other side-effects of this.

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.141 seconds.