
Making a main(frame)window without a border and caption (just white)
If you don't require use of the doc/view architecture, why not just make
your main frame window based on CDialog ? Judging by your attempt to use
CWnd, I gather it doesn't.
If you make your app dialog-based, you can simply remove the caption and
border styles from the dialog resource,
call yourDialog.DoModal() from InitInstance(), et voila... all this work
(with the exception of removing the Caption style)
will be done for you if you use the "Dialog-based App" option in AppWizard.
If your app can't be dialog-based, have you tried removing the caption style
from within CMainFrame::PreCreateWindow() ?
--
============================================
jim allison
Senior Systems Architect
Origin Technology in Business, Inc.
Home
(remove dashes for actual addresses)
============================================
Quote:
>Hi all,
>I'm trying to make a mainwindow which has no borders and no caption. I
can't
>reset the stylebits for a framewindow and a normal CWnd as a mainwindow
does
>not work (runtime error)
>How is this done. Code is welcome!
>Remon