RegisterMdiChildTypes and UpdateUI

I followed a suggestion found in your forum on how to speed up merging of child forms'' menus; through the use of RegisterMdiChildTypes.

I also use UpdateUIMFCStyle.

RegisterMdiChildTypes needs to call the default constructor of child forms.
The default constructor does not initialise every variable thus some variables are still null.

Now I see that UpdateUI is fired for the "dummy instances". In UpdateUI events, now I have to place null checks on the variables that I haven''t initialised.

My question is, if I use RegisterMdiChildTypes, should I switch off UpdateUIMFCStyle?

1 Reply

PR Purusothaman R Syncfusion Team August 17, 2006 01:11 AM UTC

Hi Leow,

We regret for the inconvenience caused. If possible, could you please provide a simple sample that shows this issue?

Regards,
Purusothaman.R

Loader.
Up arrow icon