Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

In MFC, how to get mouse hover item in dropdown combobox in child dialog

What I have tried:

If a dialog is using application window, the pretranslatemessage handles mousemove and mousehover messages for combobox's listbox whereas if the dialog is not using application he pretranslatemessage not captures the mousemove and mousehover messages for combobox's listbox.

Is there any other solution for handling my requirement?
Posted
Updated 24-Apr-17 22:23pm

1 solution

The correct solution is to use TrackMouseEvent for your control window. This API is a bit weired and sets up some messaging for the control. It must be re-enabled every time.

Suddenly I didnt found any nice example, but the best is at the end of this postings.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900