DirectShow DirectShow 레퍼런스 인터페이스 IVideoWindow SetWindowPosition   [목차열람] [주소복사] [슬롯비우기]
IVideoWindow::SetWindowPosition
 
Microsoft DirectX 9.0

IVideoWindow::SetWindowPosition

SetWindowPosition 메서드는, 비디오 윈도우의 위치를 설정한다.

구문

HRESULT SetWindowPosition(
  long Left,
  long Top,
  long Width,
  long Height
);

파라미터

Left

[in] x 좌표를 지정한다 (픽셀 단위).

Top

[in] y 좌표를 지정한다 (픽셀 단위).

Width

[in] 폭을 지정한다 (픽셀 단위).

Height

[in] 높이를 지정한다 (픽셀 단위).

반환값

다음의 몇개의 값을 돌려준다.

설명
E_INVALIDARG 무효인 인수.
S_OK 성공.
VFW_E_NOT_CONNECTED 비디오 렌더러 필터가 접속되지 않다.

주의

이 메서드의 효과는,IVideoWindow::put_Left 메서드,IVideoWindow::put_Top 메서드,IVideoWindow::put_Width 메서드,IVideoWindow::put_Height 메서드를 개별적으로 호출했을 경우와 동일하다.

윈도우의 사이즈가 지정된 넓이로 변경할 수 없는 경우, 이 메서드는 지정된 넓이에 맞도록(듯이) 윈도우의 사이즈와 위치를 변경한다. IVideoWindow::GetWindowPosition 메서드를 호출해, 결과를 확인하는 것.

참조

↑TOP