Solved

Hide a SIOUX app

Posted on 2000-04-25
5
188 Views
Last Modified: 2013-12-26
Hi there,

I'd like to hide the output window of a SIOUX (better: GUSI-SIOUX) application.
Alternatively would a "minimize" (like clicking at the right button in the titlebar) be a good first solution.

Thank you in advance for every answer!
Bye - chris
0
Comment
Question by:charlass
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
munsie earned 80 total points
ID: 2749852
I can't vouch for the safety of this, but it should work...

#include <SIOUXGlobals.h>

and in your code:

HideWindow((GrafPort *) &SIOUXTextWindow->window);

Be sure to call ShowWindow() before giving up control to SIOUX again... if I didn't, SIOUX would get confused, and not allow me to quit the app.

Make sure you check the value of SIOUXTextWindow before calling HideWindow() on it... it is a pointer and it could be NULL.

good luck,
dennis
0
 
LVL 1

Author Comment

by:charlass
ID: 2750972
Adjusted points from 50 to 80
0
 
LVL 1

Author Comment

by:charlass
ID: 2750973
Hi,
thanks for your answer, but unfortunately your hint (check for NULL) was really necessary...
No idea why it is NULL - because of using GUSI? (PS: Creating a new project from scratch without GUSI doesn't work too => assume no GUSI problem)

So I was looking for sth. like EnumerateWindows(), to get the WindowPtr from a backdoor but had no success so far.

Any further ideas are highly appreciated!
chris
0
 
LVL 2

Expert Comment

by:munsie
ID: 2751101
well, it you haven't called printf() or something that causes SIOUX to create the window, then it will be NULL... you might try just calling printf("\n"); before trying to hide the window.

dennis
0
 
LVL 1

Author Comment

by:charlass
ID: 2751457
Hi Dennis,
either you are an expert or you're guessing great ;-)

The thing is: I tried some cout<<"blabla" already before my 2nd post. After your message I added the "\n" - and then it worked!
I assume the "\n" causes internally a flush() - it causes the same effect like calling cout<<"bla" + cout.flush().

Thanks for your help!
chris
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 54
C++ BOOL WINAPI ReadFile fails on windows 10 when reading from USB cable 9 516
sum28 challenge 31 117
Thin secure Windows 10 5 107
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question