MoeRahn
April 20th, 1999, 10:44 AM
I have been working on a simple timer for my first delve into VC++ and the MFC. My choice to start with a timer was based on the needs of a co-worker - she's taking a typing class and needs a timer that 1) gives a 5-second countdown for her to get her hands in place, and 2) remains on top, so she can see the clock as she's typing into WP on her 640x480 display.
The timer itself works ( binary & code: http://www.ci.saint-paul.mn.us/webmaster/pete/timer042099.tgz ), but I can't seem to pop open a 'Set Time' dialog box. Basically, when the 'set' button is pressed on the main dialog window, I need a new dialog box to appear, and the previous dialog box to waitpid or whatever for the return from the Set Time dialog.
I've tried creating the 2nd dialog in the main app, and setting it hidden - didn't like that. I tried creating the 2nd dialog when the 'Set' button is pressed - doesn't have the right access to call it there.
If anyone has any ideas of how to pull this off, I'd love to hear them.
The Software said "Windows 95 or Better",
So I installed Linux
The timer itself works ( binary & code: http://www.ci.saint-paul.mn.us/webmaster/pete/timer042099.tgz ), but I can't seem to pop open a 'Set Time' dialog box. Basically, when the 'set' button is pressed on the main dialog window, I need a new dialog box to appear, and the previous dialog box to waitpid or whatever for the return from the Set Time dialog.
I've tried creating the 2nd dialog in the main app, and setting it hidden - didn't like that. I tried creating the 2nd dialog when the 'Set' button is pressed - doesn't have the right access to call it there.
If anyone has any ideas of how to pull this off, I'd love to hear them.
The Software said "Windows 95 or Better",
So I installed Linux