Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tooltip issue with dialog app Pin
David Crow27-Mar-12 9:47
David Crow27-Mar-12 9:47 
GeneralRe: Tooltip issue with dialog app Pin
Code-o-mat27-Mar-12 10:48
Code-o-mat27-Mar-12 10:48 
GeneralRe: Tooltip issue with dialog app Pin
David Crow27-Mar-12 10:58
David Crow27-Mar-12 10:58 
GeneralRe: Tooltip issue with dialog app Pin
Code-o-mat27-Mar-12 11:28
Code-o-mat27-Mar-12 11:28 
GeneralRe: Tooltip issue with dialog app Pin
David Crow27-Mar-12 17:06
David Crow27-Mar-12 17:06 
GeneralRe: Tooltip issue with dialog app Pin
Randor 27-Mar-12 13:58
professional Randor 27-Mar-12 13:58 
GeneralRe: Tooltip issue with dialog app Pin
David Crow27-Mar-12 17:10
David Crow27-Mar-12 17:10 
GeneralRe: Tooltip issue with dialog app Pin
Randor 27-Mar-12 22:19
professional Randor 27-Mar-12 22:19 
Hey David,

DavidCrow wrote:
The message is 512 (WM_MOUSEFIRST).

Well the WM_MOUSEFIRST definition is not a window message it was defined to make it easier to find the range of mouse message with WM_MOUSEFIRST/WM_MOUSELAST. However WM_MOUSEFIRST is equal to WM_MOUSEMOVE. It is actually the WM_MOUSEMOVE message being processed.

DavidCrow wrote:
It's as though a second tooltip window is being requested (i.e., a tooltip for a
tooltip?) before the first one is completely destroyed.


My guess:
I would guess that it might have something to do with the way your creating or passing the CWnd that owns the tooltip. The MFC framework probably expects the handle to the owner CWnd to be in the permanent handle map. I suspect that what is happening... is that a CTempWnd object owns the tooltip... and the MFC framework is deleting the temporary CTempWnd object. When you move your mouse over the tooltip the memory address at m_hWnd may be invalid because the CTempWnd was deleted. This is the only thing I can think of that would cause what you decribe.

Are you using the GetDlgItem function anywhere? Because when GetDlgItem cannot find a permanent object in the MFC CHandleMap it will return a pointer to a temporary CTempWnd object. You should never pass the HWND returned from GetDlgItem to other functions...

Could you tell me more about the window that owns the tooltip?

Also... please call CWnd::FromHandlePermanent()[^] to check if the tooltips owner CWnd is in the MFC permanent handle map. If it returns NULL then this is most likely your problem and we can fix it.

Best Wishes,
-David Delaune
GeneralRe: Tooltip issue with dialog app Pin
David Crow28-Mar-12 2:30
David Crow28-Mar-12 2:30 
AnswerRe: Tooltip issue with dialog app Pin
Jochen Arndt28-Mar-12 3:40
professionalJochen Arndt28-Mar-12 3:40 
GeneralRe: Tooltip issue with dialog app Pin
David Crow28-Mar-12 3:46
David Crow28-Mar-12 3:46 
GeneralRe: Tooltip issue with dialog app Pin
Jochen Arndt28-Mar-12 3:59
professionalJochen Arndt28-Mar-12 3:59 
GeneralRe: Tooltip issue with dialog app Pin
David Crow28-Mar-12 4:07
David Crow28-Mar-12 4:07 
SuggestionRe: Tooltip issue with dialog app Pin
Jochen Arndt28-Mar-12 5:02
professionalJochen Arndt28-Mar-12 5:02 
GeneralRe: Tooltip issue with dialog app Pin
Randor 28-Mar-12 8:24
professional Randor 28-Mar-12 8:24 
QuestionRe: Tooltip issue with dialog app Pin
David Crow28-Mar-12 8:59
David Crow28-Mar-12 8:59 
QuestionRe: Tooltip issue with dialog app Pin
Randor 28-Mar-12 9:43
professional Randor 28-Mar-12 9:43 
AnswerRe: Tooltip issue with dialog app Pin
David Crow28-Mar-12 9:49
David Crow28-Mar-12 9:49 
GeneralRe: Tooltip issue with dialog app Pin
Randor 28-Mar-12 10:10
professional Randor 28-Mar-12 10:10 
GeneralRe: Tooltip issue with dialog app Pin
David Crow28-Mar-12 10:25
David Crow28-Mar-12 10:25 
GeneralRe: Tooltip issue with dialog app Pin
Randor 28-Mar-12 11:31
professional Randor 28-Mar-12 11:31 
GeneralRe: Tooltip issue with dialog app Pin
David Crow28-Mar-12 16:59
David Crow28-Mar-12 16:59 
GeneralRe: Tooltip issue with dialog app Pin
Randor 28-Mar-12 17:16
professional Randor 28-Mar-12 17:16 
QuestionHow to do rate control when send Transfer Stream Data? [Solved] Pin
yu-jian27-Mar-12 5:43
yu-jian27-Mar-12 5:43 
AnswerRe: How to do rate control when send Transfer Stream Data? Pin
Albert Holguin27-Mar-12 8:06
professionalAlbert Holguin27-Mar-12 8:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.