CreateOwnedToolWindow function

Creates popup windows for immersive scenarios.

Syntax

void WINAPI CreateOwnedToolWindow(
  _In_      IInspectable *pOwnerWindow,
  _In_opt_  LPCTSTR lpWindowNTitle,
  _In_      int x,
  _In_      int y,
  _In_      UINT32 nWidth,
  _In_      UINT32 nHeight,
  _Out_     IInspectable **ppWindow
);

Parameters

  • pOwnerWindow [in]
    The parent or owner window of the window being created.

  • lpWindowNTitle [in, optional]
    The window title. If the window style specifies a title bar, the window title pointed to by lpWindowTitle is displayed in the title bar.

  • x [in]
    The initial horizontal position of the window.

  • y [in]
    The initial vertical position of the window.

  • nWidth [in]
    The width, in device units, of the window.

  • nHeight [in]
    The height, in device units, of the window.

  • ppWindow [out]
    The popup window.

Return value

This function does not return a value.

Requirements

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

 

 

Send comments about this topic to Microsoft

Build date: 9/17/2013