Solved

frame without border

Posted on 1997-05-13
8
991 Views
Last Modified: 2013-11-20
I'd like to have a frame with no border and no title bar..
I have changed the frame's style in the PreCreateWindow so:

cs.style=~WS_BORDER|WS_CAPTION

but this gives some problems during the execution.

After I have changed the frame's style in OnCreate:
ModifyStyle(WS_CAPTION,0);
ModifyStyle(WS_BORDER,0);

In this way my frame has not the title bar, but has the border!!

I'd like to know what I have to do to delete the border or to colour it as the view's background.

Thanks.
0
Comment
Question by:ravaioli
8 Comments
 

Expert Comment

by:EHaimerl
ID: 1301514
Try ModifyStyle ( WS_EX_OVERLAPPEDWINDOW, 0); and try if you get new problems during execution.
0
 

Author Comment

by:ravaioli
ID: 1301515
I have tried with
ModifyStyle(WS_EX_OVERLAPPEDWINDOW,0)
I have not got problems during execution, but my frame has  again the borders!!!
0
 
LVL 3

Expert Comment

by:Melange
ID: 1301516
Try this in your PreCreateWindow function

cs.style = WS_CLIPCHILDREN | WS_OVERLAPPED;

if that still fails, then try it with WS_POPUP instead of WS_OVERLAPPED or just simply WS_CLIPCHILDREN only.
0
 

Author Comment

by:ravaioli
ID: 1301517
I have again the border!!!
Really the borders is thiner, but it's again visible.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:ravaioli
ID: 1301518
I have again the border!!!
Really the borders is thiner, but it's again visible.
0
 
LVL 1

Expert Comment

by:lwiding
ID: 1301519
There are several border style flags. You should make sure that all of them are off. These are:
  WS_BORDER
  WS_DLGFRAME
  WS_THICKFRAME
0
 

Author Comment

by:ravaioli
ID: 1301520
I've tried, but  have again the borders.
0
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1301521
Try in the PreCreateWindow,

cs.style = WS_POPUP | WS_VISIBLE;
cs.dwExStyle = 0;


0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Running shell command from Access 3 69
sum13 challenge 24 90
firstChar challenge 13 110
Problem to event 3 79
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now