Print Page | Close Window

ribbon button state problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4480
Printed Date: 10 November 2025 at 5:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ribbon button state problem
Posted By: gernot
Subject: ribbon button state problem
Date Posted: 24 June 2006 at 4:04pm
When I click a button on my Office 2007 style ribbon band, it remains in the 'pressed' state forever. This happens even if I do not implement any handler for that button. My ribbon band is on top of a dialog box.
Can somebody give me a hint?
 
Regards,
Gernot



Replies:
Posted By: Oleg
Date Posted: 24 June 2006 at 9:35pm
Add like in sample:
 
ON_MESSAGE(WM_KICKIDLE, OnKickIdle)
+
 
LRESULT CDialogSampleDlg::OnKickIdle(WPARAM, LPARAM)
{
 GetCommandBars()->UpdateCommandBars();
  return 0;
}
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: gernot
Date Posted: 26 June 2006 at 5:27am
Thank you, this solves the problem. Thumbs Up



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net