摘要: 如何在没有窗口的线程环境使用SetTimer()函数关键点:消息循环(GetMessage,DispatchMessage)必须和setTImer函数在同一个线程中。#include <iostream>#include <stdio.h>#include <windows.h>#define IDT_TIMER 100void CALLBACK TimerProc(HWND hwnd,UINT uMsg,UINT_PTR idEvent,DWORD dwTime){ SYSTEMTIME st; GetLocalTime(&st); printf( 阅读全文
posted @ 2012-04-19 17:09 likebeta 阅读(1959) 评论(0) 推荐(0)