Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Jul : GetOpenFileName & GetSaveFileName

www.cryer.info
Managed Newsgroup Archive

GetOpenFileName & GetSaveFileName

Subject:GetOpenFileName & GetSaveFileName
Posted by:"Mark Williams" (mark@{removethis}skwirel.com)
Date:Wed, 20 Jul 2005 22:17:39 +0100

I'm using the above API calls in preference to the TOpenDialog and
TSaveDialog.  I have then working well, but there's just one thing I can't
figure out.  How do I set the open/save dialog so it will appear on top of
all other windows.

The reason I need this is because I have created an invisible control, which
I have converted to an ActiveX.  This ActiveX automates word.  I grab the
word app's handle and pass this as the window that own the open/save dialog.
However (possibly because the whole thing is kicked off from a web page, the
open/save dialogs sometimes are hidden behind Word.  Can't figure out why
this should be.  Only options it seems that are available to me are to
somehow open sysmodal or make the dialog open topmost.  Anyone got any idea
how I do this using the API functions.  Any alternative solutions also
welcome.

TIA,

Mark Williams

Replies:

www.cryer.info
Managed Newsgroup Archive