Implementation and Application of Multi-pointer input technology in Windows (8 Summary and continue with the discussion of MFC

Source: Internet
Author: User

Implementation and Application of Multi-pointer input technology in Windows (8 Summary and continue with the discussion of MFC)

Xie xiaoheng, Hunan University

5 Conclusions and current implementation shortcomings

This article compares Multiple mouse control input implementation methods that are commonly used abroad, analyzes the advantages and disadvantages of each method, and provides suggestions for use. Finally, we briefly introduce the sdg toolkit with the best overall performance. This article hopes to introduce the principles of the two implementation methods, a brief introduction to various implementation methods, and a brief introduction to the specific use methods of SDG toolkit, this technology can be understood and used in software related to more advantageous pointer input technologies.

However, SDG toolkit, the best implementation solution, still has many shortcomings. Currently, no solution is perfectly compatible with previous software, so that any developer has to learn this technology to use it, and must make some changes to the previous software to make good use of it. In addition, although there are already many software development solutions for Multi-pointer input, it only solves the problem of multiple mouse operations on the same software, and there is still a certain gap between the real implementation of the sdg goal, for example, there is no way for each person to use their own mouse to operate on different software at the same time, just as the split screen technology does not affect each other. Because the implementation of this technology will inevitably involve the window focus of the underlying windows, which is difficult, so I have not yet seen any real implementation. I very much hope that the software of the Multi-pointer input device will appear one day, or Microsoft will be able to fully support the input of the Multi-pointer device from the operating system level one day, so that software developers do not need to know any relevant knowledge, they can use this technology that has unique advantages in many aspects as needed. If you don't need MFC, you can stop looking at it. The following is a special example of a fellow who is struggling with MFC like me.

In addition, I personally regret that the most commonly used class library MFC does not have a good multi-mouse technology implementation, so I can only program on my own, this is very depressing, I can only find it myself, the original thesis is finished here. I added the content about MFC. I am going to Beijing today, so I don't know when to finish the content about MFC, I don't even have time to sort out my ideas... I have not slept for one night. Although I have read some of the previous sections, it is estimated that you can all implement them in the MFC, I have posted the source code of the previous two wuziqi games, for your reference, here I want to explain that the version was not very good at that time, but I also optimized the content in Chapter 2nd, that is, only update the rectangle within a certain range of the mouse movement to reduce the problem of full screen refreshing. The program hasn't moved it for a long time. In fact, even if you want to update the rectangle, you should also calculate the movement, then, it is better to update the rectangle in the moving range. At that time, I didn't think much about it as I just tested it. I just updated a self-defined range. Now, my new method is to use the similar idea in SDG toolkit to draw a transparent window with a mouse pointer as a mouse pointer. In this way, only the upper window is refreshed, that is almost the perfect way to draw the mouse pointer that I can think of. If I can find some previously written code, I will also post it.

Because I have not installed vs on my home computer, I cannot test the correctness of the existing code. I don't know if the program can compile and run properly after the relevant changes are attempted, however, both methods and ideas are still in place. The main problem is the problem of creating a top-level transparent window. I hope you can identify it yourself. Thanks. If you have time in the future, I will sort out the content about MFC and explain the source code of my program ^

I also tried to insert in MFC. net control method, hope to use SDG toolkit in MFC, but found that the actual effect is not good, because message ing will be quite troublesome, all rely on manual code, and the efficiency is obviously not as good as that of pure MFC programs. I didn't talk about this method here. Let's talk about it later.

At present, this series is here, huh, it's not so fast to read and understand it all :)

I will post a few source codes below.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.