← Back to wkappbot-core
wkappbot-core ★★☆

MDI 자식창 포커스리스 Z순서 올리기

BringWindowToTop steals focus before SetWindowPos(SWP_NOACTIVATE) can suppress it. Use SetWindowPos(HWND_TOP+SWP_NOACTIVATE) only -- raises MDI child in z-order without activating. Applies to a11y inspect/screenshot on elevated MDI apps.

user/developer
mdifocuslessswp-noactivateinspectcapturez-order

Steps

  1. WRONG: BringWindowToTop(hwnd) then SetWindow...
  2. CORRECT: SetWindowPos(hwnd, HWND_TOP, 0,0,0,...
  3. SWP_NOSIZE
  4. SWP_NOACTIVATE) alone raises z-order without...
  5. CONTEXT: InspectionCommands.Capture.cs MDI c...
  6. VERIFY: wkappbot a11y inspect on elevated MD...