Originally posted by: mijin choi
I think, It is simple and good for full screen display.
I did it using another method but with lots of stuff.
Originally posted by: HangSeop Lee
I use VC++ 5.0 sp3 and I have same problem with Paul Schmeltzer.
How do I get "afxdtctl.h" file?
Originally posted by: Christophe G
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
Any suggestion ?
I'm trying to do the same in a SDI.
I want a FrameWnd in a full screen mode without title bar.
In the PreCreateWindow(CREATESTRUCT& cs), I'm trying to change the style but ... nothing. Always a title bar.
{
cs.hMenu = NULL; // No menu displayed
// remove the caption ???
cs.style &= ~(FWS_ADDTOTITLE | FWS_PREFIXTITLE | WS_CAPTION);
return CFrameWnd::PreCreateWindow(cs);
}
Originally posted by: Bernd Wi�ler
1.)
2.) in the fullscreen functions implement following:
void CMainFrame::FullScreenModeOn()
...
3.) in the ChildFrames implement the virtual function WM_MDIACTIVATE (OnMDIActivate)
4.) In "ChildFrm.cpp" include the "MainFrm.h"
5.) Implement the code in OnMDIActivate()
void CChildFrame::OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd)
I'd tried to disable the mdi-menus and found a method that works fine:
in Mainframe implement a menu member:
class CMainFrame : public CMDIFrameWnd
{
CMenu m_OrgMenu;
...
};
{
....
//Save the Original Menu and set menu to NULL
ASSERT(m_OrgMenu.GetSafeHmenu()==NULL);
CMenu* pOldMenu=GetMenu();
m_OrgMenu.Attach(pOldMenu->Detach());
SetMenu((CMenu*)NULL);
.....
}
void CMainFrame::FullScreenModeOff()
{
ASSERT(m_OrgMenu.GetSafeHmenu()!=NULL);
SetMenu(&m_OrgMenu);
m_OrgMenu.Detach();
}
{
CMainFrame* pMainFrame=(CMainFrame*)AfxGetMainWnd();
if(!pMainFrame->m_bFullScreenMode)
CMDIChildWnd::OnMDIActivate(bActivate, pActivateWnd, pDeactivateWnd);
}
Originally posted by: Paul Schmeltzer
Requires a file "afxdtctl.h" that doesn't ship with 5.0.
Reply