Hi guys !
I'm working on windows NT on VC++6.
I'm developing an activeX compoiste control.This control contains other controls.
Well I have a problem.
The contained control is an MFC control. I use the function COleControl::OnDraw()
To draw on the control.
In the Contained control i called the function SetWindowPos() to increase the size of the control.
But the OnDraw() function returns the rcBounds rectangle in the new size , but the
validate rectangle is in the original size.
and It wont draw outside the original size of the control.
void CFlashCtrl::OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid)
rcBounds has the new size.
rcInvalid has the old size.
Do you know how can i solve the problem ?
Ron
I'm working on windows NT on VC++6.
I'm developing an activeX compoiste control.This control contains other controls.
Well I have a problem.
The contained control is an MFC control. I use the function COleControl::OnDraw()
To draw on the control.
In the Contained control i called the function SetWindowPos() to increase the size of the control.
But the OnDraw() function returns the rcBounds rectangle in the new size , but the
validate rectangle is in the original size.
and It wont draw outside the original size of the control.
void CFlashCtrl::OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid)
rcBounds has the new size.
rcInvalid has the old size.
Do you know how can i solve the problem ?
Ron