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 displaying an application full-screen Collapse All
Subject Author Date
Takis Takoglou Oct 5, 2009 - 2:49 AM

Good day!

I am  developing a program using MFC.

When i added some features from the ProfUIS library (class CMainFrame : public CExtNCW < CFrameWnd > , CExtToolControlBar etc.) i noticed the following abnormal behavior: 

When the program starts it is in the maximized position by default.

Sometimes the maximized position occupies correctly the whole screen (except from the taskbar)

but sometimes it occupies less than the whole screen (about half an inch from the top is unoccupied and shows the desktop)

Note that if the program starts correctly occupying the screen it preserves this correct state through runtime.

By using the getClientRect() of the main window i find that indeed the clientRect is less than it should when the whole screen isn’t occupied.

Anyone has encountered something similar? Any guesses?

Thanx in advance,


Technical Support Oct 30, 2009 - 2:34 PM

The CMainFrame::ActivateFrame() virtual methods in all the frame based Prof-UIS sample applications performs the main frame position restoring when invoked first time. But if sample app runs first time on a computer, then the CMainFrame::ActivateFrame() method just shows the main frame window like your app do. Here is how to make the SDI_DynamicBars sample application starting exactly like your app with the same theme:

1) Run it once, select the Office 2007 R1 theme and close it.

2) Remove the following registry keys using regedit.exe tool:


3) Run it again.

At the 3rd step, the sample application will run initially maximized without window position restoring and it will use the Office 2007 R1 theme. We didn’t noticed any problems. You can repeat this test with other sample apps.

Technical Support Oct 5, 2009 - 1:04 PM

We improved the CExtNCW template class in Prof-UIS 2.85 and most of known window positioning issues were closed. Which Prof-UIS version is used in your project?

Technical Support Oct 5, 2009 - 12:50 PM

We improved the CExtNCW template class in Prof-UIS 2.85 and most of known window positioning issues were closed. Which Prof-UIS version is used in your project?

Takis Takoglou Oct 6, 2009 - 12:56 AM


I am using Prof-UIS 2.87 since May when it was available for download from your ftp.

Technical Support Oct 15, 2009 - 1:03 PM

Is it possible to reproduce this using the FullScreenState sample application? Which Windows version, Windows desktop theme and Prof-UIS UI theme should we use for testing?

Takis Takoglou Oct 29, 2009 - 6:59 AM


I am using: 

- Windows XP Professional version 2002 Service Pack 3

- XP theme ( but the problem appears in others pc which probably have other themes )

- CExtPaintManagerOffice2007_R1

my application is using    



instead of ActivateFrame()

Unfortunately i cannot reproduce the error in your sample but i am working on it when i have time.