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