CVS: seamlessrdp/ServerExe/HookDll hookdll.cpp,1.12,1.13
Peter Åstrand <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27636
Modified Files:
hookdll.cpp
Log Message:
Only handle WM_SIZING/WM_MOVING for visible, toplevel windows.
Implemented CREATE1.
Index: hookdll.cpp
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** hookdll.cpp 30 Aug 2005 09:18:53 -0000 1.12
--- hookdll.cpp 30 Aug 2005 09:43:32 -0000 1.13
***************
*** 112,115 ****
--- 112,121 ----
case WM_SIZING:
case WM_MOVING:
+ if ( !( dwStyle & WS_VISIBLE ) )
+ break;
+
+ if ( !( dwStyle & WS_DLGFRAME ) )
+ break;
+
snprintf( result, sizeof( result ),
"POSITION1,0x%x,%d,%d,%d,%d,0x%x",
***************
*** 121,127 ****
result[ sizeof( result ) - 1 ] = '\0';
buffer = result;
-
break;
/* Note: WM_WINDOWPOSCHANGING/WM_WINDOWPOSCHANGED are
strange. Sometimes, for example when bringing up the
--- 127,133 ----
result[ sizeof( result ) - 1 ] = '\0';
buffer = result;
break;
+
/* Note: WM_WINDOWPOSCHANGING/WM_WINDOWPOSCHANGED are
strange. Sometimes, for example when bringing up the
***************
*** 147,153 ****
0 );
result[ sizeof( result ) - 1 ] = '\0';
}
- buffer = result;
-
break;
--- 153,158 ----
0 );
result[ sizeof( result ) - 1 ] = '\0';
+ buffer = result;
}
break;
***************
*** 155,165 ****
case WM_CREATE:
if ( cs->style & WS_DLGFRAME ) {
! 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",
! cs->cx, cs->cy, cs->x, cs->y, cs->lpszName, cs->hMenu, details->hwnd,
! cs->style & WS_BORDER, cs->style & WS_DLGFRAME,
! cs->style & WS_POPUP );
buffer = result;
}
-
break;
--- 160,168 ----
case WM_CREATE:
if ( cs->style & WS_DLGFRAME ) {
! snprintf( result, sizeof( result ),
! "CREATE1,0x%x,0x%x\n",
! details->hwnd, 0 );
buffer = result;
}
break;
***************
*** 173,176 ****
--- 176,180 ----
break;
+
default:
break;
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf