DOC: WinHelp Function Expects a POINTS Structure (167341)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0

This article was previously published under Q167341

SUMMARY

The Remarks documentation for the function WinHelp() regarding the fourth parameter (DWORD dWord // other info) incorrectly states:

HELP_SETPOPUP_POS Sets the position of the subsequent pop-up window.
Address of a POINTS structure. The pop-up window is positioned as if the mouse cursor were at the specified point when the pop-up window is invoked.

The function actually expects a POINTS structure, rather than an address to the structure. When you pass an address, a misplaced pop-up menu appears.

You can pass the information to WinHelp() by using the MAKELONG macro to set the fourth parameter as follows:

dWord = MAKELONG(left,top)

where the two parameters represent the desired positions of the pop-up menu.

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbdocerr KB167341