CVS: seamlessrdp/ServerExe main.c,1.12,1.13

Pierre Ossman <[email protected]>
Newsgroups gmane.network.rdesktop.cvs
Message-ID <[email protected]>
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19501/ServerExe

Modified Files:
	main.c 
Log Message:
Support client invoked POSITION and ZCHANGE.


Index: main.c
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/main.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** main.c	10 Mar 2006 15:25:17 -0000	1.12
--- main.c	10 Mar 2006 16:14:37 -0000	1.13
***************
*** 145,148 ****
--- 145,162 ----
  
  static void
+ do_position(HWND hwnd, int x, int y, int width, int height)
+ {
+ 	SetWindowPos(hwnd, NULL, x, y, width, height, SWP_NOACTIVATE | SWP_NOZORDER);
+ }
+ 
+ static void
+ do_zchange(HWND hwnd, HWND behind)
+ {
+ 	if (behind == NULL)
+ 		behind = HWND_TOP;
+ 	SetWindowPos(hwnd, behind, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
+ }
+ 
+ static void
  process_cmds(void)
  {
***************
*** 171,174 ****
--- 185,194 ----
  		else if (strcmp(tok1, "STATE") == 0)
  			do_state((HWND) strtol(tok2, NULL, 0), strtol(tok3, NULL, 0));
+ 		else if (strcmp(tok1, "POSITION") == 0)
+ 			do_position((HWND) strtol(tok2, NULL, 0), strtol(tok3, NULL, 0),
+ 				    strtol(tok4, NULL, 0), strtol(tok5, NULL, 0), strtol(tok6, NULL,
+ 											 0));
+ 		else if (strcmp(tok1, "ZCHANGE") == 0)
+ 			do_zchange((HWND) strtol(tok2, NULL, 0), (HWND) strtol(tok3, NULL, 0));
  	}
  }



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