1. Computing

Hiding Minimized MDI Child Forms

By

To hide minimized MDI child windows, you must trap its WM_Size message, like this:
 type
    TForm1 = class(TForm)
    public
      procedure WMSize(var M : TWMSIZE) ; message WM_Size;
    end;
 
 implementation
 
 procedure TForm1.WMSize(var M : TWMSIZE) ;
 begin
   if M.SizeType=Size_Minimized then
   begin
     ShowWindow(Handle,Sw_Hide) ;
     M.Result := 0;
   end
   else
     inherited;
 end;
 
Delphi tips navigator:
» Set TAB stops for TMemo
« TDesktopCanvas - draw on Windows Desktop

©2014 About.com. All rights reserved.