Added WS_EX_CONTROLPARENT to container and Tab on Windows.
This commit is contained in:
parent
d060977cc7
commit
2146ac2af3
|
@ -72,7 +72,7 @@ HWND newContainer(void *data)
|
||||||
HWND hwnd;
|
HWND hwnd;
|
||||||
|
|
||||||
hwnd = CreateWindowExW(
|
hwnd = CreateWindowExW(
|
||||||
0,
|
WS_EX_CONTROLPARENT,
|
||||||
containerclass, L"",
|
containerclass, L"",
|
||||||
WS_CHILD | WS_VISIBLE,
|
WS_CHILD | WS_VISIBLE,
|
||||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||||
|
|
|
@ -23,7 +23,7 @@ type tab struct {
|
||||||
func newTab() Tab {
|
func newTab() Tab {
|
||||||
hwnd := C.newControl(C.xWC_TABCONTROL,
|
hwnd := C.newControl(C.xWC_TABCONTROL,
|
||||||
C.TCS_TOOLTIPS | C.WS_TABSTOP,
|
C.TCS_TOOLTIPS | C.WS_TABSTOP,
|
||||||
0)
|
C.WS_EX_CONTROLPARENT)
|
||||||
t := &tab{
|
t := &tab{
|
||||||
_hwnd: hwnd,
|
_hwnd: hwnd,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue