Click to See Complete Forum and Search --> : Subclassing controls


October 21st, 1999, 11:59 AM
I am trying to write an OCX that subclasses an editbox. If I want to reposition the editbox so I can place a label in front of the control (via DrawText), how/where do I do this?

Thanks,

Chris Larmay

October 21st, 1999, 01:13 PM
I would also like information about how to move/resize the edit control area for activex controls which subclass the edit control. I've already tried changing the CREATESTRUCT cx, cy, x, and y values passed via PreCreateWindow() and also tried deflating the CRect passed into DoSuperclassPaint() in the OnDraw() method without luck.