Making a main(frame)window without a border and caption (just white) 
Author Message
 Making a main(frame)window without a border and caption (just white)

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



Fri, 09 Jun 2000 03:00:00 GMT  
 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



Fri, 09 Jun 2000 03:00:00 GMT  
 Making a main(frame)window without a border and caption (just white)

Hi,

I also tried to change the style of a window generated by the AppWizard
uswing the OnPreCreate functions etc., but they don't work.  You might try
the function CWnd::ModifyStyle and Cwnd::ModifyStyleEx in the constructor
or in the OnCreate.  Modifying CREATSTRUCT cs does not work.

Let me know if it works ok!!

Mel


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 main
window does not work (runtime error)

How is this done. Code is welcome!

Remon



Sat, 10 Jun 2000 03:00:00 GMT  
 Making a main(frame)window without a border and caption (just white)

No, Still doesn't work!



Sun, 11 Jun 2000 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Making a main(frame)window without a border

2. Maximizing Frame Window: Caption bar w/out window borders

3. Make main window w/o frame, border, etc

4. Frame client without borders(without WS_EX_CLIENTEDGE) ?

5. closing the main frame window without closing the application

6. Window Without border and without title bar

7. CPropertySheet's caption focused - doesnt catch accelerator messages for main frame

8. Getting window handle without matching window caption text

9. An MFC main frame without a titlebar?

10. Accessing the MDI client window of the main frame window

11. Frame window with no Border around the View

12. Frame window with no Border around the View

 

 
Powered by phpBB® Forum Software