Avatar of ADITYA RAO
ADITYA RAO
Flag 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.
Visual C++.NETC++Microsoft Development.NET ProgrammingProgramming

Avatar of undefined
Last Comment
ADITYA RAO

8/22/2022 - Mon
Randy Downs

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
sarabande

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ADITYA RAO

ASKER
Yes   Mr/Mrs  sarabande  it  finally  worked  out.Toolbar is changing
Thank  you  very  very much
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes