Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Reliable way to kill a Dialog Based Application

$
0
0

I have a dialog based application that sends keystrokes to another application. I want to be able to kill the execution of this keystroke sending function very easily. In the ideal case I think that I want to kill it by hitting the escape key once.

The method that I tried was to get a key obtained from the overridden PreTranslateMessage to set an application variable from zero to one. I then check this variable in the keystroke loop. If the variable is set, I simply return from the function containing this loop. I am not sure why this is not working.


100% Accurate Display Screen OCR http://www.OCR4Screen.com


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>