mfc对话框两个定时器SetTimer(0,10,NULL);SetTimer(1,10,NULL);是同时响应两个case还是一个个响应
答案:2 悬赏:70
解决时间 2021-11-26 10:26
- 提问者网友:不懂我就别说我变
- 2021-11-25 10:13
mfc对话框两个定时器SetTimer(0,10,NULL);SetTimer(1,10,NULL);是同时响应两个case还是一个个响应
最佳答案
- 二级知识专家网友:猖狂的痴情人
- 2021-11-25 10:59
当然是 一个一个的 消息 进消息队列,排队等待 窗口过程处理
WM_TIMER
The WM_TIMER message is posted to the installing thread's message
queue when a timer expires. The message is posted by the GetMessage or PeekMessage function.
A window receives this message through its WindowProc function.
LRESULT CALLBACK WindowProc(
HWND hwnd, // handle to window
UINT uMsg, // WM_TIMER
WPARAM wParam, // timer identifier -----------------都是WM_TIMER消息通过wParam区分
LPARAM lParam // timer callback (TIMERPROC)
);
WM_TIMER
The WM_TIMER message is posted to the installing thread's message
queue when a timer expires. The message is posted by the GetMessage or PeekMessage function.
A window receives this message through its WindowProc function.
LRESULT CALLBACK WindowProc(
HWND hwnd, // handle to window
UINT uMsg, // WM_TIMER
WPARAM wParam, // timer identifier -----------------都是WM_TIMER消息通过wParam区分
LPARAM lParam // timer callback (TIMERPROC)
);
全部回答
- 1楼网友:单身小柠`猫♡
- 2021-11-25 12:36
你的输入框有没有定义变量? 第一次要获取输入框里面数据用updatedata(true)
代码拿出来看看
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
• 手机登qq时,显示手机磁盘不足,清理后重新登 |
• 刺客的套装怎么选啊? |