Solved

mdi parent border

Posted on 1998-07-01
3
371 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
ID: 1356775
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
ID: 1356776
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
ID: 1356777
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

776 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