CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Subclassing controls

    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


  2. #2
    Guest

    Me too

    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.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured