Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: any body knows structures??? Pin
Christian Graus7-Jun-06 17:01
protectorChristian Graus7-Jun-06 17:01 
GeneralRe: any body knows structures??? Pin
bob169727-Jun-06 18:31
bob169727-Jun-06 18:31 
AnswerRe: any body knows structures??? Pin
Michael Dunn7-Jun-06 19:29
sitebuilderMichael Dunn7-Jun-06 19:29 
GeneralRe: any body knows structures??? Pin
NiceNaidu7-Jun-06 19:59
NiceNaidu7-Jun-06 19:59 
QuestionHow to enable CDialogBar always? Pin
Yusuf7-Jun-06 14:53
Yusuf7-Jun-06 14:53 
QuestionASSERT(::IsWindow(m_hWnd)); Pin
DanYELL7-Jun-06 14:01
DanYELL7-Jun-06 14:01 
AnswerRe: ASSERT(::IsWindow(m_hWnd)); [modified] Pin
bob169727-Jun-06 17:26
bob169727-Jun-06 17:26 
QuestionCallback function arguments Pin
vasanth10047-Jun-06 12:42
vasanth10047-Jun-06 12:42 
AnswerRe: Callback function arguments Pin
Cedric Moonen7-Jun-06 20:20
Cedric Moonen7-Jun-06 20:20 
GeneralRe: Callback function arguments Pin
vasanth10048-Jun-06 3:51
vasanth10048-Jun-06 3:51 
GeneralRe: Callback function arguments Pin
Cedric Moonen8-Jun-06 3:58
Cedric Moonen8-Jun-06 3:58 
GeneralRe: Callback function arguments Pin
vasanth10048-Jun-06 4:45
vasanth10048-Jun-06 4:45 
GeneralRe: Callback function arguments Pin
Cedric Moonen8-Jun-06 4:57
Cedric Moonen8-Jun-06 4:57 
QuestionRetrieve Process %CPU Usage and Thread Count Pin
Nonna147-Jun-06 11:19
Nonna147-Jun-06 11:19 
AnswerRe: Retrieve Process %CPU Usage and Thread Count Pin
Naveen7-Jun-06 17:43
Naveen7-Jun-06 17:43 
AnswerRe: Retrieve Process %CPU Usage and Thread Count Pin
ThatsAlok7-Jun-06 19:54
ThatsAlok7-Jun-06 19:54 
Questionplugin support coding in c++ project(advice please) Pin
sawerr7-Jun-06 11:14
sawerr7-Jun-06 11:14 
AnswerRe: plugin support coding in c++ project(advice please) Pin
Chris Losinger7-Jun-06 11:54
professionalChris Losinger7-Jun-06 11:54 
GeneralRe: plugin support coding in c++ project(advice please) Pin
sawerr7-Jun-06 18:00
sawerr7-Jun-06 18:00 
GeneralRe: plugin support coding in c++ project(advice please) Pin
Chris Losinger8-Jun-06 1:11
professionalChris Losinger8-Jun-06 1:11 
QuestionMFC71.dll missing export link SHLWAPI.dll:UrlUnescapeA Pin
tbrake7-Jun-06 10:23
tbrake7-Jun-06 10:23 
AnswerRe: MFC71.dll missing export link SHLWAPI.dll:UrlUnescapeA Pin
bob169727-Jun-06 19:23
bob169727-Jun-06 19:23 
QuestionRemote Desktop with UDP socket [modified] Pin
lynchspawn7-Jun-06 9:52
lynchspawn7-Jun-06 9:52 
QuestionMDI Tab and more Pin
bingshen7-Jun-06 9:49
bingshen7-Jun-06 9:49 
QuestionOnTimer() Not Being Called after timer is set up (VS C++ 6.0) Pin
bfeero7-Jun-06 9:20
bfeero7-Jun-06 9:20 
OK, here is what I have done.



I am looking to use a timer to complete some refresh operations every 2 seconds. However, I cannot get my OnTimer()function to be called.



I set up a timer with the following line of code:

SetTimer(1, 2000, 0);

Then, I have the Ontimer function, which I created from ClassWizard as a message handler for WM_TIMER.
That is, I have ON_WM_TIMER declared in my message map.

ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()


Here is my handler:

void CProbeTalkMenu::OnTimer(UINT nIDEvent)
{
m_szStatus += "*";
UpdateData();
CDialog::OnTimer(nIDEvent);
}

OnTimer() is never called. I am afraid that I am failing to do something grossly important. Can anyone explain what my problem might be?




Brett Feero

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.