Link to home
Start Free TrialLog in
Avatar of ADITYA RAO
ADITYA RAOFlag for India

asked on

How to change toolbar runtime

I  have  two toolbars  in my application.I  want  to change  toolbar  runtime. Inplace  of  first  toolbar  I  want  to  replace  second toolbar.
and vice versa  based  on  some  condition.How  to  do  it? Will  anyone  tell me  as  early as possible.
I  am  using  Visual C++ 2010 . And  my  toolbar  is CMFCToolbar.
Avatar of Randy Downs
Randy Downs
Flag of United States of America image

Maybe this will help.

new MFC program with the wizard in VS-2010 you can choose this feature on the page "User Interface Features". Select "Use a menu bar and toolbar. There are two further settings "User-defined toolbars and images" and "Personal menu behavior". You have to select the first.

Look into the created code...

HTH

PS: Also the new BCG classes are completely compatible with MFC 2010
ASKER CERTIFIED SOLUTION
Avatar of sarabande
sarabande
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ADITYA RAO

ASKER

Yes   Mr/Mrs  sarabande  it  finally  worked  out.Toolbar is changing
Thank  you  very  very much