According to Dom Lachowicz <[EMAIL PROTECTED]>:
> > Still todo: how can I tell if the target frame is empty so I can reuse
> > it 
> > instead of opening a new one?
> 
> The UNIX code for this is:
> 
>                       if (pFrame->isDirty() || pFrame->getFilename() || 
>                               (pFrame->getViewNumber() > 0))
>                       {
>                               pNewUnixFrame = pApp->newFrame ();
>                       }
>                       else
>                       {
>                               pNewUnixFrame = pUnixFrame;
>                       }
>                       error = pNewUnixFrame->loadDocument(filename, 0 /* 
> IEFT_Unknown */);
> 
> You can definitely use the logic from the if statement there to help you on 
> win32.

Couldn't this code be put in XP-land ? I don't see an ounce of UNIX specific
code.


Hub

Reply via email to