Print Page | Close Window

CXTTipWindow drop shadow bug

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=425
Printed Date: 23 December 2024 at 7:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTTipWindow drop shadow bug
Posted By: vladsch
Subject: CXTTipWindow drop shadow bug
Date Posted: 06 February 2004 at 7:55am

CXTTipWindow does not draw the drop shadow when displaying with Delay != 0

Solution:

In CXTTipWindow::OnTimer change the line

        SetWindowPos(&wndTop, m_rcScreenWindow.left, m_rcScreenWindow.top, m_rcScreenWindow.Width(), m_rcScreenWindow.Height(), SWP_SHOWWINDOW|SWP_NOACTIVATE); //+5 because of the shadow

to:

        SetWindowPos(&wndTop, m_rcScreenWindow.left, m_rcScreenWindow.top, m_rcShadow.right - m_rcWindow.left,
             m_rcShadow.bottom - m_rcWindow.top, SWP_SHOWWINDOW|SWP_NOACTIVATE); //see also InitializeSize()

 




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