Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CListCtrl::OnTimer()

CListCtrl::OnTimer()

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Radhakrishnan G
    wrote on last edited by
    #1

    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.

    P 1 Reply Last reply
    0
    • R 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.

      P Offline
      P Offline
      ParagPatel
      wrote on last edited by
      #2

      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

      R 1 Reply Last reply
      0
      • P ParagPatel

        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

        R Offline
        R Offline
        Radhakrishnan G
        wrote on last edited by
        #3

        Yes, Its working Actually I made a mistake.. Thanks Please find my 5 Votes.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups