trichview.com

trichview.support




Re: How to check whether RichView is empty?


Return to index


Author

Message

Dmitry

Posted: 12/03/2002 9:31:54


"Sergey Tkachenko" <svt@trichview.com> сообщил/сообщила в новостях

следующее: news:3debb173@support.torry.net...

> Correction

>

>  Empty := (rv.ItemCount=0) or

>    ((rv.ItemCount=1) and (rv.GetItemStyle(0)=0) and

(rv.GetItemText(0)=''));

>

Here is my version.


bool _stdcall IsRVEmpty(TCustomRichView *p_RView)

{

  assert(p_RView);

  return p_RView->GetItemStyle(0) >= 0 ? p_RView->GetItemText(0).IsEmpty() :

false;

}





Powered by ABC Amber Outlook Express Converter