Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Resizable forms v 2.81 Collapse All
Subject Author Date
Osmin Lazo Dec 12, 2007 - 3:13 PM

I tried the following:

public CExtWA < CExtWS < CExtAFV < CFormView > > >

as recomended in documentation and it seems that the templates are subclassing all child controls in my form. If I add DDX or try to subclass any of my controls from OnInitialUpdate I will get the famous exception triggered from (wincore.cpp):

ASSERT(FromHandlePermanent(hWndNew) == NULL);
        // must not already be in permanent map

Is there any way I can disable this (subclassing) behavior in the templates?

Thanks in advanced.

Suhai Gyorgy Dec 13, 2007 - 2:07 AM

You can turn off automatic subclassing by calling SetAutoSubclassChildControls(false); which method is part of the CExtWS template class.