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. Cursor freeze in rich edit control

Cursor freeze in rich edit control

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

    I have a CRichEditCtrl derived object which resizes itself whenever the size of text inside it exceeds the control size. This control is a child of CWnd derived object and I am resizing using MoveWindow. THe problem is whenever I resize the window, cursor stops blinking. i can still type the text and it is displayed in the control but the cursor remains static and does not blink. what can be the reason for this? I tried forcing SetCapture in PreTranslateMessage but nothing seems to work. :sigh:

    C 1 Reply Last reply
    0
    • T theCPkid

      I have a CRichEditCtrl derived object which resizes itself whenever the size of text inside it exceeds the control size. This control is a child of CWnd derived object and I am resizing using MoveWindow. THe problem is whenever I resize the window, cursor stops blinking. i can still type the text and it is displayed in the control but the cursor remains static and does not blink. what can be the reason for this? I tried forcing SetCapture in PreTranslateMessage but nothing seems to work. :sigh:

      C Offline
      C Offline
      Code o mat
      wrote on last edited by
      #2

      Maybe try moving the cursor with CRichEditCtrl::SetSel[^] (you could use GetSel to determine where the cursor should be maybe)

      > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <

      T 1 Reply Last reply
      0
      • C Code o mat

        Maybe try moving the cursor with CRichEditCtrl::SetSel[^] (you could use GetSel to determine where the cursor should be maybe)

        > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <

        T Offline
        T Offline
        theCPkid
        wrote on last edited by
        #3

        After two disappointing days, the problem was found to be with parent window CWnd object. making rich edit control a child of cdialog works correctly. :zzz: anyway, thanks for the reply.

        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