/[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 1079 by ossman_, Thu Mar 9 15:48:55 2006 UTC revision 1080 by ossman_, Thu Mar 9 15:57:10 2006 UTC
# Line 106  wndproc_hook_proc(int code, WPARAM cur_t Line 106  wndproc_hook_proc(int code, WPARAM cur_t
106                                  if (!(style & WS_VISIBLE))                                  if (!(style & WS_VISIBLE))
107                                          break;                                          break;
108    
109                                  if (wp->flags & SWP_NOMOVE && wp->flags & SWP_NOSIZE)                                  if (!(wp->flags & SWP_NOMOVE && wp->flags & SWP_NOSIZE))
                                         break;  
   
                                 if (!GetWindowRect(hwnd, &rect))  
110                                  {                                  {
111                                          debug("GetWindowRect failed!\n");                                          if (!GetWindowRect(hwnd, &rect))
112                                          break;                                          {
113                                  }                                                  debug("GetWindowRect failed!\n");
114                                                    break;
115                                  vchannel_write("POSITION1,0x%p,%d,%d,%d,%d,0x%x",                                          }
                                                hwnd,  
                                                rect.left, rect.top,  
                                                rect.right - rect.left, rect.bottom - rect.top, 0);  
   
                                 break;  
                         }  
116    
117                  case WM_WINDOWPOSCHANGING:                                          vchannel_write("POSITION1,0x%p,%d,%d,%d,%d,0x%x",
118                          {                                                         hwnd,
119                                  WINDOWPOS *wp = (WINDOWPOS *) lparam;                                                         rect.left, rect.top,
120                                                           rect.right - rect.left,
121                                  if (!(style & WS_VISIBLE))                                                         rect.bottom - rect.top, 0);
122                                          break;                                  }
123    
124                                  if (!(wp->flags & SWP_NOZORDER))                                  if (!(wp->flags & SWP_NOZORDER))
125                                    {
126                                          vchannel_write("ZCHANGE1,0x%p,0x%p,0x%x",                                          vchannel_write("ZCHANGE1,0x%p,0x%p,0x%x",
127                                                         hwnd,                                                         hwnd,
128                                                         wp->flags & SWP_NOACTIVATE ? wp->                                                         wp->flags & SWP_NOACTIVATE ? wp->
129                                                         hwndInsertAfter : 0, 0);                                                         hwndInsertAfter : 0, 0);
130                                    }
131    
132                                  break;                                  break;
133                          }                          }

Legend:
Removed from v.1079  
changed lines
  Added in v.1080

  ViewVC Help
Powered by ViewVC 1.1.26