Partager via


_IRDPSessionEvents::OnViewingSizeChanged method

Called when the viewer cropping size has changed. You should resize your surface image source in response to this event.

Syntax

void OnViewingSizeChanged(
  [in] long left,
  [in] long top,
  [in] long right,
  [in] long bottom
);

Parameters

  • left [in]
    The x-coordinate of the upper-left corner of the cropping rectangle.

  • top [in]
    The y-coordinate of the upper-left corner of the cropping rectangle.

  • right [in]
    The x-coordinate of the lower-right corner of the cropping rectangle.

  • bottom [in]
    The y-coordinate of the lower-right corner of the cropping rectangle.

Return value

This method does not return a value.

Requirements

Minimum supported client

Windows 8 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2012 [desktop apps | UWP apps]

Header

RdpEncomAPI.h

IDL

RdpEncomAPI.idl

Type library

RdpEncomAPI.tlb

DLL

RdpEncom.dll

See also

_IRDPSessionEvents