Solved

mdi parent border

Posted on 1998-07-01
3
366 Views
Last Modified: 2010-04-04
I have found how to make mdi parent borders present with the createparams procedure, but i want to make the parent borders disappear. I have my parent with "none" border style selected, but when I maximize it, there is still the 3d border around the edges. Is there an api value i can pass to createparams to make these go away?
0
Comment
Question by:billy1
3 Comments
 
LVL 4

Expert Comment

by:BoRiS
Comment Utility
billy1

Check the SystemParametersInfo API Call...

I seem to remeber there is a option for SetBorder and SetNonClientMetrixBorder etc...

Later
BoRiS
0
 

Author Comment

by:billy1
Comment Utility
I am not sure when I would use that api call. Could you give me an example?
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 30 total points
Comment Utility
Try the following :

                      In OnCreate-method of Main form put

                      begin
                        SetWindowLong(Handle, GWL_EXSTYLE, GetWindowLong(Handle, GWL_EXSTYLE) and
                      not WS_EX_CLIENTEDGE);
                        SetWindowPos(Handle, 0,0,0,0,0, SWP_NOMOVE or SWP_NOSIZE or
                      SWP_FRAMECHANGED);
                      end;

Zif.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 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

10 Experts available now in Live!

Get 1:1 Help Now