Answer: You can create a form with a client edge overriding the CreateParams function and adding the WS_EX_CLIENTEDGE style to Params.ExStyle.
0 ?! d- G0 {) s( b) j" b% y8 K. D& ^Step 1: Add the CreateParams prototype to the form class.
6 ?8 @8 M; r4 L private:
void __fastcall CreateParams(TCreateParams &
arams);
Step 2: Code the function.
void __fastcall TForm1::CreateParams(TCreateParams &
arams)* W( \: C4 m( X5 n) k+ z4 l
{
TForm::CreateParams(Params); // call base class first4 \, [0 ? u9 e! f4 a
Params.ExStyle |= WS_EX_CLIENTEDGE; // then add the style
}
If you would rather not bother with CreateParams, you can achieve identical results by placing a panel on your form. Set the Aligment property of the panel to alClient, set both BevelInner and BevelOuter to bvNone, and set the panel's BorderStyle property to bsSingle.
| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |