Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionfrom vc2005 to vc 2003 porting Pin
OAKmaden17-Jan-07 12:41
OAKmaden17-Jan-07 12:41 
AnswerRe: from vc2005 to vc 2003 porting Pin
Hamid_RT17-Jan-07 18:57
Hamid_RT17-Jan-07 18:57 
QuestionMSDN Pin
Waldermort17-Jan-07 10:16
Waldermort17-Jan-07 10:16 
AnswerRe: MSDN Pin
Mark Salsbery17-Jan-07 11:10
Mark Salsbery17-Jan-07 11:10 
QuestionHook Print Dialog in Word Pin
pgibson00770017-Jan-07 8:17
pgibson00770017-Jan-07 8:17 
QuestionTimer event in MFC Pin
suresh000917-Jan-07 7:31
suresh000917-Jan-07 7:31 
QuestionRe: Timer event in MFC Pin
Mark Salsbery17-Jan-07 7:44
Mark Salsbery17-Jan-07 7:44 
AnswerRe: Timer event in MFC Pin
suresh000917-Jan-07 8:13
suresh000917-Jan-07 8:13 
Hi Mark,

There is a ON_WM_TIMER entry in the message maps section.

The program dose a normal exit as there is no other code after settimer.

I tried to remove the 00's and made the timer interval to 100 but the program exits instead of waiting for the timer event.

I am posting the entire code .

<br />
BEGIN_MESSAGE_MAP(wind,CFrameWnd)<br />
<br />
	ON_WM_CREATE()<br />
	ON_WM_TIMER()<br />
<br />
END_MESSAGE_MAP()<br />
<br />
wind::OnCreate(LPCREATESTRUCT lpCreateStruct)<br />
{<br />
  SetTimer(test,1000,NULL);	<br />
}<br />
<br />
wind::OnTimer(UINT te)<br />
{<br />
  AfxMessageBox("Timer",MB_OK,NULL);<br />
}<br />


thanks,
suresh
QuestionRe: Timer event in MFC Pin
David Crow17-Jan-07 8:18
David Crow17-Jan-07 8:18 
AnswerRe: Timer event in MFC Pin
suresh000917-Jan-07 8:25
suresh000917-Jan-07 8:25 
GeneralRe: Timer event in MFC Pin
CPallini17-Jan-07 8:21
mveCPallini17-Jan-07 8:21 
AnswerRe: Timer event in MFC Pin
suresh000917-Jan-07 8:20
suresh000917-Jan-07 8:20 
AnswerRe: Timer event in MFC Pin
suresh000917-Jan-07 8:28
suresh000917-Jan-07 8:28 
QuestionRe: Timer event in MFC Pin
CPallini17-Jan-07 8:15
mveCPallini17-Jan-07 8:15 
AnswerRe: Timer event in MFC Pin
suresh000917-Jan-07 8:26
suresh000917-Jan-07 8:26 
GeneralRe: Timer event in MFC Pin
Mark Salsbery17-Jan-07 8:42
Mark Salsbery17-Jan-07 8:42 
AnswerRe: Timer event in MFC Pin
#realJSOP17-Jan-07 11:36
mve#realJSOP17-Jan-07 11:36 
QuestionMy own List Control in MFC doesn't respons conrrectly to the keyboard Pin
Chibi Maruko S17-Jan-07 7:04
Chibi Maruko S17-Jan-07 7:04 
QuestionVS2005 MFC app and XP themes [modified] Pin
Ravi Bhavnani17-Jan-07 6:02
professionalRavi Bhavnani17-Jan-07 6:02 
AnswerRe: VS2005 MFC app and XP themes Pin
krmed17-Jan-07 9:48
krmed17-Jan-07 9:48 
GeneralRe: VS2005 MFC app and XP themes Pin
Ravi Bhavnani17-Jan-07 9:53
professionalRavi Bhavnani17-Jan-07 9:53 
QuestionNewbie - Memory sharing in COM Pin
jayart17-Jan-07 5:44
jayart17-Jan-07 5:44 
AnswerRe: Newbie - Memory sharing in COM Pin
led mike17-Jan-07 5:53
led mike17-Jan-07 5:53 
GeneralRe: Newbie - Memory sharing in COM Pin
jayart17-Jan-07 6:00
jayart17-Jan-07 6:00 
GeneralRe: Newbie - Memory sharing in COM Pin
led mike17-Jan-07 6:23
led mike17-Jan-07 6:23 

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.