THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/10/2006 at 21:56, xxxxxxxx wrote:
My plugin is a dialog plugin ...
When the user presses a button ... The user will see the Picture Viewer rendering ...
When redering is done the user will get a bitmap file ...
But while rendering ... the user cannot have a break on that render ... bcos I render like this ...
RenderDocument(doc, bc,MyProgressHook,pd, bmOutput,RENDERFLAG_EXTERNAL,NULL);
Some old threads told me to use TestBreak() ...
For that I create a class called myThread ...
class myThread:public Thread
{
public:
myThread();
virtual void Main(void);
};
myThread::myThread()
{
}
void myThread::Main(void)
{
//...
}
Then when I call RenderDocument() ...
myThread *thdRender=new myThread;
RenderDocument(doc, bc,MyProgressHook,pd, bmOutput,RENDERFLAG_EXTERNAL,thdRender->Get());
If I did like above ... the code that I wrote in MyProgressHook was not running ...
And if I insert the line thdRender->TestBreak() ... it's not still working ...
But I'd go on ... 
Zaw Min Tun ...