CVS: seamlessrdp/ServerExe/HookDll hookdll.cpp,1.18,1.19
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-serv21824
Modified Files:
hookdll.cpp
Log Message:
WM_CREATE now sends SETSTATE1 and POSITION1.
Index: hookdll.cpp
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** hookdll.cpp 30 Aug 2005 11:34:05 -0000 1.18
--- hookdll.cpp 30 Aug 2005 11:52:38 -0000 1.19
***************
*** 148,151 ****
--- 148,152 ----
case WM_CREATE:
if ( cs->style & WS_DLGFRAME ) {
+
snprintf( result, sizeof( result ),
"CREATE1,0x%p,0x%x\n",
***************
*** 153,156 ****
--- 154,178 ----
result[ sizeof( result ) - 1 ] = '\0';
WriteToChannel( result );
+
+ snprintf( result, sizeof( result ),
+ "SETSTATE1,0x%p,%s,0x%x,0x%x\n",
+ details->hwnd,
+ cs->lpszName,
+ 1, // FIXME: Check for WS_MAXIMIZE/WS_MINIMIZE
+ 0 );
+ result[ sizeof( result ) - 1 ] = '\0';
+ WriteToChannel( result );
+
+ snprintf( result, sizeof( result ),
+ "POSITION1,0x%p,%d,%d,%d,%d,0x%x",
+ details->hwnd,
+ cs->x,
+ cs->y,
+ cs->cx,
+ cs->cy,
+ 0 );
+ result[ sizeof( result ) - 1 ] = '\0';
+ WriteToChannel( result );
+
}
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