Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.2 KiB

7 years ago
  1. --- a/dlls/user32/message.c
  2. +++ b/dlls/user32/message.c
  3. @@ -22,6 +22,7 @@
  4. #include "config.h"
  5. #include "wine/port.h"
  6. +#include <stdio.h>
  7. #include <assert.h>
  8. #include <stdarg.h>
  9. @@ -46,6 +47,7 @@
  10. #include "controls.h"
  11. #include "wine/debug.h"
  12. #include "wine/exception.h"
  13. +#include <commctrl.h>
  14. WINE_DEFAULT_DEBUG_CHANNEL(msg);
  15. WINE_DECLARE_DEBUG_CHANNEL(relay);
  16. @@ -3463,7 +3465,23 @@
  17. info.flags = SMTO_NORMAL;
  18. info.timeout = 0;
  19. - send_message( &info, &res, TRUE );
  20. + send_message( &info, &res, TRUE );
  21. +
  22. + if ( msg == TTM_TRACKACTIVATE )
  23. + {
  24. +
  25. + if ( wparam == TRUE )
  26. + {
  27. + ShowWindow( hwnd, 1 );
  28. + }
  29. + else
  30. + if ( wparam == FALSE )
  31. + {
  32. + ShowWindow( hwnd, 0 );
  33. + }
  34. +
  35. + }
  36. +
  37. return res;
  38. }
  39. @@ -3486,6 +3504,22 @@
  40. info.wm_char = WMCHAR_MAP_SENDMESSAGE;
  41. send_message( &info, &res, FALSE );
  42. +
  43. + if ( msg == TTM_TRACKACTIVATE )
  44. + {
  45. +
  46. + if ( wparam == TRUE )
  47. + {
  48. + ShowWindow( hwnd, 1 );
  49. + }
  50. + else
  51. + if ( wparam == FALSE )
  52. + {
  53. + ShowWindow( hwnd, 0 );
  54. + }
  55. +
  56. + }
  57. +
  58. return res;
  59. }