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 Tech Support » Maximized bug in 2.84 Collapse All
Subject Author Date
Offer Har Feb 24, 2009 - 11:22 AM

Dear Support,


When having an application maximized in 2.84 with CExtPaintManagerXP theme, it does not cover the whole window, there is a 10 pixel offset from the top, and the bottom 10 pixels are hidden behind the windows task-bar.


This is the top of the display


Offer Har Feb 24, 2009 - 1:18 PM

It’s not any of the prof-UI demos, but my own application...


Please note that I am using dual view, and each monitor has a different resolution (this is a new setup we use)

Offer Har Feb 24, 2009 - 1:19 PM

Also, in the Office themes this does not happen, only in the XP theme.

Technical Support Feb 24, 2009 - 1:41 PM

We tried to run the MDI sample application on Windows XP Professional English SP3 with two monitors. The left and main monitor is 1600x1200. The secondary right monitor is 1024x768. The state of the main frame window is restored OK on both monitors and in both normal and maximized states. We hope you provide us with more details. We need to know required monitor resolutions, which shell bars are running and visible on your monitors and, exactly they are docked and which of them are using auto hiding.

Offer Har Feb 24, 2009 - 1:48 PM

Hi,


The main monitor is 1600x1200, the second (right) is 1280x1024.


WIn XP SP3 English


My task-bar is the only item on my desk-top, it is two rows high.


I run it without loading the UI state from the registry


All I do is:



    pFrame->ActivateFrame(SW_SHOWMAXIMIZED);

To the main frame (this is an MDI application).


Note again - works fine in 2007 themese (grey/blue/black) does not work fine in XP theme.

Technical Support Feb 25, 2009 - 7:49 AM

We modified the MDI sample application for testing this issue:

http://www.prof-uis.com/download/forums/tmp/ForRon-TestingMaximize.zip

We replaced the following line in the CMDIApp::InitInstance() method:

pFrame->ActivateFrame( m_nCmdShow );

With the following line:
pFrame->ActivateFrame( SW_SHOWMAXIMIZED );

We completely removed the CMainFrame::m_dataFrameWP property and all its usages (replaced with NULL its usage as method parameter). We removed the CMainFrame::ActivateFrame() virtual method.
Then we run this modified MDI sample application from the Windows Explorer. It starts maximized on the desktop which is closest to the location of the Windows Explorer’s window. The location of the main frame window is the correct location of the correctly maximized window. So, we need more details. Which desktop theme is used on your computer and which DPI setting is set? What do we need to modify additionally in the source code of the MDI sample application to make it reproducing this issue?

Technical Support Feb 25, 2009 - 6:29 AM

We modified the MDI sample application for testing this issue:

http://www.prof-uis.com/download/forums/tmp/ForRon-TestingMaximize.zip

We replaced the following line in the CMDIApp::InitInstance() method:

pFrame->ActivateFrame( m_nCmdShow );

With the following line:
pFrame->ActivateFrame( SW_SHOWMAXIMIZED );

We completely removed the CMainFrame::m_dataFrameWP property and all its usages (replaced with NULL its usage as method parameter). We removed the CMainFrame::ActivateFrame() virtual method.
Then we run this modified MDI sample application from the Windows Explorer. It starts maximized on the desktop which is closest to the location of the Windows Explorer’s window. The location of the main frame window is the correct location of the correctly maximized window. So, we need more details. Which desktop theme is used on your computer and which DPI setting is set? What do we need to modify additionally in the source code of the MDI sample application to make it reproducing this issue?

Offer Har Mar 5, 2009 - 11:52 AM

Dear Support,


I cannot reproduce it in ther MDI application, however, something is definently not right for me in the XP theme.


Can you please point me to where you put the size of the main-frame, so that I will be able to debug my application to get to the root of this problem?


Thanks,


Ron.

Offer Har Feb 26, 2009 - 1:37 AM

Because the XP theme has so many problems, we decided to not use it for now, as we don’t have time to figure out what is the problem with the maximize mode in this theme.

Ulrich Heinicke Feb 24, 2009 - 11:37 PM

Hi,


i have the same problem. My monitor is 1680 x 1050, Win XP SP2 german. When is swich your MDI sample application from Office 2007 Theme to XP theme, than there are 10 pixel offset a top. When i then minimized and after that maximed the application, then it’s ok. But when you then switch back to Office 2007 theme there are now 10 pixel missing on every side.


Ulrich

Offer Har Mar 11, 2009 - 12:27 PM

Hi Ulrich,


Did you find any solution to this problem?


Thanks,


Ron.

Ulrich Heinicke Mar 11, 2009 - 12:59 PM

Hi Ron,


i have no time to fix this problem in the moment. Hopefully the support find a solution.


Ulrich

Technical Support Feb 24, 2009 - 1:13 PM

Which of Prof-UIS sample applications can be used for reproducing this issue?