CVS: seamlessrdp/ServerExe/HookDll hookdll.c,1.16,1.17
Pierre Ossman <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28608/ServerExe/HookDll
Modified Files:
hookdll.c
Log Message:
Windows can have popups without a parent. Indicate this by setting the parent
to -1.
Index: hookdll.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** hookdll.c 10 Mar 2006 15:00:38 -0000 1.16
--- hookdll.c 10 Mar 2006 15:12:28 -0000 1.17
***************
*** 92,96 ****
--- 92,100 ----
if (style & WS_POPUP)
+ {
parent = (HWND) GetWindowLong(hwnd, GWL_HWNDPARENT);
+ if (!parent)
+ parent = (HWND) - 1;
+ }
else
parent = NULL;
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642