Tool tips display in strange location
Jeff Lindholm -- JeffL@inter-intelli.com Thursday, October 31, 1996 Environment: NT 4.0, MSVC 4.2b I am displaying tool tips on my controls and the tool tip displays centered in the control not at the mouse location. Is there any way to force it to the mouse location? Thanks Jeff
Dan Kirby -- dkirby@accessone.com Friday, November 01, 1996 [Mini-digest: 2 responses] Hi, See the documentation and code for CWnd::OnToolHitTest(). The default is to center the tooltip for a non-button control. You can override this function and remove the TTF_CENTERTIP flag from the TOOLINFO structure. Best regards, --dan ---------- > From: Jeff Lindholm> To: 'mfc-l@netcom.com' > Subject: Tool tips display in strange location > Date: Thursday, October 31, 1996 10:26 AM > > Environment: NT 4.0, MSVC 4.2b > > I am displaying tool tips on my controls and the tool tip displays > centered in the control not at the mouse location. Is there any way to > force it to the mouse location? > > Thanks > Jeff > -----From: Dong Chen Try to override the OnToolHitTest() and clear the TTF_CENTERTIP flag of TOOLINFO structure. This flag is set by default if the control is not a button. Hope this help. -- Dong
| Вернуться в корень Архива |