Print Page | Close Window

CEditPane not refreshing

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=18827
Printed Date: 21 November 2024 at 11:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CEditPane not refreshing
Posted By: madriceg
Subject: CEditPane not refreshing
Date 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?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net