13,825
社区成员
发帖
与我相关
我的任务
分享
void __fastcall TForm2::FormCreate(TObject *Sender)
{
//ParamCount()
int i;
i=ParamCount();
Memo1->Lines->Add(IntToStr(i)) ;
}
void __fastcall TForm1::tvParamCustomDrawItem(TCustomTreeView *Sender,
TTreeNode *Node, TCustomDrawState State, bool &DefaultDraw)
{
if (State.Contains(cdsSelected))
{
tvParam->Canvas->Font->Color = clBlue;
tvParam->Canvas->Brush->Color = clBlack;
}
//else
if (State.Contains(cdsHot))
{
tvParam->Canvas->Font->Color = clRed;
tvParam->Canvas->Font->Style = TFontStyles() <<fsUnderline; //关键是这一句
}
else
{
tvParam->Canvas->Font->Color = clBlack;
tvParam->Canvas->Font->Style = TFontStyles() >>fsUnderline; //关键是这二句
}
}
if( ParamStr(1) == "a" )
{
}
else if( ParamStr(2) == "b" )
{
}