CListCtrl::OnTimer()
-
Hi all, I have a customized ListCtrl, and Called SetTimer() but OnTimer() handler will execute only once.. And I does not called any KillTimer(), My OnTimer is Like this
void ListCtrlEx::OnTimer( UINT nIDEvent_i ) { if( 100 == nIDEvent_i ) { // Do some thing } CListCtrl::OnTimer( nIDEvent_i ); } // My set timer is in MouseMove // If mouse butto is pressed SetTimer( 100, 300, 0 );
Any possible reason for the same Regards, Radhakrishnan G. -
Hi all, I have a customized ListCtrl, and Called SetTimer() but OnTimer() handler will execute only once.. And I does not called any KillTimer(), My OnTimer is Like this
void ListCtrlEx::OnTimer( UINT nIDEvent_i ) { if( 100 == nIDEvent_i ) { // Do some thing } CListCtrl::OnTimer( nIDEvent_i ); } // My set timer is in MouseMove // If mouse butto is pressed SetTimer( 100, 300, 0 );
Any possible reason for the same Regards, Radhakrishnan G.Don't called default OnTimer of CListCtrl, for your timer ID. void ListCtrlEx::OnTimer( UINT nIDEvent_i ) { if( 100 == nIDEvent_i ) { // Do some thing } else { CListCtrl::OnTimer( nIDEvent_i ); } }
Parag Patel Sr. Software Eng, Varaha Systems
-
Don't called default OnTimer of CListCtrl, for your timer ID. void ListCtrlEx::OnTimer( UINT nIDEvent_i ) { if( 100 == nIDEvent_i ) { // Do some thing } else { CListCtrl::OnTimer( nIDEvent_i ); } }
Parag Patel Sr. Software Eng, Varaha Systems
Yes, Its working Actually I made a mistake.. Thanks Please find my 5 Votes.