After MoveWindow API call on RemoteApp window (mstsc.exe) mouse events are not properly propagated to apllication running remotely.


dear all,

we trying launch remote app using mstsc (with of rdp file) , controlling size , position of application using windows apis. resize , reposition happens fine when use movewindow api, but after this mouse events not propagated remoteapp. mouse events on remoteapp are propagated older position (before movewindow) of application.

observation steps:

        1. configured , launched notepad remoteapp using rdp file.

                2. positioned remoteapp using movewindow api

setwindowlong(mainwindowhandle, gwl_style, ws_visible);

point windowposition = this.pointtoscreen(new point(0, 0));

movewindow(mainwindowhandle, windowposition.x, windowposition.y, this.width, this.height, true);

setforegroundwindow(mainwindowhandle);

nb: here mainwindowhandle remoteapp window handle (mstsc.exe process main handle)

         3. now can see remoteapp repositioned fine mouse events not propagated remoteapp(mstsc.exe)

-    mouse events can see shift in mouse click.

if manually resize remoteapp mouse events propagating properly. problem comes when reposition remoteapp windows using 1 of windows api's.

please let me know if body come accross scenario or if 1 having suggestion/openion on this.

thanks

bachu



hi bachu,

i not believe trying supported. 

from description appears moving window in such way rail subsystem not notified , the window on server no longer synchronized local window.  under normal circumstances window moved/resized/etc. on server , window on client mirrors this.  in case attempting move client window instead.

perhaps there way attempting, think need experimenting, examining messages spy++, etc., in order find it.  please keep in mind may not work correctly remoteapps.

i wanted test latest client , server version in case bug fixes/improvements correct issue seeing.

-tp



Windows Server  >  Remote Desktop Services (Terminal Services)



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607