Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - ribbon button state problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ribbon button state problem

 Post Reply Post Reply
Author
Message
gernot View Drop Down
Newbie
Newbie
Avatar

Joined: 20 June 2006
Location: Austria
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote gernot Quote  Post ReplyReply Direct Link To This Post Topic: ribbon button state problem
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
gernot View Drop Down
Newbie
Newbie
Avatar

Joined: 20 June 2006
Location: Austria
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote gernot Quote  Post ReplyReply Direct Link To This Post Posted: 26 June 2006 at 5:27am
Thank you, this solves the problem. Thumbs Up
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.047 seconds.