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

C / C++ / MFC

 
GeneralRe: T h r e a d s a r e t h r e a d i n g ! ! Pin
Sreekanth Muralidharan29-Jun-05 19:59
Sreekanth Muralidharan29-Jun-05 19:59 
GeneralRe: T h r e a d s a r e t h r e a d i n g ! ! Pin
ThatsAlok29-Jun-05 20:33
ThatsAlok29-Jun-05 20:33 
GeneralRe: T h r e a d s a r e t h r e a d i n g ! ! Pin
Cedric Moonen27-Jun-05 0:00
Cedric Moonen27-Jun-05 0:00 
GeneralRe: T h r e a d s a r e t h r e a d i n g ! ! Pin
Sreekanth Muralidharan28-Jun-05 20:29
Sreekanth Muralidharan28-Jun-05 20:29 
Generala problem about showing tooltips of the toolbar Pin
benben26-Jun-05 23:16
benben26-Jun-05 23:16 
GeneralRe: a problem about showing tooltips of the toolbar Pin
Rage27-Jun-05 1:16
professionalRage27-Jun-05 1:16 
GeneralRe: Thank your very much! Pin
benben27-Jun-05 19:01
benben27-Jun-05 19:01 
GeneralON_WM_TIMER Pin
bartvandiepen26-Jun-05 23:14
bartvandiepen26-Jun-05 23:14 
Hey guys,

I'm absolutely not a experienced programmer but i have a problem, i will be happy someone can help me.

I have a dialog class CSimulator with a number of timers:

//part of the XXXXX.h file ****************************************************
class CSimulator : public CDialog
{
DECLARE_DYNAMIC(CSimulator)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support

DECLARE_MESSAGE_MAP()
...
...
...
public:
virtual BOOL OnInitDialog();
void OnTimer(UINT nIDEvent);


//part of the XXXX.cpp file ****************************************************
IMPLEMENT_DYNAMIC(CSimulator , CDialog)

void CSimulator::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);

}

BEGIN_MESSAGE_MAP(CSimulator, CDialog)
ON_WM_TIMER()
...
...
END_MESSAGE_MAP()


void CSimulator::OnTimer(UINT nIDEvent)
{
...
...
...
CDialog::OnTimer(nIDEvent);
}



When i start the class CSimulator from another class (CWnd) with DoModal() everything is working fine Smile | :) and the function CSimulator::OnTimer(UINT nIDEvent) is called after setting a timer with SetTimer(IDTIMER,50,0);

But Sniff | :^) when i start the class CSimulator from another class (CWnd) with m_Simulator.Create(IDD_SIMULATION_DIALOG); (m_Simulator is the instance of class CSimulator)
i have a problem. In this situation i don't receive the ON_WM_TIMER message Confused | :confused: .

Note: At another situation i need the class CSimulator (CDialog) showed in a window, but in this situation i only need the algorithm of the class, only modeless

What i'm doing wrong? I search a lot, but don't see the problem, can anyone help me?
Big Grin | :-D Thanks, Bart
GeneralRe: ON_WM_TIMER Pin
S. Senthil Kumar26-Jun-05 23:54
S. Senthil Kumar26-Jun-05 23:54 
GeneralRe: ON_WM_TIMER Pin
bartvandiepen27-Jun-05 2:46
bartvandiepen27-Jun-05 2:46 
GeneralRe: ON_WM_TIMER Pin
FlyingTinman27-Jun-05 14:07
FlyingTinman27-Jun-05 14:07 
Questiondoes BHO have max memory limit? Pin
petevam26-Jun-05 23:04
petevam26-Jun-05 23:04 
GeneralEditing flexgrid Pin
emmatty26-Jun-05 22:27
emmatty26-Jun-05 22:27 
GeneralRe: Editing flexgrid Pin
erkanina28-Jun-05 2:11
erkanina28-Jun-05 2:11 
GeneralHey Guys Its me Psycho the Newbie again *DOH* Pin
Psych0hans26-Jun-05 22:04
Psych0hans26-Jun-05 22:04 
GeneralRe: Hey Guys Its me Psycho the Newbie again *DOH* Pin
One Stone26-Jun-05 22:06
One Stone26-Jun-05 22:06 
GeneralRe: Hey Guys Its me Psycho the Newbie again *DOH* Pin
Psych0hans26-Jun-05 22:11
Psych0hans26-Jun-05 22:11 
GeneralRe: Hey Guys Its me Psycho the Newbie again *DOH* Pin
Rahim Rattani26-Jun-05 22:13
Rahim Rattani26-Jun-05 22:13 
GeneralProblem with dialogs and windows themes Pin
Mathefreak26-Jun-05 21:27
Mathefreak26-Jun-05 21:27 
QuestionHow to copy ONLY the updated data from a large file? Pin
jahfer26-Jun-05 21:27
jahfer26-Jun-05 21:27 
AnswerRe: How to copy ONLY the updated data from a large file? Pin
khan++27-Jun-05 1:29
khan++27-Jun-05 1:29 
GeneralRe: How to copy ONLY the updated data from a large file? Pin
jahfer27-Jun-05 2:19
jahfer27-Jun-05 2:19 
GeneralRe: How to copy ONLY the updated data from a large file? Pin
khan++27-Jun-05 2:59
khan++27-Jun-05 2:59 
AnswerRe: How to copy ONLY the updated data from a large file? Pin
John M. Drescher1-Jul-05 8:00
John M. Drescher1-Jul-05 8:00 
GeneralImage Transformation Pin
ThatsAlok26-Jun-05 20:12
ThatsAlok26-Jun-05 20:12 

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.