BadreNarayanan.V's Radio Weblog




Weblogs

















Microsoft Specs




Security


Personal Friend



Subscribe to "BadreNarayanan.V's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.


Thursday, July 22, 2004
 

Not all Windows dialog boxes are control parents and are recursive so Do specify the 'WS_EX_CONTROLPARENT' styles on the child dialog boxes to propagate the window messages to  especially when using Active'X components.

 

I was using a 3rd party library for Tab Control. This Tab control has a facility to add subtabcontrol. I realized at some point that the subtabcontrol associated dialog class dose not process some windows messages like paint message and also get an endless wait cursor when a call made to 'AfxMessageBox', 'Messagebox' . Even any external popup comes like Task manager, explorer etc... on top of the application, an endless wait cursor appears. It took a while (really a long while) to find out that 'WS_EX_CONTROLPARENT' style needs to be set on the child dialog, This style propagates the dialog messages to the parent.


6:41:52 PM    comment_[]


Click here to visit the Radio UserLand website. © Copyright 2004 BadreNarayanan.V.
Last update: 7/22/2004; 6:43:11 PM.
July 2004
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Feb   Aug