Hello Gerard,

hwndPrevActive seems to be the splash screen, and it's trying to
switch to the open button of an openfile dialog.

i guess the problem could be one of the following:
* windows ignores refusal to deactivate if the window has some
property (eg. always on top)
* windows always activates some kind of dialog boxes
* the MsoSplash window is unhappy with something else in wine.

Mike

Original message from: gerard patel <[EMAIL PROTECTED]>
..
>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).

Output using the patch below:

..err:win:WINPOS_SetActiveWindow GetSysModalWindow16 (0) !=hWnd
next=0x4035ea6c  child=(nil)  parent=0x4035e860  owner=0x4035ea6c
class=0x65432184 'MsoSplash'
inst=306c0000  taskQ=0277  updRgn=39c6  active=0420 dce=(nil)
idmenu=00000000
style=94000000  exstyle=00000004  wndproc=40e6076c  text=''
client=440,388-840,635  window=440,388-840,635sysmenu=0000  flags=0426
props=(nil)  vscroll=(nil)  hscroll=(nil)
 
next=0x4036007c  child=0x4035f518  parent=0x4035e860  owner=0x4035ea6c
class=0x654305c8 '#32770'
inst=405e5000  taskQ=0277  updRgn=3fee  active=0c5c dce=(nil)
idmenu=00000000
style=94c820c0  exstyle=00000001  wndproc=40e602f8  text='L"Open"'
client=3,70-434,292  window=0,48-437,295sysmenu=0d08  flags=0620
props=0x654373d0  vscroll=(nil)  hscroll=(nil)
extra bytes: 00 00 00 00 2c 0b e6 40 00 00 00 00 d8 0d d2 39 00 00 06
00 0c 00 01 00 00 00 02 00 00 00

diff -u -w -r1.73 winpos.c
--- windows/winpos.c    2000/09/27 22:26:51     1.73
+++ windows/winpos.c    2000/09/28 12:57:56
@@ -1782,8 +1785,14 @@

         if (!SendMessageA( hwndPrevActive, WM_NCACTIVATE, FALSE, 0 ))
         {
-           if (GetSysModalWindow16() != hWnd)
+            HWND hSysModalWnd = GetSysModalWindow16();
+           if (hSysModalWnd != hWnd)
+            {
+                ERR("GetSysModalWindow16 (%x)
!=hWnd\n",hSysModalWnd);
+                WIN_DumpWindow(hwndPrevActive);
+                WIN_DumpWindow(hWnd);
                goto CLEANUP_END;
+            }
            /* disregard refusal if hWnd is sysmodal */
         }



------------------------------------------
mailto:[EMAIL PROTECTED]
ph +61 2 9427 2196

__________________________________________________________________
Get your own free web email at http://www.looksmart.com.au
LookSmart Australia

Reply via email to