Hiding OENGINE from the task bar ? (OpenInsight Specific)
At 19 SEP 2000 09:03:08PM Peter Richards wrote:
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
At 20 SEP 2000 12:59AM Chris Callaghan wrote:
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.
At 20 SEP 2000 02:05AM John Henry wrote:
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
At 20 SEP 2000 07:35PM Pedro Richards wrote:
Hi,
Thanks John & Chis, much appreciated.
Pedro