WinHelp_GetCurWindow()

Examples


The WinHelp_GetCurWindow() function returns the resource ID of the currently-active window.

Syntax

WinHelp_GetCurWindow()

Parameters

• None

Return value

An integer containing the resource ID of the current window.

Comments

This function is typically used in the help processing procedure script for applications that integrate with Microsoft Dynamics GP. When help is accessed for a window or window field, the WinHelp_GetCurWindow() function is used to find out whether help was requested for an alternate Microsoft Dynamics GP window or a third-party window. If the resource ID returned is below 20,000, then the currently-active window is a Microsoft Dynamics GP window. If the resource ID returned is 22,000 or greater, the window is a third-party window.


Documentation Feedback