InsertPicture problem

General TRichView support forum. Please post your questions here
Post Reply
cychia
Posts: 104
Joined: Mon Jan 16, 2006 1:52 am

InsertPicture problem

Post by cychia »

I have a big picture example 1024 x 768.

to insert it into editor, i will make following calls:

1. RVE.InsertPicture
2. SetCurrentItemExtraIntProperty(rvepImageWidth, 80, True);
3. SetCurrentItemExtraIntProperty(rvepImageHeight, 80, True);

Since every time I will resize the inserted picture into 80x80, with the big picture like i have mentioned above with 1024x768. After the picture is inserted into the editor, I will see the picture first will be shown in original size, then resized to the 80x80.

Is there a way i can stop editor from drawing until i have finish calling the 3rd call?
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Use rve.BeginUpdate ... rve.EndUpdate
Post Reply