1 Star 0 Fork 0

略过寒冬/go-winapi

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
uxtheme.go 698 Bytes
Copy Edit Raw Blame History
// Copyright 2010 The Walk Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package winapi
import (
"syscall"
"unsafe"
)
var (
// Library
libuxtheme uintptr
// Functions
setWindowTheme uintptr
)
func init() {
// Library
libuxtheme = MustLoadLibrary("uxtheme.dll")
// Functions
setWindowTheme = MustGetProcAddress(libuxtheme, "SetWindowTheme")
}
func SetWindowTheme(hwnd HWND, pszSubAppName, pszSubIdList *uint16) HRESULT {
ret, _, _ := syscall.Syscall(setWindowTheme, 3,
uintptr(hwnd),
uintptr(unsafe.Pointer(pszSubAppName)),
uintptr(unsafe.Pointer(pszSubIdList)))
return HRESULT(ret)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/skip-the-cold-winter/go-winapi.git
git@gitee.com:skip-the-cold-winter/go-winapi.git
skip-the-cold-winter
go-winapi
go-winapi
8d5f10e8e797

Search