Solved

Delphi Programming question

Posted on 1997-09-11
1
160 Views
Last Modified: 2010-04-04
I would like to now how to close win95, when the user closes/exits my delphi program.
0
Comment
Question by:LPD
1 Comment
 

Accepted Solution

by:
seitza earned 20 total points
ID: 1344693
There are a few ways to do this.  
In your exit routine handler, you could post a message to the Program Manager, to close Win 95.
1.  First obtain a handle to the Program Manager Window - several ways of doing this.  For 50 points, I won't bore you with the details.
2.  Do either
     a) PostMessage(TheWindow, $10,0,0); where TheWindow is the handle obtained in 1.
    b) use one of the many 'Sendkeys' functions to send the keystroke
         Alt-<F4> to the Program Manager Window
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

685 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