CVS: seamlessrdp/ServerExe/HookDll hookdll.c,1.10,1.11

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-serv27349/ServerExe/HookDll

Modified Files:
	hookdll.c 
Log Message:
Add the new parent argument to the CREATE command.


Index: hookdll.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** hookdll.c	10 Mar 2006 12:27:38 -0000	1.10
--- hookdll.c	10 Mar 2006 12:38:00 -0000	1.11
***************
*** 69,73 ****
  wndproc_hook_proc(int code, WPARAM cur_thread, LPARAM details)
  {
! 	HWND hwnd;
  	UINT msg;
  	WPARAM wparam;
--- 69,73 ----
  wndproc_hook_proc(int code, WPARAM cur_thread, LPARAM details)
  {
! 	HWND hwnd, parent;
  	UINT msg;
  	WPARAM wparam;
***************
*** 91,94 ****
--- 91,99 ----
  		goto end;
  
+ 	if (style & WS_POPUP)
+ 		parent = (HWND) GetWindowLong(hwnd, GWL_HWNDPARENT);
+ 	else
+ 		parent = NULL;
+ 
  	switch (msg)
  	{
***************
*** 102,106 ****
  					// FIXME: Now, just like create!
  					debug("SWP_SHOWWINDOW for %p!", hwnd);
! 					vchannel_write("CREATE,0x%p,0x%x", hwnd, 0);
  
  					// FIXME: SETSTATE
--- 107,111 ----
  					// FIXME: Now, just like create!
  					debug("SWP_SHOWWINDOW for %p!", hwnd);
! 					vchannel_write("CREATE,0x%p,0x%p,0x%x", hwnd, parent, 0);
  
  					// FIXME: SETSTATE



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.