frame without border

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:|WS_CAPTION

but this gives some problems during the execution.

After I have changed the frame's style in OnCreate:

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.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try ModifyStyle ( WS_EX_OVERLAPPEDWINDOW, 0); and try if you get new problems during execution.
ravaioliAuthor Commented:
I have tried with
I have not got problems during execution, but my frame has  again the borders!!!
Try this in your PreCreateWindow function = WS_CLIPCHILDREN | WS_OVERLAPPED;

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

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

ravaioliAuthor Commented:
I have again the border!!!
Really the borders is thiner, but it's again visible.
ravaioliAuthor Commented:
I have again the border!!!
Really the borders is thiner, but it's again visible.
There are several border style flags. You should make sure that all of them are off. These are:
ravaioliAuthor Commented:
I've tried, but  have again the borders.
Try in the PreCreateWindow, = WS_POPUP | WS_VISIBLE;
cs.dwExStyle = 0;


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.