/[rdesktop]/sourceforge.net/trunk/seamlessrdp/ServerExe/HookDll/hookdll.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/HookDll/hookdll.c

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

revision 1098 by ossman_, Fri Mar 10 12:38:00 2006 UTC revision 1099 by ossman_, Fri Mar 10 12:54:37 2006 UTC
# Line 104  wndproc_hook_proc(int code, WPARAM cur_t Line 104  wndproc_hook_proc(int code, WPARAM cur_t
104    
105                                  if (wp->flags & SWP_SHOWWINDOW)                                  if (wp->flags & SWP_SHOWWINDOW)
106                                  {                                  {
107                                          // FIXME: Now, just like create!                                          char title[150];
108                                          debug("SWP_SHOWWINDOW for %p!", hwnd);                                          int state;
109    
110                                          vchannel_write("CREATE,0x%p,0x%p,0x%x", hwnd, parent, 0);                                          vchannel_write("CREATE,0x%p,0x%p,0x%x", hwnd, parent, 0);
111    
112                                          // FIXME: SETSTATE                                          GetWindowText(hwnd, title, sizeof(title));
113    
114                                            /* FIXME: Strip title of dangerous characters */
115    
116                                            vchannel_write("TITLE,0x%x,%s,0x%x", hwnd, title, 0);
117    
118                                            if (style & WS_MAXIMIZE)
119                                                    state = 2;
120                                            else if (style & WS_MINIMIZE)
121                                                    state = 1;
122                                            else
123                                                    state = 0;
124    
125                                            vchannel_write("STATE,0x%p,0x%x,0x%x", hwnd, state, 0);
126    
127                                          update_position(hwnd);                                          update_position(hwnd);
128    
129                                            /* FIXME: Figure out z order */
130                                  }                                  }
131    
132                                  if (wp->flags & SWP_HIDEWINDOW)                                  if (wp->flags & SWP_HIDEWINDOW)

Legend:
Removed from v.1098  
changed lines
  Added in v.1099

  ViewVC Help
Powered by ViewVC 1.1.26