/[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 999 by astrand, Tue Aug 30 09:18:53 2005 UTC revision 1000 by astrand, Tue Aug 30 09:43:32 2005 UTC
# Line 111  LRESULT CALLBACK CallWndProc( int nCode, Line 111  LRESULT CALLBACK CallWndProc( int nCode,
111            
112          case WM_SIZING:          case WM_SIZING:
113          case WM_MOVING:          case WM_MOVING:
114            if ( !( dwStyle & WS_VISIBLE ) )
115                break;
116                
117            if ( !( dwStyle & WS_DLGFRAME ) )
118                break;
119                
120          snprintf( result, sizeof( result ),          snprintf( result, sizeof( result ),
121                    "POSITION1,0x%x,%d,%d,%d,%d,0x%x",                    "POSITION1,0x%x,%d,%d,%d,%d,0x%x",
122                    ( int ) details->hwnd,                    ( int ) details->hwnd,
# Line 120  LRESULT CALLBACK CallWndProc( int nCode, Line 126  LRESULT CALLBACK CallWndProc( int nCode,
126                    0 );                    0 );
127          result[ sizeof( result ) - 1 ] = '\0';          result[ sizeof( result ) - 1 ] = '\0';
128          buffer = result;          buffer = result;
           
129          break;          break;
130                    
131            
132          /* Note: WM_WINDOWPOSCHANGING/WM_WINDOWPOSCHANGED are          /* Note: WM_WINDOWPOSCHANGING/WM_WINDOWPOSCHANGED are
133          strange. Sometimes, for example when bringing up the          strange. Sometimes, for example when bringing up the
134          Notepad About dialog, only an WM_WINDOWPOSCHANGING is          Notepad About dialog, only an WM_WINDOWPOSCHANGING is
# Line 146  LRESULT CALLBACK CallWndProc( int nCode, Line 152  LRESULT CALLBACK CallWndProc( int nCode,
152                        wp->flags & SWP_NOACTIVATE ? wp->hwndInsertAfter : 0,                        wp->flags & SWP_NOACTIVATE ? wp->hwndInsertAfter : 0,
153                        0 );                        0 );
154              result[ sizeof( result ) - 1 ] = '\0';              result[ sizeof( result ) - 1 ] = '\0';
155                buffer = result;
156          }          }
         buffer = result;  
           
157          break;          break;
158                    
159                    
160          case WM_CREATE:          case WM_CREATE:
161          if ( cs->style & WS_DLGFRAME ) {          if ( cs->style & WS_DLGFRAME ) {
162              sprintf( result, "DEBUG:WM_CREATE:%dx%d at %d,%d, title=%s, menu=%p, window=%p, WS_BORDER=%d, WS_DLGFRAME=%d, WS_POPUP=%d",              snprintf( result, sizeof( result ),
163                       cs->cx, cs->cy, cs->x, cs->y, cs->lpszName, cs->hMenu, details->hwnd,                        "CREATE1,0x%x,0x%x\n",
164                       cs->style & WS_BORDER, cs->style & WS_DLGFRAME,                        details->hwnd, 0 );
                      cs->style & WS_POPUP );  
165              buffer = result;              buffer = result;
166          }          }
           
167          break;          break;
168                    
169                    
# Line 172  LRESULT CALLBACK CallWndProc( int nCode, Line 175  LRESULT CALLBACK CallWndProc( int nCode,
175                    
176          break;          break;
177                    
178            
179          default:          default:
180          break;          break;
181      }      }

Legend:
Removed from v.999  
changed lines
  Added in v.1000

  ViewVC Help
Powered by ViewVC 1.1.26