Print Page | Close Window

CXTPDatePickerControl Redraw

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=4002
Printed Date: 10 November 2025 at 10:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPDatePickerControl Redraw
Posted By: Italo
Subject: CXTPDatePickerControl Redraw
Date Posted: 13 April 2006 at 10:15pm

Line 255 of XTPCalendarController.cpp calls CXTPDatePickerControl::Select in a loop, without locking the control update. This causes unnecessary redraws. Shouldn't the control m_nLockUpdateCount be incremented before the loop and decremented afterwards?

 

Thanks,

Italo




Replies:
Posted By: sserge
Date Posted: 21 April 2006 at 3:24pm
Looks to be not necessary because if look deeper, it actually redraws the control only once when calling m_pDatePickerCtrl->RedrawControl(); after the end of the loop.

--
WBR,
Serge



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