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 » how to remove the title bar for a CExtNCW under office 2007 theme Collapse All
Subject Author Date
Chris Anderson Feb 22, 2008 - 7:15 PM

hi,

We havea frame wnd derived from CExtNCW<CFrameWnd>. It works well in most cases, but it seems some Windows styles are ignored. ( prof-uis v282 )

I can make the window transparent by adding WS_EX_LAYERED, but when I tried to remove WS_CAPTION, WS_BORDER, WS_DLGFRAME .. to get rid of title bar, I can still see a title bar under Office 2007 theme. With other themes, the title bar is gone. It seems the office 2007 nc paint function doesn’t take the style into consideration

Is this doable ?

Thanks

Technical Support Aug 7, 2008 - 1:30 PM

We will add this feature soon. Thank you.

Technical Support Feb 25, 2008 - 4:28 AM

The CExtNCW currently supports only windows with a caption and borders. We can regard your question as a feature request.

Chris Anderson Aug 7, 2008 - 10:50 AM

This problem still exists with prof-uis v283.  You can easily see it by adding the following code to the help about in the FormEditor sample:


 


void CFormEditorApp::OnAppAbout() { #ifndef __EXT_MFC_NO_PROF_UIS_ABOUT_DIALOG        DWORD style = m_pMainWnd->GetStyle();     if ( (style & WS_CAPTION) == 0)     {         m_pMainWnd->ModifyStyle(0, WS_CAPTION, SWP_DRAWFRAME);     }     else     {         m_pMainWnd->ModifyStyle(WS_CAPTION, 0, SWP_DRAWFRAME);     }     VERIFY( ProfUISAbout() ); #endif // #ifndef __EXT_MFC_NO_PROF_UIS_ABOUT_DIALOG    }


 


This works fine except for Office 2007 themes.


Please add this as a feature request.  Thank you.