Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Syntax Edit
  New Posts New Posts RSS Feed - CEditPane not refreshing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CEditPane not refreshing

 Post Reply Post Reply
Author
Message
madriceg View Drop Down
Newbie
Newbie


Joined: 04 October 2007
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote madriceg Quote  Post ReplyReply Direct Link To This Post Topic: CEditPane not refreshing
    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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.234 seconds.