代码实例:
package main
/*
#include <windows.h>
int taskbarHeight() {
RECT rt;
SystemParametersInfo(SPI_GETWORKAREA, 0, (PVOID)&rt, 0);
return GetSystemMetrics(SM_CYSCREEN) - rt.bottom;
}
*/
import "C"
func main() {
theight := int(C.taskbarHeight())
println(theight)
}
网友评论