CVS: seamlessrdp/ServerExe/HookDll hookdll.cpp,1.9,1.10

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-serv15554

Modified Files:
	hookdll.cpp 
Log Message:
Added hack to silence WM_WINDOWPOSCHANGED for the language bar and the
Office XP speech/handwriting recognition.


Index: hookdll.cpp
===================================================================
RCS file: /cvsroot/rdesktop/seamlessrdp/ServerExe/HookDll/hookdll.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** hookdll.cpp	29 Aug 2005 09:11:50 -0000	1.9
--- hookdll.cpp	29 Aug 2005 09:31:51 -0000	1.10
***************
*** 84,87 ****
--- 84,88 ----
      CREATESTRUCT *cs = ( CREATESTRUCT * ) details->lParam;
      LONG dwStyle = GetWindowLong( details->hwnd, GWL_STYLE );
+     WINDOWPOS *wp = (WINDOWPOS *) details->lParam;
      
      switch ( details->message ) {
***************
*** 194,199 ****
--- 195,208 ----
          ltoa( r - l, strW, 10 );
          ltoa( l, strX, 10 );
+ 
+ 	// FIXME: This is a crude hack to shut up the language bar and
+ 	// the Office XP speech/handwriting recognition.
+ 	if (!strcmp(windowTitle, "TF_FloatingLangBar_WndTitle") || 
+ 	    !strcmp(windowTitle, "CiceroUIWndFrame")) {
+ 	    break;
+ 	}
          
          ////setup return string
+ 	//sprintf( result, "WM_WINDOWPOSCHANGED: title=%s, flags=0x%lx", windowTitle,  wp->flags);
          strcat( result, "MSG=CALLWNDPROC_WM_WINDOWPOSCHANGED;OP=8;" );
          strcat( result, "ID=" );



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.