Edit control disappears from dialog [modified]
-
I have an edit control in a CFormview dialog. The edit control is DDXed to a some special class which is giving hyperlink functionality. The control is disappearing or its background becomes same as the dialog sometime and when mouse cursor goes on top of it, it appears from then. It happens mostly when setting text on that control (by function call) and the control's class calls "RedrawWindow()", "InvalidateRect" & "UpdateWindow()" for the parent dialog(CFormView) of control when setting text on it. The problem is happening in Win XP system and not in Vista. The Formview is using "CreateSolidBrush()" and "FillRect()" function inside OnPaint() to change its back color. Any suggstion would be greatly appreciable..
-- "Programming is an art that fights back!"
modified on Thursday, March 19, 2009 1:14 PM
-
I have an edit control in a CFormview dialog. The edit control is DDXed to a some special class which is giving hyperlink functionality. The control is disappearing or its background becomes same as the dialog sometime and when mouse cursor goes on top of it, it appears from then. It happens mostly when setting text on that control (by function call) and the control's class calls "RedrawWindow()", "InvalidateRect" & "UpdateWindow()" for the parent dialog(CFormView) of control when setting text on it. The problem is happening in Win XP system and not in Vista. The Formview is using "CreateSolidBrush()" and "FillRect()" function inside OnPaint() to change its back color. Any suggstion would be greatly appreciable..
-- "Programming is an art that fights back!"
modified on Thursday, March 19, 2009 1:14 PM
Could it be that your edit is overlapped by some other control like a static for example?
> 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. <