There is a slight difference below 2K and XP? ! [February 26, 2004 11:33]

zhaozj2021-02-16  57

Call in a message loop

GetMessage (& MSG, NULL, 0, 0);

This function, the greed is convenient, even the MSDN has not seen it, it has been taken from someone else's code.

The original code is like this

For (j = 0; j

Because I started using Timer to prevent constant calls of Timer> IF ((Bret = GetMessage (& MSG, NULL, 0, 0))! = 0)

.......

Else

Return;

No need to add any messages below XP, it seems to be easy to return

Today, in the company 's 2000, it is necessary to constantly give the news, such as mouse movement, etc., to return it. Check MSDN, getMessage is a BOOL type, is it a problem with IF judgment.

Is there such a subtle difference in 2000 and XP? Or is there any way to test the environment.

Of course, if (getMessage) is a certain change, it seems that you can't believe in the code of others.

Related resources: with sound access new year fireworks animation effects - html-code

转载请注明原文地址:https://www.9cbs.com/read-17224.html

New Post(0)