Question and Answer Database FAQ4581C.txt — Keeping Your Dialog From Being Maximized Category :VCL Platform :All Windows Product :All-CBuilder, Question: How do I make it so that my dialog box can not be maximized? Answer: This can be set at design time or with the follow code: Dialog1->BorderStyle = bsDialog; If you wish to be able to minimize the dialog place the following code in the constructor of your dialog: HMENU hMenu = GetSystemMenu(Handle, FALSE); DeleteMenu(hMenu, SC_MAXIMIZE, MF_BYCOMMAND); DrawMenuBar(Handle); 5/25/99 11:48:01 AM
Last Modified: 01-SEP-99