Subclassing a picture control
-
Dear all; I am trying to make some drawings on a dialog based application. As far as i have understood, its better to place a Static control and draw on it instead of directly drawing on top of the dialog. As i am trying to achieve this, i am a little bit confused and gona be needing some of your help. I have added a picture control to my dialog and created a member variable for it of type CStatic. Now I need to subclass the picture control in which i will be overriding the OnPaint() function. I do not know how to perform this subclassing :doh:? Thanx llp00na
-
Dear all; I am trying to make some drawings on a dialog based application. As far as i have understood, its better to place a Static control and draw on it instead of directly drawing on top of the dialog. As i am trying to achieve this, i am a little bit confused and gona be needing some of your help. I have added a picture control to my dialog and created a member variable for it of type CStatic. Now I need to subclass the picture control in which i will be overriding the OnPaint() function. I do not know how to perform this subclassing :doh:? Thanx llp00na
I wouldn't add a picture control, I'd add a static control and subclass that. But you have to specify that you want to receive messages by adding 'SS_NOTIFY' (or something like that) to the window's style. have a look here at my Modeler[^] My Music | My Pics | My Articles BlackDice