Quote:
> Is PreCreateWindow() called for controls connected through the
> DoDataExchange() function? I have a CListCtrl derived class
> and its PreCreateWindow() function is never called.
You mean a DDX_Control call in the DoDataExchange function? If so, the
answer is unfortunately 'no'. In this situation, the control has been
previously created (usually by the OS dialogbox creation code) well
before the call to DDX_Control executes. Many times, PreSubclassWindow
can be used instead, but sometimes not -- it depends on what you want to
do.
--
Jeff Partch [VC++ MVP]