Returns the index of the item that has the focus in a tab control. This is a simple wrapper around Win32 function (actually a macro).
$index = TabCtrl_GetCurFocus( $hwnd );
Handle to the tab control
Index of an item which has a focus