Creating A Window Without A Caption Bar..... 
Author Message
 Creating A Window Without A Caption Bar.....

MenuA.CreateEx (WS_EX_TOPMOST,AfxRegisterWndClass(CS_DBLCLKS || CS_OWNDC ||
CS_VREDRAW || CS_HREDRAW,NULL,hBrush),"Menu 1",WS_POPUPWINDOW ||
WS_VISIBLE,rect,NULL,0);

Basicall this is a copy of some code i was using in vb would vreate a window
with no system menu or caption bar but in msv i get a system menu......? how
do i get rid of that menu?

Thanks Chris



Fri, 27 Apr 2001 03:00:00 GMT  
 Creating A Window Without A Caption Bar.....

Quote:
>MenuA.CreateEx (WS_EX_TOPMOST,AfxRegisterWndClass(CS_DBLCLKS || CS_OWNDC ||
>CS_VREDRAW || CS_HREDRAW,NULL,hBrush),"Menu 1",WS_POPUPWINDOW ||
>WS_VISIBLE,rect,NULL,0);

Chris,

You're using the logical OR operator || rather than the bitwise OR |
operation.

Dave
----
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.



Sat, 28 Apr 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Window without caption bar

2. How to create a Window without Menu Bar?

3. Getting window handle without matching window caption text

4. How to implement a Property Sheet without caption bar

5. MFC without Caption bar

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

7. How to implement a Property Sheet without caption bar

8. How to drag a form without the caption bar

9. Window Without border and without title bar

10. Problem creating PropertySheet objects without a caption

11. Create Button on Caption Bar

12. Creating button on Caption Bar

 

 
Powered by phpBB® Forum Software