Fondamentalmente chiamo TrackMouseEvent nel mio WM_CREATE quindi lo chiamo di nuovo dopo un WM_MOUSELEAVE ma questo blocca il mio programma. Dove dovrei essere incollato? GrazieTrackMouseEvent not working
7
A
risposta
13
È necessario chiamare TrackMouseEvent
quando il mouse entra nel controllo e non quando lascia il proprio controllo.
È possibile chiamare TrackMouseEvent
sul messaggio WM_MOUSEMOVE
. Non è necessario chiamare TrackMouseEvent
ogni volta che viene attivato WM_MOUSEMOVE
, solo una volta fino a quando non si ottiene un altro WM_MOUSELEAVE
. Dopo aver ottenuto il numero WM_MOUSELEAVE
, puoi impostare un po 'di flag in modo che la prossima chiamata a WM_MOUSEMOVE
saprà di nuovo di chiamare TrackMouseEvent
.
Fondamentalmente è possibile emulare un WM_MOUSEENTER
fittizio utilizzando WM_MOUSEMOVE
e con questo set di flag.
Problemi correlati
- 1. AfterPublish target not working
- 2. first-child not working
- 3. Git Revert Not Working
- 4. Display: inline not working
- 5. ActivityCompat.requestPermissions not working
- 6. ExceptionNotifier.notify_exception not working
- 7. TouchableHighlight onPress not working
- 8. cakePHP isAuthorized not working
- 9. RACObserve not working
- 10. TableColumn setPreferredWidth not working
- 11. Translation cakephp not working
- 12. dismissViewControllerAnimated not working
- 13. AVAudioSession setCategory not working
- 14. context.SaveChanges not working
- 15. NetworkCredential UseDefaultCredentials not working
- 16. UIView shadow not working
- 17. FragmentPagerAdapter notifyDataSetChanged not working
- 18. setTimeout delay not working
- 19. Reaper Reaper not working
- 20. jQuery delay not working
- 21. Phalcon save not working
- 22. Swift SequenceType not working
- 23. Spring @Transactional not working
- 24. Jquery Nice scroll not working
- 25. Laravel 5.2 Auth not Working
- 26. iOS7 UIScrollView contentInset not working
- 27. iterm vim colorscheme not working
- 28. Yahoo Exchange Rates not working
- 29. UIButton setTitle forState Not Working
- 30. DialogFragment setCancelable property not working
Quale evento è? – jmasterx
@ user146780: Vedi modifica –