CEditPane not refreshing |
Post Reply |
Author | |
madriceg
Newbie Joined: 04 October 2007 Location: United States Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 15 August 2011 at 12:02pm |
I have this class:
class CEditPane : public CXTPEdit
{ public :CEditPane(); void AddMessage(CString strMessage);protected : virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);public :afx_msg HBRUSH CtlColor(CDC* /*pDC*/, UINT /*nCtlColor*/); void OnSize(UINT nType, int cx, int cy);DECLARE_MESSAGE_MAP() }; the edit pane gets filled correctly when first loaded and if the text is too long scroll bars are added.
Now here is the problem: When I use the vertical scroll bar to scroll up, the text that is not in view comes back into view like it has the previous text on top of it.
Now if I minimize the screen and then show it again, the text comes back clear but the scroll bar is missing until I click where it should be. And if I scroll again, then the text is messed up again.
Can anyone help?
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |