No Title bar/menus
Srikant V -- SrikantV@wintegrity.com Friday, December 06, 1996 Environment: VC++ 4.2b, NT4.0 I have an application with two MDI children, One of them needs to have a title bar/menu/tool bar, the other MDI child has to occupy the entire screen (no title bar/menu/tool bar). What is a good way to create one with and one without titlebar/menus/toolbar. I will also be switching between these two windows, and based on the screen the titlebar/menus/toolbar should appear or not appear. thanks in advance
Hans Wedemeyer -- hansw@sprintmail.com Tuesday, December 10, 1996 Environment: VC++ 4.2b, NT4.0 You can do this in the BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs) { // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs static int nFirstWindow = 0; if ( nFirstWindow < 4 ) { nFirstWindow ++; cs.style = WS_CHILD | WS_VISIBLE | WS_THICKFRAME; } else { cs.style = WS_CHILD | WS_VISIBLE | WS_OVERLAPPEDWINDOW; } return CMDIChildWnd::PreCreateWindow(cs); } This works, not sure if it's the best way. regards Hans W Srikant V wrote: > > Environment: VC++ 4.2b, NT4.0 > I have an application with two MDI children, One of them needs to have a > title bar/menu/tool bar, the other MDI child has to occupy the entire > screen (no title bar/menu/tool bar). What is a good way to create one > with and one without titlebar/menus/toolbar. I will also be switching > between these two windows, and based on the screen the > titlebar/menus/toolbar should appear or not appear. > thanks in advance
| Вернуться в корень Архива |