John Barrat wrote: > I want to trap a double click on the Caption bar of an MDI Child form. The > form itself is occupied by a single Listbox control which is alighed to teh > client area and has a double click event.
What do you want to happen? Will your customers be confused when it does something other than maximize the window, as it does in every other program? I'd start by handling the wm_NCLButtonDblClk message. Only do special processing when the wParam value is htCaption. > The form double click event requires the mouse to be in the client area of > the form before it responds. Right. The non-client area is generally considered something controlled by the window manager, not the normal application code. > On the subject of MDI Child windows is there a way to change the Window > border style to that of a ToolWindow. Despite setting the border style to > bsToolwindw it still shows as Sizavle with a full height Titlebar. That's just how MDI works. If you want tool windows, then you don't want MDI. -- Rob _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

