Changeset 7195 for trunk/src/user32/menu.cpp
- Timestamp:
- Oct 24, 2001, 5:41:54 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/menu.cpp
r7079 r7195 1 /* $Id: menu.cpp,v 1.3 8 2001-10-16 14:49:45sandervl Exp $*/1 /* $Id: menu.cpp,v 1.39 2001-10-24 15:41:53 sandervl Exp $*/ 2 2 /* 3 3 * Menu functions … … 35 35 #include "pmwindow.h" 36 36 #include "win32wmisc.h" 37 #include "oslibmsg.h" 37 38 38 39 #define DBG_LOCALLOG DBG_menu … … 2827 2828 } 2828 2829 2829 //EVENT_Capture( mt.hOwnerWnd, HTMENU ); //CB: todo 2830 #ifdef __WIN32OS2__ 2830 2831 //SvL: Set keyboard & mouse event capture 2831 2832 SetCapture(mt.hOwnerWnd); 2833 //SetCapture breaks system menu (double click), must generate double 2834 //clicks manually 2835 SetMenuDoubleClick(TRUE); 2836 #else 2837 EVENT_Capture( mt.hOwnerWnd, HTMENU ); 2838 #endif 2832 2839 2833 2840 while (!fEndMenu) … … 2838 2845 /* we have to keep the message in the queue until it's 2839 2846 * clear that menu loop is not over yet. */ 2840 // if (!GetMessageA(&msg,msg.hwnd,0,0)) break; 2847 #ifdef __WIN32OS2__ 2841 2848 //SvL: Getting messages for only the menu delays background paints (i.e. VPBuddy logo) 2842 2849 if (!GetMessageA(&msg,0,0,0)) break; 2850 #else 2851 if (!GetMessageA(&msg,msg.hwnd,0,0)) break; 2852 #endif 2843 2853 TranslateMessage( &msg ); 2844 2854 mt.pt = msg.pt; … … 2868 2878 if (bSysMenu && (hmenu == mt.hTopMenu)) 2869 2879 { 2880 #ifdef __WIN32OS2__ 2881 //double click on system menu -> close application 2882 PostMessageA(hwnd, WM_SYSCOMMAND,SC_CLOSE, msg.lParam); 2883 #endif 2870 2884 fEndMenu = TRUE; 2871 2885 break; … … 3062 3076 else if (msg.message == WM_SYSCOMMAND) 3063 3077 { 3064 3065 fEndMenu = TRUE;3066 break;3078 /* The user clicked on the system menu/button */ 3079 fEndMenu = TRUE; 3080 break; 3067 3081 } 3068 3082 else … … 3079 3093 else mt.trackFlags &= ~TF_SKIPREMOVE; 3080 3094 } 3081 3095 #ifdef __WIN32OS2__ 3096 SetMenuDoubleClick(FALSE); 3082 3097 ReleaseCapture(); 3098 #endif 3083 3099 3084 3100 menu = MENU_GetMenu(mt.hTopMenu);
Note:
See TracChangeset
for help on using the changeset viewer.