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

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

revision 1012 by astrand, Mon Sep 5 06:52:26 2005 UTC revision 1014 by astrand, Tue Sep 13 13:08:16 2005 UTC
# Line 90  LRESULT CALLBACK CallWndProc( int nCode, Line 90  LRESULT CALLBACK CallWndProc( int nCode,
90      CREATESTRUCT *cs = ( CREATESTRUCT * ) details->lParam;      CREATESTRUCT *cs = ( CREATESTRUCT * ) details->lParam;
91      LONG dwStyle = GetWindowLong( details->hwnd, GWL_STYLE );      LONG dwStyle = GetWindowLong( details->hwnd, GWL_STYLE );
92      WINDOWPOS *wp = ( WINDOWPOS * ) details->lParam;      WINDOWPOS *wp = ( WINDOWPOS * ) details->lParam;
93      RECT *rect = ( RECT * ) details->lParam;      RECT rect;
94            
95      switch ( details->message ) {      switch ( details->message ) {
96            
97          case WM_SIZING:          case WM_WINDOWPOSCHANGED:
98          case WM_MOVING:          if ( !( dwStyle & WS_DLGFRAME ) )
         if ( !( dwStyle & WS_VISIBLE ) )  
99              break;              break;
100                            
101          if ( !( dwStyle & WS_DLGFRAME ) )          if ( wp->flags & SWP_NOMOVE && wp->flags & SWP_NOSIZE )
102              break;              break;
103                            
104            if ( !GetWindowRect( details->hwnd, &rect ) ) {
105                SendDebug( "GetWindowRect failed!\n" );
106                break;
107            }
108            
109          snprintf( result, sizeof( result ),          snprintf( result, sizeof( result ),
110                    "POSITION1,0x%p,%d,%d,%d,%d,0x%x\n",                    "POSITION1,0x%p,%d,%d,%d,%d,0x%x\n",
111                    details->hwnd,                    details->hwnd,
112                    rect->left, rect->top,                    rect.left, rect.top,
113                    rect->right - rect->left,                    rect.right - rect.left,
114                    rect->bottom - rect->top,                    rect.bottom - rect.top,
115                    0 );                    0 );
116          result[ sizeof( result ) - 1 ] = '\0';          result[ sizeof( result ) - 1 ] = '\0';
117          WriteToChannel( result );          WriteToChannel( result );
118            
119          break;          break;
120                    
121                    
# Line 123  LRESULT CALLBACK CallWndProc( int nCode, Line 128  LRESULT CALLBACK CallWndProc( int nCode,
128          WM_WINDOWPOSCHANGING event is sent which looks just like          WM_WINDOWPOSCHANGING event is sent which looks just like
129          the event that was sent when the About dialog was opened...  */          the event that was sent when the About dialog was opened...  */
130          case WM_WINDOWPOSCHANGING:          case WM_WINDOWPOSCHANGING:
           
         if ( !( dwStyle & WS_VISIBLE ) )  
             break;  
               
131          if ( !( dwStyle & WS_DLGFRAME ) )          if ( !( dwStyle & WS_DLGFRAME ) )
132              break;              break;
133                            
# Line 158  LRESULT CALLBACK CallWndProc( int nCode, Line 159  LRESULT CALLBACK CallWndProc( int nCode,
159                        "SETSTATE1,0x%p,%s,0x%x,0x%x\n",                        "SETSTATE1,0x%p,%s,0x%x,0x%x\n",
160                        details->hwnd,                        details->hwnd,
161                        cs->lpszName,                        cs->lpszName,
162                        1,        // FIXME: Check for WS_MAXIMIZE/WS_MINIMIZE                        1,         // FIXME: Check for WS_MAXIMIZE/WS_MINIMIZE
163                        0 );                        0 );
164              result[ sizeof( result ) - 1 ] = '\0';              result[ sizeof( result ) - 1 ] = '\0';
165              WriteToChannel( result );              WriteToChannel( result );

Legend:
Removed from v.1012  
changed lines
  Added in v.1014

  ViewVC Help
Powered by ViewVC 1.1.26