MCPcopy
hub / github.com/lxn/walk / SetWindowFont

Function SetWindowFont

window.go:1157–1160  ·  view source on GitHub ↗
(hwnd win.HWND, font *Font)

Source from the content-addressed store, hash-verified

1155}
1156
1157func SetWindowFont(hwnd win.HWND, font *Font) {
1158 dpi := int(win.GetDpiForWindow(hwnd))
1159 setWindowFont(hwnd, font.handleForDPI(dpi))
1160}
1161
1162func setWindowFont(hwnd win.HWND, hFont win.HFONT) {
1163 win.SendMessage(hwnd, win.WM_SETFONT, uintptr(hFont), 1)

Callers 4

applyFontMethod · 0.85
initWindowWithCfgFunction · 0.85
applyFontMethod · 0.85
applyFontMethod · 0.85

Calls 2

setWindowFontFunction · 0.85
handleForDPIMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…