Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPDatePickerControl Redraw
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPDatePickerControl Redraw

 Post Reply Post Reply
Author
Message
Italo View Drop Down
Groupie
Groupie


Joined: 10 December 2003
Location: United States
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote Italo Quote  Post ReplyReply Direct Link To This Post Topic: CXTPDatePickerControl Redraw
    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

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
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.063 seconds.