Print Page | Close Window

Best class to specialise

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


Topic: Best class to specialise
Posted By: ContactGT
Subject: Best class to specialise
Date Posted: 30 October 2006 at 11:20am
What is the best class for me to choose to subclass from:
 
I want to create a 'graph' window which displays data derived elsewhere in my application. This window will be the only thing inside an instance of a CXTPDockingPane and the majority of work in the class is in the OnPaint or OnDraw method. I have tried deriving from CDialog, CDialogBar, CXTResizeDialog and none of them seem to update the screen properly when I resize the pane - the screen simply doesn't change... I have placed breakpoints in the code, they all hit the OnPaint/OnDraw methods, and the code calculates the coordinates correctly and looks like it is redrawing my graph properly, but the screen never updates - I have to move another window (another application) over mine and away again to see the new drawing. What am I missing / doing wrong??



Replies:
Posted By: Oleg
Date Posted: 30 October 2006 at 2:37pm
Hello,
in your window class catch WM_SIZE and call Invalidate(FALSE)


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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