Now a tab control seems to be a different kind of breed. Even if it's created solo via API with no static childs and it's parent has the #WS_CLIPCHILDREN style it still fickers.
Code: Select all
OpenWindow(0,0,0,640,480,"void",#WS_OVERLAPPEDWINDOW | #WS_CLIPCHILDREN | 1)
hwndPanel = CreateWindowEx_(0,"SysTabControl32",0,#WS_CHILD | #WS_CLIPSIBLINGS | #WS_VISIBLE,0,0,0,0,WindowID(0),0,0,0)
tci.TC_ITEM
tci\mask = #TCIF_TEXT
tci\pszText = @"untitled1"
SendMessage_(hwndPanel,#TCM_INSERTITEM,0,tci)
tci\pszText = @"untitled2"
SendMessage_(hwndPanel,#TCM_INSERTITEM,1,tci)
tci\pszText = @"untitled3"
SendMessage_(hwndPanel,#TCM_INSERTITEM,2,tci)
Repeat
EventID = WaitWindowEvent()
If EventID = #PB_Event_SizeWindow
MoveWindow_(hwndPanel,10,10,WindowWidth(0)-20,WindowHeight(0)-20,1)
EndIf
Until EventID = #PB_Event_CloseWindow

