Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Best class to specialise
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Best class to specialise

 Post Reply Post Reply
Author
Message
ContactGT View Drop Down
Newbie
Newbie


Joined: 30 October 2006
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote ContactGT Quote  Post ReplyReply Direct Link To This Post Topic: Best class to specialise
    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??
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.