◄Message Group► ◄Function Group► ◄Overview► ◄Up► ◄Next► ◄Previous► ──────────────────────────────────────────────────────────────────────────── #define INCL_WINHELP HM_SET_ACTIVE_WINDOW mp1 = MPFROMHWND(hwndActiveWindow); /* active-window handle */ mp2 = MPFROMHWND(hwndRelativeWindow); /* application-window handle */ An application sends an HM_SET_ACTIVE_WINDOW message to a help window to set the active and relative windows. The active window is the window to which the system sends help messages. The relative window is the window next to which the system displays the help window. Parameter Description ──────────────────────────────────────────────────────────────────────────── hwndActiveWindow Low and high word of mp1. Identifies the active window. This value can be a window handle or NULL. If this parameter is NULL, the active and relative windows are determined by the system. hwndRelativeWindow Low and high word of mp2. Identifies the relative window. This value can be a window handle or HWND_PARENT. If the value is HWND_PARENT, the system sets the relative window to be the parent window of the active window. Return Value The return value is FALSE. See Also WinAssociateHelpInstance ♦