Question and Answer Database FAQ4277C.txt :C++Builder MDI Forms Have Greyed out Close Button. Category :VCL Platform :Win95/NT Product :C++Builder1.0, C++Builder3.x, Question: When I create MDI projects with C++Builder the MDI form exhibits strange behavior. When two instances of the MDI form is created and maximized the close button is greyed out. How do I get around this? Answer: If you type in the following code on the MDI child's OnActivate event: LONG Style = GetWindowLong(Handle, GWL_STYLE) | WS_SYSMENU; SetWindowLong(Handle, GWL_STYLE, Style); 12/16/1998 8:57:01 AM
Last Modified: 01-SEP-99