hwndParent (HWND) - input

      Parent-window handle.

      If hwndParent is a desktop window handle, or is HWND_DESKTOP, a main window is created.

      If hwndParent is HWND_OBJECT, or is a window handle returned by WinQueryObjectWindow, an object window is created.

    pszClass (PSZ) - input

      Registered-class name.

      pszClass is either an application-specified name as defined by WinRegisterClass or the name of a preregistered WC_* class.

      This parameter can also be specified directly as a WC_* constant.

    pszName (PSZ) - input

      Window text.

      The actual structure of the data is class-specific. It is usually a null-terminated string that is often displayed in the window.

    flStyle (ULONG) - input

      Window style.

    x (LONG) - input

      x-coordinate of window position.

      The value is in window coordinates relative to the origin of the parent window.

    y (LONG) - input

      y-coordinate of window position.

      The value is in window coordinates relative to the origin of the parent window.

    cx (LONG) - input

      Width of window, in window coordinates.

    cy (LONG) - input

      Height of window, in window coordinates.

    hwndOwner (HWND) - input

      Owner-window handle.

      Windows that send messages send them to their owner, as defined by this parameter. When an owner window is destroyed, all windows owned by it are also destroyed. The owner window must belong to the current thread.

    hwndInsertBehind (HWND) - input

      Sibling-window handle.

      This is the sibling window behind which hwnd is placed. If this parameter is HWND_TOP or HWND_BOTTOM, hwnd is placed on top of all, or behind all of its siblings. This parameter must be HWND_TOP, HWND_BOTTOM, or a child of hwndParent.

    id (ULONG) - input

      Window identifier.

      A value given by the application, that enables specific children of a window to be identified. For example, the controls of a dialog have unique identifiers so that an owner can distinguish which control has notified it. Window identifiers are also used for frame windows. It must be greater or equal to 0 and less or equal to 0xFFFF.

    pCtlData (PVOID) - input

      Pointer to control data.

      Pointer to a Control-Data data structure.

      The data referenced by this pointer is class-specific data passed to the window procedure by the WM_CREATE message.

      This parameter MUST be a pointer rather than a long.

      The first 2 bytes in the data referenced by the pointer must be the total size of the data referenced by the pointer (for example see the ENTRYFDATA or the FRAMECDATA structures). PM requires this information to enable it to ensure that the referenced data is accessible to both 16-bit and 32-bit code.

    pPresParams (PVOID) - input

      Presentation parameters.

      This is class-specific presentation data passed to the window procedure by the WM_CREATE message.

    hwnd (HWND) - returns

      Window handle.

      NULLHANDLE

        Error occurred
      Other
        Window handle.


      [Back] [Next]