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 » Remove captions and frameborder of CExtNCW Collapse All
Subject Author Date
Ismael Fuentes Nov 23, 2007 - 4:53 AM

Dear ProfUIS Support Team,

We want to use a dialog with the PaintManager of Office 2007, which can change in size and also change to fullscreen when necessary, but without using background style of CExtResizableDialog. Therefore we have used CExtNCW<CDialog>.

It works fine with the changes in size, but when changing to fullscreen always shows the header title and frameborder, despite being forced to be disabled.

If we use simple CDialog all works correctly, also in fullscreen, but we don?t see the Office 2007 style.

To switch CDialog to fullscreen we use:
CRect rc;
::GetWindowRect(::GetDesktopWindow(), &rc);
::SetWindowLong(m_hWnd, GWL_STYLE, 0);
::SetWindowPos(m_hWnd, wndTopMost, rc.left, rc.top, rc.Width(), rc.Height(), SWP_FRAMECHANGED|SWP_SHOWWINDOW);
RedrawWindow(NULL, NULL, RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE|RDW_ERASENOW|RDW_NOFRAME);

Technical Support Nov 23, 2007 - 6:54 AM

We are sorry but the information you provided is not enough to find out what’s wrong. Would you send us a small dialog-based project that demonstrates the problem?