lxn / win

A Windows API wrapper package for the Go Programming Language
Other
1.19k stars 313 forks source link

add LoadIcon* #37

Closed tmm1 closed 6 years ago

tmm1 commented 6 years ago

These methods allow loading smaller and larger icon sizes instead of the default size.

Note that these methods require Windows Vista or later. Is there a pattern in-place for loading these functions gracefully (instead of via MustGetProcAddress)?

cc lxn/walk#336

lxn commented 6 years ago

Probably just load them like this:

drawThemeTextEx, _ = syscall.GetProcAddress(syscall.Handle(libuxtheme), "DrawThemeTextEx")