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. Blinking cursor

Blinking cursor

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
5 Posts 3 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.
  • S Offline
    S Offline
    susanne1
    wrote on last edited by
    #1

    Hallo, i have SDI Application i need to get a blinking cursor when i click the Left mouse button(i have the fucntion OnLButtonUp(UINT nFlags,CPoint point) already, also i have the position where the mouse click happend, my View class is derived from CView Class. but i do not know how to darw the cursor that blinks),Please help.

    C 1 Reply Last reply
    0
    • S susanne1

      Hallo, i have SDI Application i need to get a blinking cursor when i click the Left mouse button(i have the fucntion OnLButtonUp(UINT nFlags,CPoint point) already, also i have the position where the mouse click happend, my View class is derived from CView Class. but i do not know how to darw the cursor that blinks),Please help.

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Why don't you make your view inherit from CEditView ? I remember that last week you asked a similar question and people asked you why you didn't to use a CEditView but you didn't reply. So, why do you want to complicate your life instead of using something that has support for everything you are trying to do :confused: ?

      Cédric Moonen Software developer
      Charting control [v2.0] OpenGL game tutorial in C++

      S 1 Reply Last reply
      0
      • C Cedric Moonen

        Why don't you make your view inherit from CEditView ? I remember that last week you asked a similar question and people asked you why you didn't to use a CEditView but you didn't reply. So, why do you want to complicate your life instead of using something that has support for everything you are trying to do :confused: ?

        Cédric Moonen Software developer
        Charting control [v2.0] OpenGL game tutorial in C++

        S Offline
        S Offline
        susanne1
        wrote on last edited by
        #3

        Sorry for not replaying was sick. I can not use CEditView, CRichEditView, because this is the requirments of my Boss, i would like too but it will make complicates somewhere else.

        I 1 Reply Last reply
        0
        • S susanne1

          Sorry for not replaying was sick. I can not use CEditView, CRichEditView, because this is the requirments of my Boss, i would like too but it will make complicates somewhere else.

          I Offline
          I Offline
          Iain Clarke Warrior Programmer
          wrote on last edited by
          #4

          I gave you an answer that didn't require CEditView *or* CRecordView. Is your boss a sadist? Either he's just being unreasonable, or there's a reason behind his restriction. If you tell us what that is, maybe we can help more? At the moment, we give you good solutions. You say "my boss won;t let me do that". On the impression you've given me, he won'll allow you to use the keyboard soon. Iain.

          I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

          S 1 Reply Last reply
          0
          • I Iain Clarke Warrior Programmer

            I gave you an answer that didn't require CEditView *or* CRecordView. Is your boss a sadist? Either he's just being unreasonable, or there's a reason behind his restriction. If you tell us what that is, maybe we can help more? At the moment, we give you good solutions. You say "my boss won;t let me do that". On the impression you've given me, he won'll allow you to use the keyboard soon. Iain.

            I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

            S Offline
            S Offline
            susanne1
            wrote on last edited by
            #5

            The reason that in the Output view will be alot of output lines over 40000 lines and the a view derived from CEditView or CRichEditView will not give it on the screen like it should without using a very complicated code, so i am must use a view derived from CView. I used CreateCaret and ShowCaret() but they did not solve the problem.

            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