diff options
author | Alexander Neumann <alexander.neumann@picos-software.com> | 2019-11-28 11:58:21 +0100 |
---|---|---|
committer | Alexander Neumann <alexander.neumann@picos-software.com> | 2019-11-28 11:58:21 +0100 |
commit | 2e40b13bacd88bdc6669b1e9cedbbb8b20d6191e (patch) | |
tree | 520d79bea5dfb760f1a922d17ac1a3c920af9c30 | |
parent | Add ImageList_DrawEx and related constants (diff) | |
download | wireguard-windows-2e40b13bacd88bdc6669b1e9cedbbb8b20d6191e.tar.xz wireguard-windows-2e40b13bacd88bdc6669b1e9cedbbb8b20d6191e.zip |
Add tool bar metrics stuff
-rw-r--r-- | toolbar.go | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -89,6 +89,7 @@ const ( TB_MAPACCELERATOR = WM_USER + 90 TB_GETSTRING = WM_USER + 91 TB_GETIDEALSIZE = WM_USER + 99 + TB_GETMETRICS = WM_USER + 101 TB_SETCOLORSCHEME = CCM_SETCOLORSCHEME TB_GETCOLORSCHEME = CCM_GETCOLORSCHEME TB_SETUNICODEFORMAT = CCM_SETUNICODEFORMAT @@ -174,6 +175,13 @@ const ( TBIF_BYINDEX = 0x80000000 ) +// TBMETRICS mask flags +const ( + TBMF_PAD = 0x00000001 + TBMF_BARPAD = 0x00000002 + TBMF_BUTTONSPACING = 0x00000004 +) + type NMMOUSE struct { Hdr NMHDR DwItemSpec uintptr @@ -217,3 +225,14 @@ type TBBUTTONINFO struct { PszText uintptr CchText int32 } + +type TBMETRICS struct { + CbSize uint32 + DwMask uint32 + CxPad int32 + CyPad int32 + CxBarPad int32 + CyBarPad int32 + CxButtonSpacing int32 + CyButtonSpacing int32 +} |