Hi,
We do not want users to be able to see OENGINE in the task bar (because if they see it, there is a huge risk of them closing/aborting that task), so I am wanting to know how to hide it ?
I have searched through the past posts and found the following from Donald Bakke on 05/14/97 11:20 PM
"The reason it *should* be hidden is to shield the user from the system. Most of us will hide Oengine and Oinsight during the CREATE event of the application main window, but it would be immensely better if runtime versions would launch that way instead."
So it looks like Don knows how to do it; some tips please.
Thanks,
Pedro
Hi Pedro
You need to use the Win16 API function ShowWindow() which requires the handle of OpenEngine, that you can get from FindWindow().
Equ SW_HIDE$ to 0
handle=FindWindow( "AREV":\00\, 0)
RetVal=ShowWindow( handle, SW_HIDE$)
Make sure you have both FindWindow and ShowWindow prototyped in DLL_USER in SYSPROCS as:
USHORT PASCAL ShowWindow(USHORT,SHORT)
SHORT PASCAL FindWindow (LPCHAR, LONG)
and you have run Declare_FCNS( "DLL_USER") to generate the stubs in SYSOBJ.
Peter,
This keeps the end users out of troubleā¦
* Hide Oengine and Oinsight icons
handle=FindWindow("arev":char(0),0)
retval=ShowWindow(handle,0)
handle=FindWindow("rti_oinsight":char(0),0)
retval=ShowWindow(handle,0)
John C. Henry
J.C. Henry, Inc
Hi,
Thanks John & Chis, much appreciated.
Pedro