Easy VC timer (timer)

Source: Internet
Author: User

Easy VC timer (timer)

You can use a timer to process a function at a specified time.

The method is as follows:
1. Select "Class View" In workspace, right-click * DLG, and select "add windows messge handler" in the menu"
2. In the pop-up dialog box, double-click wm_timer to add it to the list in the upper-right corner.
3. Double-click wm_timer in the upper-right list to add your own processing code.
4 Add settimer (, null) Where timer is needed)
5. Use killtimer () to stop the timer where it is not needed.

Okay. It will be okay if you have these steps. Just add some information about settimer.
The settimer () function has three parameters.
The first is the uint (unsigned integer) used to identify the timer to be used in killtimer ().
The second is the time when the timer is triggered.
Set the third parameter to null.
Timer is over! Haha

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.