func newTab() Tab { hwnd := C.newControl(C.xWC_TABCONTROL, C.TCS_TOOLTIPS|C.WS_TABSTOP, 0) t := &tab{ _hwnd: hwnd, } C.controlSetControlFont(t._hwnd) C.setTabSubclass(t._hwnd, unsafe.Pointer(t)) return t }
func newTab() Tab { hwnd := C.newControl(C.xWC_TABCONTROL, C.TCS_TOOLTIPS|C.WS_TABSTOP, 0) // don't set WS_EX_CONTROLPARENT here; see uitask_windows.c t := &tab{ _hwnd: hwnd, } C.controlSetControlFont(t._hwnd) C.setTabSubclass(t._hwnd, unsafe.Pointer(t)) return t }
func newTab() Tab { hwnd := C.newControl(C.xWC_TABCONTROL, C.TCS_TOOLTIPS|C.WS_TABSTOP, 0) // don't set WS_EX_CONTROLPARENT here; see uitask_windows.c t := &tab{ controlSingleHWND: newControlSingleHWND(hwnd), } t.fpreferredSize = t.xpreferredSize t.chainresize = t.fresize t.fresize = t.xresize // count tabs as 1 tab stop; the actual number of tab stops varies C.controlSetControlFont(t.hwnd) C.setTabSubclass(t.hwnd, unsafe.Pointer(t)) return t }