CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    4

    Message handling for CMyEdit

    I've built CMyEdit based on CEdit and I have a couple of problems. Firstly, I wanted to initialise the text within CMyEdit once the control gets a m_hWnd, but I can't work out which interrupt to use: OnCreate never seems to trigger. Secondly, I need CMyEdit to retain whatever styles were applied in the dialog editor (eg. Visible), since changing these options don't seem to affect the control when it actually appears. Any ideas? I understand that I can do both these things by calling functions from the OnInitDialog in the parent dialog, but I would rather CMyEdit do this automatically (it's much cleaner that way).

    Thanks,
    Eddie.


  2. #2
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: Message handling for CMyEdit

    Have you created a membervariable of CMyEdit in the Classwizard for your Editbox in the dialogbox?


  3. #3
    Join Date
    Apr 1999
    Posts
    4

    Re: Message handling for CMyEdit

    Yeah I have. The class works OK, but it doesn't retain the styles specified in the dialog editor, and the interrupts don't cut in.

    Eddie.


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