![]() |
Best class to specialise |
Post Reply
|
| Author | |
ContactGT
Newbie
Joined: 30 October 2006 Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Topic: Best class to specialisePosted: 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??
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |