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

    Virtual Functions in Reusable Controls

    I want to create reusable controls such as the CYellowEdit control described in "TN062: Message Reflection for Windows". The problem is that I want to be able to override virtual functions such as PreCreateWindow. For the CListCtrl control, for example, PreCreateWindow is the traditional place to set styles. I am sure that there are work-arounds, but I would like to avoid work-arounds if possible.


  2. #2
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266

    Re: Virtual Functions in Reusable Controls

    I think I have found the answer myself. PreCreateWindow is not called for dialogs. It is a little confusing, isn't it?


    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

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