Home » programming

MFC SetTimer示例一个

By: Zhiqiang Ma On: Jul 4, 2009 Views: 17 No Comment Print Email
Tags: ,
1)
in OnInitDialog():

UINT time_result = SetTimer(1, 50, 0);

2)
process in OnTimer(UINT nIDEvent);

3)
in OnDestroy();

KillTimer(1);

Read more:

Digg del.icio.us Stumble Techorati Facebook Newsvine Reddit Twitter
Mixx LinkedIn Google Bookmark Yahoo Bookmark MySpace LiveJournal Blogger RSS feed
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.