Hello Everybody !!!
I'm working on Windows NT platform on VC++6.
I have build an MFC control = "Flash control".
With the properties assigned to this control you can pick two colors and the
control will be changing its color between them every second. (Flashing).
Now all this is based on the Fact that a timer Call every second the InavlidateControl ()
function (I tried also InvalidateRect()) , and it shoud call the OnDraw function.
Then in OnDraw function i call the FillRect function in order to paint the color of the control.
I get the CDC (device context class) as a parameter.
I have put this control into a composite control , and then I tried the composite control on an MFC
dialog.
It doesnt work.
1) The OnDraw is not being called in response to the Invalidatecontrol () function, that is being called
by the timer.
2) I tried replacing InvalidateControl() with SendMessage(WM_PAINT) and then
OnDraw() is being called its being called . but doesnt draw anything.
Anybody has any ideas ?
I'm working on Windows NT platform on VC++6.
I have build an MFC control = "Flash control".
With the properties assigned to this control you can pick two colors and the
control will be changing its color between them every second. (Flashing).
Now all this is based on the Fact that a timer Call every second the InavlidateControl ()
function (I tried also InvalidateRect()) , and it shoud call the OnDraw function.
Then in OnDraw function i call the FillRect function in order to paint the color of the control.
I get the CDC (device context class) as a parameter.
I have put this control into a composite control , and then I tried the composite control on an MFC
dialog.
It doesnt work.
1) The OnDraw is not being called in response to the Invalidatecontrol () function, that is being called
by the timer.
2) I tried replacing InvalidateControl() with SendMessage(WM_PAINT) and then
OnDraw() is being called its being called . but doesnt draw anything.
Anybody has any ideas ?