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

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

Modified Files:
	hookdll.c 
Log Message:
Make sure we send a TITLE and STATE when a window is created.


Index: hookdll.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** hookdll.c	10 Mar 2006 12:38:00 -0000	1.11
--- hookdll.c	10 Mar 2006 12:54:37 -0000	1.12
***************
*** 105,115 ****
  				if (wp->flags & SWP_SHOWWINDOW)
  				{
! 					// 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
  
  					update_position(hwnd);
  				}
  
--- 105,131 ----
  				if (wp->flags & SWP_SHOWWINDOW)
  				{
! 					char title[150];
! 					int state;
! 
  					vchannel_write("CREATE,0x%p,0x%p,0x%x", hwnd, parent, 0);
  
! 					GetWindowText(hwnd, title, sizeof(title));
! 
! 					/* FIXME: Strip title of dangerous characters */
! 
! 					vchannel_write("TITLE,0x%x,%s,0x%x", hwnd, title, 0);
! 
! 					if (style & WS_MAXIMIZE)
! 						state = 2;
! 					else if (style & WS_MINIMIZE)
! 						state = 1;
! 					else
! 						state = 0;
! 
! 					vchannel_write("STATE,0x%p,0x%x,0x%x", hwnd, state, 0);
  
  					update_position(hwnd);
+ 
+ 					/* FIXME: Figure out z order */
  				}
  



-------------------------------------------------------
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.