TabAttachedWindowHandleGet

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalWindowHandle TabAttachedWindowHandleGet( SalNumber nTab )

The TabAttachedWindowHandleGet method returns the window handle for the window associated with a tab.

Parameters

Name Description
SalNumber nTab Number of tab to return the window handle for.

Returns

The return value is the window handle of the window associated with the tab. If no window is associated with the tab, hWndNULL is returned.

Example

! Send populate message to the order lines tab
Set hWndOrderLines = TabAttachedWindowHandleGet( picTabs.FindName( 'tabOrderLines' ) )
Call SalSendMCall SalSendMsg( hWndOrderLines, PM_DataSourcePopulate, METHOD_Execute, 0 )
C# coding sample
//Send populate message to the order lines tab
hWndCurrentTab = TabAttachedWindowHandleGet(picTab.FindName( 'tabOrderLines' ));
Sal.SendMsg(hWndOrderLines, Ifs.Fnd.ApplicationForms.Const.PM_DataSourcePopulate,
Ifs.Fnd.ApplicationForms.Const.METHOD_Execute, 0);