/[rdesktop]/sourceforge.net/trunk/seamlessrdp/ServerExe/main.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/seamlessrdp/ServerExe/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1111 by ossman_, Fri Mar 10 15:25:17 2006 UTC revision 1112 by ossman_, Fri Mar 10 16:14:37 2006 UTC
# Line 144  do_state(HWND hwnd, int state) Line 144  do_state(HWND hwnd, int state)
144  }  }
145    
146  static void  static void
147    do_position(HWND hwnd, int x, int y, int width, int height)
148    {
149            SetWindowPos(hwnd, NULL, x, y, width, height, SWP_NOACTIVATE | SWP_NOZORDER);
150    }
151    
152    static void
153    do_zchange(HWND hwnd, HWND behind)
154    {
155            if (behind == NULL)
156                    behind = HWND_TOP;
157            SetWindowPos(hwnd, behind, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
158    }
159    
160    static void
161  process_cmds(void)  process_cmds(void)
162  {  {
163          char line[VCHANNEL_MAX_LINE];          char line[VCHANNEL_MAX_LINE];
# Line 170  process_cmds(void) Line 184  process_cmds(void)
184                          do_sync();                          do_sync();
185                  else if (strcmp(tok1, "STATE") == 0)                  else if (strcmp(tok1, "STATE") == 0)
186                          do_state((HWND) strtol(tok2, NULL, 0), strtol(tok3, NULL, 0));                          do_state((HWND) strtol(tok2, NULL, 0), strtol(tok3, NULL, 0));
187                    else if (strcmp(tok1, "POSITION") == 0)
188                            do_position((HWND) strtol(tok2, NULL, 0), strtol(tok3, NULL, 0),
189                                        strtol(tok4, NULL, 0), strtol(tok5, NULL, 0), strtol(tok6, NULL,
190                                                                                             0));
191                    else if (strcmp(tok1, "ZCHANGE") == 0)
192                            do_zchange((HWND) strtol(tok2, NULL, 0), (HWND) strtol(tok3, NULL, 0));
193          }          }
194  }  }
195    

Legend:
Removed from v.1111  
changed lines
  Added in v.1112

  ViewVC Help
Powered by ViewVC 1.1.26