Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - OnUpdate Handler
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

OnUpdate Handler

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


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Topic: OnUpdate Handler
    Posted: 16 September 2007 at 11:28am
Does anybody know how to do SetVisible for a group, as we want this to be show/hide in our update handler ???
 
Any ideas cheers, as seem to be getting crashes :(
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 16 September 2007 at 11:50am

As right now I do this, but surely it is possible to get the pGroup pointer from the pCmdUI passed to the OnUpdate handler

 

CXTPRibbonBar *pRibbonBar = m_RibbonFormat.m_pRibbonBar;

CXTPRibbonGroup *pGroup = pRibbonBar->FindGroup( ID_FORMAT_ORIENTATION_GROUP );

pGroup->SetVisible( m_RibbonFormat.GetOrientation() != -1 ? TRUE : FALSE );

Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
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.063 seconds.