Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Cannot re-arrange controls in MFC Ribbon - Visual Studio 2010

$
0
0

I have an Office-type VC++ application with a ribbon interface. I have populated the ribbon with several categories, each category containing several panels, and each panel containing several controls.

I have a steady and working build of my application which has been tested thoroughly. However, if I re-arrange the positions of controls inside my ribbon, the application stops working. 

Specifically, if I swap positions for two panels, or if I add a new button, that is when the problem creeps up.

By 'not working', I mean this : The correct message handlers do not get called in response to user actions on controls. Sometimes, even wrong message handlers get called. 

I have thoroughly looked at my message maps and made sure that I have the correct IDs mapped to correct message handlers. I also do a 'clean and rebuild' of my application everytime I modify either ribbon or message handling setup. To me it looks like a bug in VC++ itself. I hope I'm wrong. 

Kira


Viewing all articles
Browse latest Browse all 15302

Trending Articles