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

Method applyFont

tableview.go:381–392  ·  view source on GitHub ↗
(font *Font)

Source from the content-addressed store, hash-verified

379}
380
381func (tv *TableView) applyFont(font *Font) {
382 if tv.customHeaderHeight > 0 || tv.customRowHeight > 0 {
383 return
384 }
385
386 tv.WidgetBase.applyFont(font)
387
388 hFont := uintptr(font.handleForDPI(tv.DPI()))
389
390 win.SendMessage(tv.hwndFrozenLV, win.WM_SETFONT, hFont, 0)
391 win.SendMessage(tv.hwndNormalLV, win.WM_SETFONT, hFont, 0)
392}
393
394func (tv *TableView) ApplyDPI(dpi int) {
395 tv.style.dpi = dpi

Callers 1

NewTableViewWithCfgFunction · 0.95

Calls 4

applyFontMethod · 0.65
handleForDPIMethod · 0.65
DPIMethod · 0.65
SendMessageMethod · 0.65

Tested by

no test coverage detected