Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2342251
  • 博文数量: 816
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 5010
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-17 17:57
文章分类

全部博文(816)

文章存档

2011年(1)

2008年(815)

分类:

2008-12-17 18:01:52

void __fastcall TFormEdit::MnuItmCharacterCenterClick(TObject *Sender)
{
  JustifyCharacter(Sender);
}

void __fastcall TFormEdit::JustifyCharacter(TObject *Sender)
{
  MnuItmCharacterLeft->Checked=false;
  MnuItmCharacterRight->Checked=false;
  MnuItmCharacterCenter->Checked=false;
  if(dynamic_cast(Sender)!=0)

  dynamic_cast<(Sender)->Checked=true;
  {
   if(MnuItmCharacterLeft->Checked)
    RichEdit->Paragraph->Aligment=taLeftJustify;
   else if(MnuItmCharacterRight->Checked)
         RichEdit->Paragraph->Aligment=taRightJustify;
        else if(MnuItmCharacterCenter->Checked)
              RichEdit->Paragraph->Aligment=taCenterJustify;
  }
}
[C++ Error] childwin.cpp(120): E2268 Call to undefined function 'JustifyCharacter'
[C++ Error] childwin.cpp(124): E2316 '_fastcall TFormEdit::JustifyCharacter(TObject *)' is not a member of 'TFormEdit'

--------------------next---------------------

阅读(1259) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~