Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Drag&Drop Flickering
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Drag&Drop Flickering

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: Drag&Drop Flickering
    Posted: 13 July 2010 at 3:42am
Hi;

I use drag & drop to drop information from different custom windows to the report control. Whenever I drag over a row while an inplace button is visible, the button flickers permanently.
I checked the code and found out that the commented (by myself) code is responsible for that:

void CXTPReportInplaceButton::OnPaint()
{
CPaintDC dc(this);

if (pControl)
{
// if (m_bDraw)
pControl->GetPaintManager()->DrawInplaceButton(&dc, this);
// m_bDraw = !m_bDraw; //to eliminate flickering
}
}

But when I remove the code the control flickers (button disappears when clicking into the item and reappears immediately). This other kind of flickering was reported in the forum about 1 1/2 year ago.

Any ideas how to fix this, or how to get rid of all inplace buttons while a drag&drop operation is in progress?
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
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.156 seconds.