菜单去边框
请问怎样将菜单的3D边框去掉?
哪位大牛能指点一下,小弟感激不敬。
[解决办法]
void __fastcall TForm1::FormCreate(TObject *Sender)
{
PopupMenu1->OwnerDraw=true;
MainMenu1->OwnerDraw=true;
}
//---------------------------------------
//随便找个菜单项,响应其OnMeasureItem()事件
void __fastcall TForm1::asdfsd1MeasureItem(TObject *Sender,
TCanvas *ACanvas, int &Width, int &Height)
{
SetClassLong(FindWindow("#32768",""),GCL_STYLE,0);
}