Winapi.Messages.TWMSysCommand

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

  TWMSysCommand = record
    Msg: Cardinal;
    MsgFiller: TDWordFiller;
    CmdType: WPARAM;
    case WPARAM of
      SC_HOTKEY: (
        ActivateWnd: HWND);
      SC_KEYMENU: (
        Key: Word);
      SC_CLOSE, SC_HSCROLL, SC_MAXIMIZE, SC_MINIMIZE, SC_MOUSEMENU, SC_MOVE,
      SC_NEXTWINDOW, SC_PREVWINDOW, SC_RESTORE, SC_SCREENSAVE, SC_SIZE,
      SC_TASKLIST, SC_VSCROLL: (
        XPos: Smallint;
        YPos: Smallint;
        XYPosFiller: TDWordFiller;
        Result: LRESULT);
  end;

C++

struct DECLSPEC_DRECORD TWMSysCommand
{
public:
    unsigned Msg;
    NativeUInt CmdType;
public:
    union
    {
        struct
        {
            short XPos;
            short YPos;
            NativeInt Result;
        };
        struct
        {
            System::Word Key;
        };
        struct
        {
            HWND ActivateWnd;
        };
    };
};

Properties

Type Visibility Source Unit Parent
record
struct
public
Winapi.Messages.pas
Winapi.Messages.hpp
Winapi.Messages Winapi.Messages

Description

Windows message record for WM_SYSCOMMAND.

For more information about WM_SYSCOMMAND message, see the documentation in Windows Dev Center.

http://msdn.microsoft.com/library/en-us/windows/desktop/ms646360.aspx