<div dir="ltr">Hi,<br><br>I&#39;ve been trying to debug a problem with Adobe Indesign CS where the application crashes while creating the file open dialog box.&nbsp; Now I believe (not 100% sure) I have tracked down the problem to a spurious WM_CTLCOLORSTATIC notification.&nbsp; This notification is generated when the application invokes WM_SETTEXT to change the caption of a &#39;group box&#39; control control in the dialog box.<br>
<br>To verify this I coded up a small test case, which I have attached to the email. This basically creates a new dialog box and when it receives it WM_INITDIALOG notification it calls SendDlgItemMessage to send a WM_SETTEXT message to set the text of a &#39;group box&#39; control on the dialog. As it runs it logs the notifications that it receives.<br>
<br>On windows we see the following:<br><br>&nbsp; Message: 0x00000030 (48)<br>&nbsp; Message: 0x00000110 (272)<br>&nbsp; WM INITDIALOG<br>&nbsp; Message: 0x00000127 (295)<br>&nbsp; Message: 0x00000128 (296)<br>&nbsp; Message: 0x00000018 (24)<br>&nbsp; Message: 0x00000046 (70)<br>
&nbsp; ...<br><br>Under wine we see:<br><br>&nbsp; Message: 0x00000030 (48)<br>&nbsp; Message: 0x00000110 (272)<br>&nbsp; WM INITDIALOG<br>&nbsp; Message: 0x00000138 (312)<br>&nbsp; Message: 0x00000018 (24)<br>&nbsp; Message: 0x00000046 (70)<br>&nbsp; ...<br><br>
<br>Of primary interest to me here is the WM_CTLCOLORSTATIC notification (0x00000138) that is generated only under wine.&nbsp; Also of interest is that WM_CHANGEUISTATE (0x00000127) and WM_UPDATEUISTATE (0x00000128) notifications are received under windows but not wine.<br>
<br>This is my first foray into debugging wine, so I may be totally off track here, but I do believe that the WM_CTLCOLORSTATIC notification is what is causing InDesign to crash.&nbsp; So, I am wondering if someone with more experience here can give some advice about rectifying this problem.<br>
<br>If I can provide any more info about the problem, please let me know.<br><br>Regards,<br>Matt<br><br><br></div>