Click to See Complete Forum and Search --> : Virtual Functions in Reusable Controls


May 17th, 1999, 05:09 PM
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.

Sam Hobbs
May 17th, 1999, 11:24 PM
I think I have found the answer myself. PreCreateWindow is not called for dialogs. It is a little confusing, isn't it?