From: sujeet27kulk on
Hi,
I am working on an MDI application.My Custom CEdit boxes are moving
with MouseMove on client area of CView derived class. I set
CMDIFrameWnd derived class(CMainWindow ) as parent to my Custom CEdit
boxes which is a need. In certain conditions (due to some other
drawing) CView is redrawing itself while Edit boxes are moving on
MouseMove . When my Edit boxes are in the same rect which CView is
redrawing then they are flickering. I think view is drawing itself on
top of those Cedit boxes. But when I set CView as parent Edit boxes
are not flickerig its working fine. But due to some other requirement
I need to set CMainWindow as parent. Is there anything I can do to
avoid this flickering. I tried by calling RedrawWindow on Edit box
objects but not its not working. Do I need to sen some Message.
Anything that will avoid that flickering? Please help.
From: David Wilkinson on
sujeet27kulk(a)gmail.com wrote:
> Hi,
> I am working on an MDI application.My Custom CEdit boxes are moving
> with MouseMove on client area of CView derived class. I set
> CMDIFrameWnd derived class(CMainWindow ) as parent to my Custom CEdit
> boxes which is a need. In certain conditions (due to some other
> drawing) CView is redrawing itself while Edit boxes are moving on
> MouseMove . When my Edit boxes are in the same rect which CView is
> redrawing then they are flickering. I think view is drawing itself on
> top of those Cedit boxes. But when I set CView as parent Edit boxes
> are not flickerig its working fine. But due to some other requirement
> I need to set CMainWindow as parent. Is there anything I can do to
> avoid this flickering. I tried by calling RedrawWindow on Edit box
> objects but not its not working. Do I need to sen some Message.
> Anything that will avoid that flickering? Please help.

sujeet:

Please don't multi-post. This is an MFC question, so microsoft.public.vc.mfc is
the correct group.

--
David Wilkinson
Visual C++ MVP
From: sujeet27kulk on
On May 9, 4:55 pm, David Wilkinson <no-re...(a)effisols.com> wrote:
> sujeet27k...(a)gmail.com wrote:
> > Hi,
> > I am working on an MDI application.My Custom CEdit boxes are moving
> > with MouseMove on client area of CView derived class. I set
> > CMDIFrameWnd derived class(CMainWindow ) as parent to my Custom CEdit
> > boxes which is a need. In certain conditions (due to some other
> > drawing) CView is redrawing itself while Edit boxes are moving on
> > MouseMove . When my Edit boxes are in the same rect which CView is
> > redrawing then they are flickering. I think view is drawing itself on
> > top of those Cedit boxes. But when I set CView as parent Edit boxes
> > are not flickerig its working fine. But due to some other requirement
> > I need to set CMainWindow as parent. Is there anything I can do to
> > avoid this flickering. I tried by calling RedrawWindow on Edit box
> > objects but not its not working. Do I need to sen some Message.
> > Anything that will avoid that flickering? Please help.
>
> sujeet:
>
> Please don't multi-post. This is an MFC question, so microsoft.public.vc.mfc is
> the correct group.
>
> --
> David Wilkinson
> Visual C++ MVP

Sorry will take care from next time.