Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 » Probleme while maximizing my application. Collapse All
Subject Author Date
Olivier Chatry Jan 12, 2006 - 1:30 AM

Hello,

I’m currently evaluating Prof-UIS and i must say it’s pretty amazing. Anyway, i’ve a problem with my application. Whenever i try to maximize it, i’ve got an ’offset’ between the top of the application and the top of the screen.

It may come from my way of doing things, my application have four view, one wich is created as the main view, and three other that are created inside CExtControlBar. For two of them, i’ve create a CExtToolControlBar. The CExtToolControlBar is not created directly on the view but on a frame that is the child of the CExtControlBar and parent of the view. It’s like the view"s toolbar have been registered to be on the mainframe toolbar dock.
What is really strange is that the size of the offset is different each time I launch the application.


I’ve take a screenshot that you can see at http://ochatry.free.fr/prb.png

Another probleme i have, that may come from the first problem is that when i try to load state (save apparently work, but i cannot really test :)) from registry the application crash.

Thanks for your help,
Best regards, Olivier Chatry.

Technical Support Jan 12, 2006 - 1:21 PM

We need to take a look at the source code of two classes in your application: the main frame window and CWinApp-derived application class. You can also send us the project if it is agreeable to you.

hesch hesch Jan 12, 2006 - 5:40 AM

I’ve just bought a licence for Prof-UI (under the name of my boss wilfried hesh), i’ve traced into the code for the second problem (crash when loading state (CExtControlBar::ProfileBarStateLoad) at application startup. It apparently crash at the end of the function ’void CExtControlBar::InternalDockStateSite::StateSet( bool bPresetWP ) const’ at this part :

    m_pDockSite->SendMessageToDescendants(
        WM_IDLEUPDATECMDUI,
        (WPARAM)TRUE,
        0
        );

Do you have any idea ? I dont know if it’s the right place to post this, but i dont know where i can send a mail.
Best regards, Olivier Chatry

Technical Support Jan 12, 2006 - 2:01 PM

To load the state of control bars requires only one condition: all the bars whose states are described in the registry data must exist in the frame window. Please ensure you have created all the bars whose states are loaded.