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