At 12:31 PM 9/24/00 +1000, you wrote:
>Hi All,
>
>The Microsoft Excel Viewer 97 (download for free from MS from
>http://officeupdate.microsoft.com/2000/downloadDetails/xlviewer.htm )
>has a small problem, which prevents it from being useable under wine.
>(latest cvs)
>
>After loading, the splash screen remains activated, and the openfile
>dialog that appears is inactive, rendering the app unusable.
>
>i have traced this to the following piece of code in windows/winpos.c
>(just search for WM_NCACT...)
>
>WINPOS_SetActiveWindow (...)
>{
>..
>  if (!SendMessageA( hwndPrevActive, WM_NCACTIVATE, FALSE, 0 )) {
>    if (GetSysModalWindow16() != hWnd) 
>        goto CLEANUP_END;
>    /* disregard refusal if hWnd is sysmodal */
>  }
>..
>}
>
>It appears that the SendMessageA returns 0 and GetSysModalWindow16
>returns 0, so the OpenFile dialog is never activated.
>
>i guess removing the test for successful deactivation would make it
>work, but probably break a bunch of other apps.
>
>Any ideas?

First, I entirely agree that fiddling with windows activation is a very good way
 to fix one app and break others.

Second, system modal windows are obsolete under Win32, the problem comes
from the NC_ACTIVATE message.

Third, you could try to see what is exactly hwndPrevActive. If it's a combobox or
a listbox, it interests me (I'm pretty sure there is incorrect activation code for 
these
controls in current Wine, I have a half-baked patch for that).
Yes, I know, I could download the thing and look myself, but I'd prefer not since you
are obviously able to do it yourself :-)

Gerard

Reply via email to