求延时函数,延时精确到毫秒级别,又不会让界面卡住如题,既要延时精确到ms级别,又不会让程序界面像挂起一样不能操作。。不用定时器,也不用线程。[解决办法]void Delay(int n){MSG msg;while(PeekMessage(&msg,(HWND)NULL,0,0,PM_REMOVE)){TranslateMessage(&msg);DispatchMessage(&msg);}Sleep(n);}