Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need help about fromatting XML using XSL in memory Pin
figer13-Apr-06 22:40
figer13-Apr-06 22:40 
QuestionCListBox LBN_SELCHANGE Pin
DanYELL12-Apr-06 16:58
DanYELL12-Apr-06 16:58 
AnswerRe: CListBox LBN_SELCHANGE Pin
Laxman Auti12-Apr-06 17:51
Laxman Auti12-Apr-06 17:51 
Question[Message Deleted] Pin
chasetoys12-Apr-06 15:23
chasetoys12-Apr-06 15:23 
AnswerRe: hosting mshtml overwrites WM_ events... Pin
Ryan Binns12-Apr-06 16:18
Ryan Binns12-Apr-06 16:18 
GeneralRe: hosting mshtml overwrites WM_ events... Pin
chasetoys12-Apr-06 17:11
chasetoys12-Apr-06 17:11 
GeneralRe: hosting mshtml overwrites WM_ events... Pin
Ryan Binns12-Apr-06 19:40
Ryan Binns12-Apr-06 19:40 
GeneralRe: hosting mshtml overwrites WM_ events... Pin
chasetoys12-Apr-06 23:41
chasetoys12-Apr-06 23:41 
GeneralRe: hosting mshtml overwrites WM_ events... Pin
Ryan Binns12-Apr-06 23:53
Ryan Binns12-Apr-06 23:53 
GeneralRe: hosting mshtml overwrites WM_ events... Pin
chasetoys13-Apr-06 8:54
chasetoys13-Apr-06 8:54 
GeneralRe: hosting mshtml overwrites WM_ events... Pin
Ryan Binns13-Apr-06 14:03
Ryan Binns13-Apr-06 14:03 
AnswerRe: hosting mshtml overwrites WM_ events... Pin
Stephen Hewitt12-Apr-06 18:43
Stephen Hewitt12-Apr-06 18:43 
GeneralRe: hosting mshtml overwrites WM_ events... Pin
chasetoys12-Apr-06 19:23
chasetoys12-Apr-06 19:23 
QuestionCompile Error Help - I'm stuck Pin
gmhanna12-Apr-06 14:51
gmhanna12-Apr-06 14:51 
AnswerRe: Compile Error Help - I'm stuck Pin
Michael Dunn12-Apr-06 15:14
sitebuilderMichael Dunn12-Apr-06 15:14 
GeneralRe: Compile Error Help - I'm stuck Pin
Stephen Hewitt12-Apr-06 15:56
Stephen Hewitt12-Apr-06 15:56 
GeneralRe: Compile Error Help - I'm stuck Pin
gmhanna13-Apr-06 3:02
gmhanna13-Apr-06 3:02 
GeneralRe: Compile Error Help - I'm stuck Pin
gmhanna13-Apr-06 3:11
gmhanna13-Apr-06 3:11 
QuestionUnused member functions Pin
mkuhac12-Apr-06 14:45
mkuhac12-Apr-06 14:45 
QuestionProject Settings Pin
ankita patel12-Apr-06 14:42
ankita patel12-Apr-06 14:42 
AnswerRe: Project Settings Pin
Michael Dunn12-Apr-06 15:16
sitebuilderMichael Dunn12-Apr-06 15:16 
GeneralRe: Project Settings Pin
ankita patel12-Apr-06 15:29
ankita patel12-Apr-06 15:29 
QuestionVideo Files Pin
Raz71612-Apr-06 14:10
Raz71612-Apr-06 14:10 
AnswerRe: Video Files Pin
Raz71613-Apr-06 11:57
Raz71613-Apr-06 11:57 
QuestionImplementing a Timer Pin
murali197312-Apr-06 14:04
murali197312-Apr-06 14:04 
Hello,

I need to implement a timer in my application. Upon receipt of a message, the application needs to wait for a specified period of time informing the end user and then continue. So I implemented the timer with setTimer() and processes the WM_TIMER message, updating the dialog for the user. When the speicified timer interval has expired, I issue killTimer(with Id) and close the dialog.

To test this from my CNotifyTimerApp::InitInstance(), I send a message like this:

AfxGetMainWnd()->SendMessage(...);

// Just to see when this gets displayed
MessageBox("After sending message");

to the mainframe class which will do as mentioned above. It seems that after SendMessage(...), immediately the MessageBox appears.

This is not what I want. When the dialog is displayed to the user with the timer counting down information, I don't want the applicatino to continue untill the time has expired. From the above, I think that SendMessage returns immediately and is executing the next instruction!

Can someone help me with this? Is there a better way of achieving this?

Thankyou,
Murali




Murali

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.