次の方法で共有


PH_MESSAGE_BOX_PARAMETERS (Windows Embedded CE 6.0)

1/6/2010

Structure used in conjunction with the PHMessageBox control.

Syntax

typedef struct _PH_MESSAGE_BOX_PARAMETERS
{
    DWORD StructSize;               
    DWORD Flags;                   
    HWND Owner;                     
    HINSTANCE Instance;             
    const WCHAR* pTitle;            
    const WCHAR* pText;             
    UINT IconId;                    
    UINT MenuId;                    
        union{                          
        UINT SelectedId;            
        HWND Dialog;                
        } result;
} PH_MESSAGE_BOX_PARAMETERS;

Members

  • StructSize
    [in] Struct size in bytes.
  • Flags
    [in] VDF_xxx flags.
  • Owner
    [in] Owner of the message box.
  • Instance
    [in] Optional. Handle to the instance containing any custom resources.
  • pTitle
    [in] Title of the message box.
  • pText
    [in] Text of the message box.
  • IconId
    [in] Icon for the message box.
  • MenuId
    [in] Optional, a menu. If a menu is not defined for the message box, then the default is the following:

    Button 1. Text = "Ok" / ID=IDOK.

    Button 2. Text = "Cancel" / ID=IDCANCEL.

  • SelectedId
    [out] Identifier of the button selected by the user. Returned only for modal boxes.
  • Dialog
    [out] Handle to the window of the message box. Returned only for modeless boxes.

Remarks

Note

This documentation applies to functionality implemented in sample code for PhCommon. For more information, see PhCommon Reference.

If the result dialog is non-modal, the caller is responsible for terminating the dialog with a call to CloseWindow().

Requirements

Header controldefinitions.h
Library PhCommon.dll
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

PhCommon Structures
PhCommon Reference
PhCommon Dialog Flags