하나 하나 알아가는 프로그래밍

SetWindowPos function (winuser.h) 본문

프로그래밍/윈도우 프로그래밍

SetWindowPos function (winuser.h)

Metallic 2020. 10. 8. 10:52

사이즈, 포지션, 그리고 자식 Z order, 팝업, 또는 높은 레벨의 윈도우를 변경한다. 이 윈도우는 화면에
나타난 그들의 모습에 따라 정렬되었다. 맨 위의 윈도우는 높은 랭크를 받는다. 그리고 Z order 안에서
첫번째 윈도우이다.

 

예시 코드

BOOL SetWindowPos(
  HWND hWnd,
  HWND hWndInsertAfter,
  int  X,
  int  Y,
  int  cx,
  int  cy,
  UINT uFlags
);

 

MS 원문 링크

https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos

 

SetWindowPos function (winuser.h) - Win32 apps

Changes the size, position, and Z order of a child, pop-up, or top-level window. These windows are ordered according to their appearance on the screen. The topmost window receives the highest rank and is the first window in the Z order.

docs.microsoft.com

Z Order 관련 설명 잘되어져 있는 링크

https://mores.tistory.com/210

 

윈도우의 정렬 기준, Z Order에 대하여

출처: http://www.tipssoft.com Windows 프로그램을 하다 보면 Z order라는 말을 종종 접한다. 하지만, 그 의미가 무엇인지를 정확하게 아는 사람이 별로 없는 것 같아서 이렇게 소개한다. "Z Order"는 어떤 창�

mores.tistory.com

 

Comments