DOC: WinHelp Function Expects a POINTS Structure

Last reviewed: June 16, 1997
Article ID: Q167341
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK)

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.


Additional query words: HELP_SETPOPUP_POS WinHelp POINTS
Keywords : kbfasttip
Platform : NT WINDOWS
Issue type : kbdocerr


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.