intf

package
v2.2.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	THBF_ENABLED        = 0x0000
	THBF_DISABLED       = 0x0001
	THBF_DISMISSONCLICK = 0x0002
	THBF_NOBACKGROUND   = 0x0004
	THBF_HIDDEN         = 0x0008
	THBF_NONINTERACTIVE = 0x10
	// THUMBBUTTON mask
	THB_BITMAP   = 0x0001
	THB_ICON     = 0x0002
	THB_TOOLTIP  = 0x0004
	THB_FLAGS    = 0x0008
	THBN_CLICKED = 0x1800
)

THUMBBUTTON flags

View Source
const (
	TBPF_NOPROGRESS    = 0
	TBPF_INDETERMINATE = 0x1
	TBPF_NORMAL        = 0x2
	TBPF_ERROR         = 0x4
	TBPF_PAUSED        = 0x8

	TBATF_USEMDITHUMBNAIL   = 0x1
	TBATF_USEMDILIVEPREVIEW = 0x2
)
View Source
const (
	MAX_BUTTON_COUNT = 7
)

Variables

View Source
var (
	WM_TASKBARBUTTONCREATED uint32

	CLSID_TaskbarList = ole.NewGUID("{56FDF344-FD6D-11d0-958A-006097C9A090}")
	SID_ITaskbarList4 = ole.NewGUID("{C43DC798-95D1-4BEA-9030-BB99E2983A1A}")
	SID_ITaskbarList3 = ole.NewGUID("{EA1AFB91-9E28-4B86-90E9-9E9F8A5EEFAF}")
)

Functions

func DispCallFunc

func DispCallFunc(pvInstance uintptr, oVft uintptr, cc int32, vtReturn ole.VT, argTypes []ole.VT, args []*ole.VARIANT, result *ole.VARIANT) error

-------------- call-------------------------

func Succeeded

func Succeeded(Status types.HResult) bool

Types

type ITaskbarList4

type ITaskbarList4 uintptr

func (ITaskbarList4) HrInit

func (ii ITaskbarList4) HrInit() error

func (ITaskbarList4) Release

func (ii ITaskbarList4) Release() error

func (ITaskbarList4) SetOverlayIcon

func (ii ITaskbarList4) SetOverlayIcon(hWnd types.HWND, hIcon types.HICON, pszDescription string) error

func (ITaskbarList4) SetProgressState

func (ii ITaskbarList4) SetProgressState(hWnd types.HWND, flags int32) error

func (ITaskbarList4) SetProgressValue

func (ii ITaskbarList4) SetProgressValue(hWnd types.HWND, ullCompleted, ullTotal uint64) error

func (ITaskbarList4) SetThumbnailTooltip

func (ii ITaskbarList4) SetThumbnailTooltip(hWnd types.HWND, tip string) error

func (ITaskbarList4) ThumbBarAddButtons

func (ii ITaskbarList4) ThumbBarAddButtons(hWnd types.HWND, buttons []TThumbButton) error

func (ITaskbarList4) ThumbBarUpdateButtons

func (ii ITaskbarList4) ThumbBarUpdateButtons(hWnd types.HWND, buttons []TThumbButton) error

type TThumbButton

type TThumbButton struct {
	DwMask  uint32
	IId     uint32
	IBitmap uint32
	HIcon   types.HICON
	SzTip   [260]uint16
	DwFlags uint32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL