Solved

Delphi Programming question

Posted on 1997-09-11
1
159 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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
Delphi Form ownership 4 110
Downloading email attachments 2 79
Delphi IDE crash without error message ... 7 99
how to make 2 step back? ..\..\ ExtractFilePath (paramstr(0)) 5 48
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 my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

791 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