Solved

Delphi Programming question

Posted on 1997-09-11
1
155 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi 10 Seattle Dataset Actions 5 79
Virtualstringtree carsh after invalidate for while 5 87
Internet Explorer View Settings Question 15 107
FMX enumerated colours 2 84
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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now