SOS! ActiveX: How to set the control background color, etc

HI,

Please tell me how to set the background color, etc for an activex control that is based on a standard control (like edit box, etc).

I have tried StockProperties but they dont work since Active X controls donot present the user with an On-Draw. When I tried to implement an OnDraw, it did not have any effect.

The Project is of type "Full Control", and is based on "Edit" control, as selected in the "Miscellaneous" tab of the "ATL Object Wizard".

Thanks,
Siddhartha
[511 byte] By [Siddhartha] at [2007-11-17 22:37:01]
# 1 Re: SOS! ActiveX: How to set the control background color, etc
Just guessing,

OnDraw is used only for views i believe

try handling the WM_PAINT message so you'll get an OnPaint

Hope this helps,

Steven Roelants
s. roelants at 2007-11-10 8:41:27 >