Mercurial > dwindows
comparison win/dw.c @ 1846:905f8632005b
When handling click default, return instead of running the default handler on Windows.
The default handler causes a bell sound on some versions of Windows...
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 27 Dec 2012 13:03:47 +0000 |
parents | 123d1a900f54 |
children | 4790589f52a9 |
comparison
equal
deleted
inserted
replaced
1845:6ab13f213847 | 1846:905f8632005b |
---|---|
2739 { | 2739 { |
2740 | 2740 |
2741 if ( cinfo->clickdefault ) | 2741 if ( cinfo->clickdefault ) |
2742 { | 2742 { |
2743 _click_default(cinfo->clickdefault); | 2743 _click_default(cinfo->clickdefault); |
2744 return (LRESULT)TRUE; | |
2744 } | 2745 } |
2745 else | 2746 else |
2746 { | 2747 { |
2747 /* | 2748 /* |
2748 * Find the toplevel window for the current window and check if it | 2749 * Find the toplevel window for the current window and check if it |
2751 HWND tl = _toplevel_window( hWnd ); | 2752 HWND tl = _toplevel_window( hWnd ); |
2752 ColorInfo *mycinfo = (ColorInfo *)GetWindowLongPtr( tl, GWLP_USERDATA ); | 2753 ColorInfo *mycinfo = (ColorInfo *)GetWindowLongPtr( tl, GWLP_USERDATA ); |
2753 if ( mycinfo && mycinfo->clickdefault ) | 2754 if ( mycinfo && mycinfo->clickdefault ) |
2754 { | 2755 { |
2755 _click_default( mycinfo->clickdefault ); | 2756 _click_default( mycinfo->clickdefault ); |
2757 return (LRESULT)TRUE; | |
2756 } | 2758 } |
2757 } | 2759 } |
2758 } | 2760 } |
2759 | 2761 |
2760 /* Tell the spinner control that a keypress has | 2762 /* Tell the spinner control that a keypress has |