Click here to Skip to main content
15,910,878 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: File checking Pin
ThatsAlok14-Sep-05 18:39
ThatsAlok14-Sep-05 18:39 
Questionsimulating keyboard input with SetKeyboardState Pin
Spiritofamerica14-Sep-05 14:14
Spiritofamerica14-Sep-05 14:14 
AnswerRe: simulating keyboard input with SetKeyboardState Pin
ThatsAlok14-Sep-05 18:29
ThatsAlok14-Sep-05 18:29 
GeneralRe: simulating keyboard input with SetKeyboardState Pin
Spiritofamerica15-Sep-05 6:06
Spiritofamerica15-Sep-05 6:06 
QuestionWin 32 error 87, the parameter is incorrect Pin
valerie9914-Sep-05 11:59
valerie9914-Sep-05 11:59 
QuestionActiveX and Windows C++ Pin
ashok12314-Sep-05 11:25
ashok12314-Sep-05 11:25 
AnswerRe: ActiveX and Windows C++ Pin
charlieg14-Sep-05 12:12
charlieg14-Sep-05 12:12 
AnswerRe: ActiveX and Windows C++ Pin
Calc2014-Sep-05 21:48
Calc2014-Sep-05 21:48 
Questionpassing string from VB6 dll function to VC++6 Pin
Member 227578514-Sep-05 10:17
Member 227578514-Sep-05 10:17 
AnswerRe: passing string from VB6 dll function to VC++6 Pin
David Crow14-Sep-05 10:35
David Crow14-Sep-05 10:35 
AnswerRe: passing string from VB6 dll function to VC++6 Pin
ky_rerun14-Sep-05 15:46
ky_rerun14-Sep-05 15:46 
AnswerRe: passing string from VB6 dll function to VC++6 Pin
S Douglas14-Sep-05 20:27
professionalS Douglas14-Sep-05 20:27 
Questionapp runs on command prompt but not dev studio Pin
valerie9914-Sep-05 9:46
valerie9914-Sep-05 9:46 
AnswerRe: app runs on command prompt but not dev studio Pin
David Crow14-Sep-05 10:19
David Crow14-Sep-05 10:19 
GeneralI've tried to command them out Pin
valerie9914-Sep-05 11:28
valerie9914-Sep-05 11:28 
Questionhelp Pin
Shantise200314-Sep-05 9:24
Shantise200314-Sep-05 9:24 
AnswerRe: help Pin
Christian Graus14-Sep-05 11:17
protectorChristian Graus14-Sep-05 11:17 
AnswerRe: help Pin
charlieg14-Sep-05 11:57
charlieg14-Sep-05 11:57 
AnswerRe: help Pin
ThatsAlok14-Sep-05 18:27
ThatsAlok14-Sep-05 18:27 
GeneralRe: help Pin
normanS14-Sep-05 19:31
normanS14-Sep-05 19:31 
QuestionKeep the program evaluating... even when minimized Pin
bugDanny14-Sep-05 9:17
bugDanny14-Sep-05 9:17 
AnswerRe: Keep the program evaluating... even when minimized Pin
-Dy14-Sep-05 9:27
-Dy14-Sep-05 9:27 
AnswerRe: Keep the program evaluating... even when minimized Pin
bugDanny14-Sep-05 10:31
bugDanny14-Sep-05 10:31 
GeneralRe: Keep the program evaluating... even when minimized Pin
-Dy14-Sep-05 12:26
-Dy14-Sep-05 12:26 
bugDanny wrote:
I didn't actually see the AfxMessageBox

Your timer is being called. Try turning your speakers on - you should hear a beep with each message box each time the timer is executed. The message box however, is in the foregound of your app, and your app is minimised - so you don't see it. (Your data file is still being written out right?)

You could do this:

if (IsIconic())<br />
{<br />
    ShowWindow(SW_RESTORE);<br />
}<br />


in your timer, it will restore your dialog. Personally I don't think it's good form to be bringing windows up in front of the user like that, I'd rather minimise to the system tray and maybe use a balloon tooltip as a notification. You might want to have a look around this site for examples of that.

Again, should you be new to this... you don't need to call CWnd::SetTimer(0, 60000, NULL); in your OnTimer (and you don't need the CWnd:: bit in the first SetTimer call...)


-Dy
GeneralRe: Keep the program evaluating... even when minimized Pin
S Douglas15-Sep-05 0:42
professionalS Douglas15-Sep-05 0:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.