Jason Teagle wrote:
When should AddString() be called, if it can't be called during
OnInitDialog()?
If you are trying to refer to the combo box via a mapped CCombobox variable,
be sure to not try using it until after CDialog::OnInitDialog() (i.e., the
base class call) is called, since that is where variable / control mappings
are hooked together. Trying to call it prior to that will cause the above
error.

(Note: I'm assuming MFC here)

Maybe I'm getting you wrong here, but isn't it enough to call UpdateData() somewhere at in the beginning of OnInitDialog()?


cheers,

roel

_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to