Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Problem with Maximize button in CExtControlBar Collapse All
Subject Author Date
Eric Jun 21, 2012 - 7:30 AM



 This post is related to the following one I have found on your forum:

 I have a lot of control bars embedded into tabbed containers in my application. As explained in different posts, I created my own CExtControlBar-derived and CExtDynTabControlBar-derived classes and overriden the method OnNcAreaButtonsReinitialize() in both of them. It seems to work since the ’Maximize/Restore’ button is correctly drawn but in fact it does not whereas the method ’CExtBarNcAreaButtonFloatingMaximizeRestore::OnNcAreaClicked’ is actually called. Indeed, when I clicked on the ’Maximize’ button, my frame moves to the top-left of my screen but is not resized at all.

 I checked the ’SDI-sm.exe’ executable you provided in the post I am referring to at the beginning and I noticed that it works. Do you have any idea of what could be the problem in my case? Else, is it possible to have the source code of the ’SDI-sm.exe’ executable?

I think that the version of ProfUIS I am using is 2.91. ( Is there an easy way to know which version we use? We migrated so many times that I am lost :). )

Regards, Cedric.

PS: I have already post on the Support forum but since I had no response, I tried this one.

Technical Support Jul 5, 2012 - 10:03 AM

That sample is just an SDI sample project with enabled CExtBarNcAreaButtonExpand buttons. We even didn’t save the source code for it. Please send us the source code for your main frame and bars so we can check what’s wrong.