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. About Cursor Blinking : Plz Help

About Cursor Blinking : Plz Help

Scheduled Pinned Locked Moved C / C++ / MFC
help
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.
  • P Offline
    P Offline
    parims
    wrote on last edited by
    #1

    I developed one Schduler application , In which I used OnTimer() function to popup the messages to a particular given time. Cursor is blinking when the application is running. When I move the cursor on to appli it is blinking . Plz Give Solution very Urgently. Praveen Chowdam Kumar

    N 1 Reply Last reply
    0
    • P parims

      I developed one Schduler application , In which I used OnTimer() function to popup the messages to a particular given time. Cursor is blinking when the application is running. When I move the cursor on to appli it is blinking . Plz Give Solution very Urgently. Praveen Chowdam Kumar

      N Offline
      N Offline
      Nishad S
      wrote on last edited by
      #2

      Can you show code of OnTimer and OnPaint with details?

      P 1 Reply Last reply
      0
      • N Nishad S

        Can you show code of OnTimer and OnPaint with details?

        P Offline
        P Offline
        parims
        wrote on last edited by
        #3

        n CString sql,sDate; /*CString sDriver = "MICROSOFT ACCESS DRIVER (*.mdb)"; CMyTabExampleApp *pApp = (CMyTabExampleApp *)AfxGetApp(); */ CDatabase db; db.OpenEx("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\mydabase.mdb;DSN=MyDsnName",CDatabase::noOdbcDialog); CRecordset recset( &db); CTime t; CTime s=t.GetCurrentTime(); CString strDate,strTime; strDate.Format("%d-%d-%d",s.GetDay(),s.GetMonth(),s.GetYear()); strTime.Format("%d:%d:%d",s.GetHour(),s.GetMinute(),s.GetSecond()); sql = "select TaskType, TaskDetails, StartDate,SnoozeTime from mytable where StartDate ='"+strDate+"' and SnoozeTime = '"+strTime+"'"; recset.Open(CRecordset::forwardOnly,sql,CRecordset::dynaset); //MessageBox("READING DB"); CString tasktype,taskdetails; while(!recset.IsEOF()) { recset.GetFieldValue("TaskType",tasktype); recset.GetFieldValue("TaskDetails",taskdetails); recset.MoveNext(); MessageBox(tasktype + "\n\n"+ taskdetails); if(tasktype=="APPLICATION") { CSnoozeAppli objappli; objappli.sTaskDetails = taskdetails; objappli.DoModal (); } else { CSnoozeMsg dlg; dlg.sTaskDetails =taskdetails; dlg.DoModal(); } } db.Close(); SetTimer(100,1000,NULL); CDialog::OnTimer(nIDEvent); Praveen

        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