trichview.com

trichview.support




Re: How to check whether RichView is empty?


Return to index


Author

Message

Sergey Tkachenko

Posted: 12/03/2002 21:04:30


bool _stdcall RVIsEmpty(TCustomRichView *p_RView)

{

   assert(p_RView);

   return p_RView->ItemCount == 0 ? true :

   ((p_RView->ItemCount == 1) && (p_RView->GetItemStyle(0) == 0) &&

     p_RView->GetItemText(0).IsEmpty());

}


(I changed false to true and moved ')')



> bool _stdcall RVIsEmpty(TCustomRichView *p_RView)

> {

>   assert(p_RView);

>   return p_RView->ItemCount == 0 ? false :

>   ((p_RView->ItemCount == 1) && (p_RView->GetItemStyle(0) == 0)) &&

>     p_RView->GetItemText(0).IsEmpty();

> }

>

>

>

>

>





Powered by ABC Amber Outlook Express Converter