Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
When the dialog is created I use CWnd::SetTimer(0, 60000, NULL); and then I catch it with:

void CNewNotifyDlg::OnTimer(UINT nIDEvent) <br />
{<br />
// TODO: Add your message handler code here and/or call default<br />
OnRefresh();<br />
<br />
CWnd::SetTimer(0, 60000, NULL);<br />
	<br />
CDialog::OnTimer(nIDEvent);<br />
}


OnRefresh() is my function to do my calculations and see if I should notify the user. I want this to run in the background, minimized the majority of the time, and then, if my app's logic dictates, I notify with AfxMessageBox("Hey, wake up!");

I didn't actually see the AfxMessageBox until I maximized the dialog (after I was informed that I had forgotten to do something in the office within a certain amount of time, Arrggh! Smile | :) ).

Danny
GeneralRe: Keep the program evaluating... even when minimized Pin
-Dy14-Sep-05 12:26
-Dy14-Sep-05 12:26 
GeneralRe: Keep the program evaluating... even when minimized Pin
S Douglas15-Sep-05 0:42
professionalS Douglas15-Sep-05 0:42 
QuestionCString format and numbers Pin
mcgahanfl14-Sep-05 9:08
mcgahanfl14-Sep-05 9:08 
AnswerRe: CString format and numbers Pin
Alexander M.,14-Sep-05 9:12
Alexander M.,14-Sep-05 9:12 
AnswerRe: CString format and numbers Pin
bugDanny14-Sep-05 9:20
bugDanny14-Sep-05 9:20 
AnswerRe: CString format and numbers Pin
David Crow14-Sep-05 9:28
David Crow14-Sep-05 9:28 
GeneralRe: CString format and numbers Pin
mcgahanfl14-Sep-05 10:23
mcgahanfl14-Sep-05 10:23 
QuestionProblem with windows hook and window classes Pin
Alexander M.,14-Sep-05 8:07
Alexander M.,14-Sep-05 8:07 
QuestionCreating a Bitmap (with a palette) from Data Pin
Nick Usechak14-Sep-05 6:44
Nick Usechak14-Sep-05 6:44 
AnswerClarification Pin
Nick Usechak14-Sep-05 6:51
Nick Usechak14-Sep-05 6:51 
AnswerRe: Creating a Bitmap (with a palette) from Data Pin
Chris Losinger14-Sep-05 7:27
professionalChris Losinger14-Sep-05 7:27 
GeneralRe: Creating a Bitmap (with a palette) from Data Pin
Nick Usechak14-Sep-05 9:49
Nick Usechak14-Sep-05 9:49 
GeneralRe: Creating a Bitmap (with a palette) from Data Pin
Chris Losinger14-Sep-05 9:53
professionalChris Losinger14-Sep-05 9:53 
GeneralRe: Creating a Bitmap (with a palette) from Data Pin
Nick Usechak14-Sep-05 13:14
Nick Usechak14-Sep-05 13:14 
AnswerRe: Creating a Bitmap (with a palette) from Data Pin
Mircea Puiu14-Sep-05 7:35
Mircea Puiu14-Sep-05 7:35 
AnswerRe: Creating a Bitmap (with a palette) from Data Pin
normanS14-Sep-05 19:41
normanS14-Sep-05 19:41 
QuestionWin32 Api CreateProcess( ) &lt;-- Making me crazy Pin
Nitefall206014-Sep-05 5:51
Nitefall206014-Sep-05 5:51 

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.