diff --git a/types/message_386.go b/types/message_386.go new file mode 100644 index 0000000000000000000000000000000000000000..cfe06ad1ff574f2dd2cb6b55b522a3b89ed0ab5b --- /dev/null +++ b/types/message_386.go @@ -0,0 +1,45 @@ +//---------------------------------------- +// +// Copyright © yanghy. All Rights Reserved. +// +// Licensed under Apache License Version 2.0, January 2004 +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +//---------------------------------------- + +//go:build 386 + +package types + +type WindowPos struct { + Hwnd HWND + HwndInsertAfter HWND + X Integer + Y Integer + Cx Integer + Cy Integer + Flags UINT +} + +type TMove struct { + Msg Cardinal + MoveType PtrInt // 0 = update, 1 = force RequestAlign, 128 = Source is Interface (Widget has moved) + Dummy LPARAM // needed for64 bit alignment + Result LResult +} + +type TSize struct { + Msg Cardinal + SizeType PtrInt // see LCLType.pp (e.g. Size_Restored) + Width Word + Height Word + Result LResult +} + +type TWindowPosChanged struct { + Msg Cardinal + Unused WPARAM + WindowPos WindowPos + Result LPARAM +} diff --git a/types/message_amd64arm64.go b/types/message_amd64arm64.go new file mode 100644 index 0000000000000000000000000000000000000000..2fb24a4c5d946a26fdd4ea8fc226cbc8a8a7c12c --- /dev/null +++ b/types/message_amd64arm64.go @@ -0,0 +1,53 @@ +//---------------------------------------- +// +// Copyright © yanghy. All Rights Reserved. +// +// Licensed under Apache License Version 2.0, January 2004 +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +//---------------------------------------- + +//go:build amd64 || arm64 + +package types + +type TDWordFiller struct { + Filler [4]uint8 +} + +type WindowPos struct { + Hwnd HWND + HwndInsertAfter HWND + X Integer + Y Integer + Cx Integer + Cy Integer + Flags UINT +} + +type TMove struct { + Msg Cardinal + _UnusedMsg Cardinal + MoveType PtrInt // 0 = update, 1 = force RequestAlign, 128 = Source is Interface (Widget has moved) + Dummy LPARAM // needed for64 bit alignment + Result LResult +} + +type TSize struct { + Msg Cardinal + MsgFiller TDWordFiller + SizeType PtrInt // see LCLType.pp (e.g. Size_Restored) + Width Word + Height Word + LParamfiller TDWordFiller + Result LResult +} + +type TWindowPosChanged struct { + Msg Cardinal + _UnusedMsg Cardinal + Unused WPARAM + WindowPos WindowPos + Result LPARAM +} diff --git a/types/types.go b/types/types.go index 740746e927b2ad04125cbd714ef85d1f31775a7f..7c2572d7072287ccf30f3491dbd25a4ff71c91e3 100644 --- a/types/types.go +++ b/types/types.go @@ -412,35 +412,3 @@ func (m *HRGN) Free() { func (m *HRGN) Instance() uintptr { return uintptr(m.instance) } - -type WindowPos struct { - Hwnd HWND - HwndInsertAfter HWND - X Integer - Y Integer - Cx Integer - Cy Integer - Flags UINT -} - -type TMove struct { - Msg Cardinal - MoveType PtrInt // 0 = update, 1 = force RequestAlign, 128 = Source is Interface (Widget has moved) - Dummy LPARAM // needed for64 bit alignment - Result LResult -} - -type TSize struct { - Msg Cardinal - SizeType PtrInt // see LCLType.pp (e.g. Size_Restored) - Width Word - Height Word - Result LResult -} - -type TWindowPosChanged struct { - Msg Cardinal - Unused WPARAM - WindowPos WindowPos - Result LPARAM -}