반응형 SetTimer2 [개발/MFC] WM_TIMER 예제 [MFC] WM_TIMER 예제 // Message Map BEGIN_MESSAGE_MAP(CDlgDlg, CDialog) ... ON_WM_TIMER() END_MESSAGE_MAP()...// Timer ID constants. const UINT ID_TIMER_ONE = 0x1001; const UINT ID_TIMER_TWO = 0x1000;// Start the timers. void CDlgDlg::StartTimer() { // Set timer for Minutes. SetTimer( ID_TIMER_ONE, 60 * 1000, 0 ); // Set timer for Seconds. SetTimer( ID_TIMER_TWO, 1000, 0 ); }// Stop the timers. voi.. 2012. 5. 2. [개발/MFC] WM_TIMER 예제 [MFC] WM_TIMER 예제 // Message Map BEGIN_MESSAGE_MAP(CDlgDlg, CDialog) ... ON_WM_TIMER() END_MESSAGE_MAP() ... // Timer ID constants. const UINT ID_TIMER_ONE = 0x1001; const UINT ID_TIMER_TWO = 0x1000; // Start the timers. void CDlgDlg::StartTimer() { // Set timer for Minutes. SetTimer( ID_TIMER_ONE, 60 * 1000, 0 ); // Set timer for Seconds. SetTimer( ID_TIMER_TWO, 1000, 0 ); } // Stop the timers... 2011. 3. 23. 이전 1 다음 반응형