Changeset 21602 for trunk/src/shell32/systray_os2.c
- Timestamp:
- Mar 23, 2011, 11:44:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/systray_os2.c
r21592 r21602 9 9 10 10 #define INCL_WIN 11 #include <os2wrap.h> 11 #include <os2wrap.h> // Odin32 OS/2 api wrappers 12 13 #include <win32api.h> 12 14 13 15 #include <string.h> 14 15 #include <odin.h>16 #include <winconst.h>17 16 18 17 #include "systray_os2.h" … … 44 43 return (MRESULT)TRUE; 45 44 case WM_BUTTON1DBLCLK|0x2000: 46 DoWin32PostMessage(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage,47 (MPARAM)ptrayItem->notifyIcon.uID, (MPARAM)WM_LBUTTONDBLCLK_W);45 PostMessageA(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage, 46 (WPARAM)ptrayItem->notifyIcon.uID, (LPARAM)WM_LBUTTONDBLCLK_W); 48 47 return (MRESULT)FALSE; 49 48 case WM_BUTTON2DBLCLK|0x2000: 50 DoWin32PostMessage(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage,51 (MPARAM)ptrayItem->notifyIcon.uID, (MPARAM)WM_RBUTTONDBLCLK_W);49 PostMessageA(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage, 50 (WPARAM)ptrayItem->notifyIcon.uID, (LPARAM)WM_RBUTTONDBLCLK_W); 52 51 return (MRESULT)FALSE; 53 52 case WM_BUTTON3DBLCLK|0x2000: 54 DoWin32PostMessage(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage,55 (MPARAM)ptrayItem->notifyIcon.uID, (MPARAM)WM_MBUTTONDBLCLK_W);53 PostMessageA(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage, 54 (WPARAM)ptrayItem->notifyIcon.uID, (LPARAM)WM_MBUTTONDBLCLK_W); 56 55 return (MRESULT)FALSE; 57 56 case WM_BUTTON1UP|0x2000: 58 DoWin32PostMessage(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage,59 (MPARAM)ptrayItem->notifyIcon.uID, (MPARAM)WM_LBUTTONUP_W);57 PostMessageA(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage, 58 (WPARAM)ptrayItem->notifyIcon.uID, (LPARAM)WM_LBUTTONUP_W); 60 59 return (MRESULT)FALSE; 61 60 case WM_BUTTON2UP|0x2000: 62 DoWin32PostMessage(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage,63 (MPARAM)ptrayItem->notifyIcon.uID, (MPARAM)WM_RBUTTONUP_W);61 PostMessageA(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage, 62 (WPARAM)ptrayItem->notifyIcon.uID, (LPARAM)WM_RBUTTONUP_W); 64 63 return (MRESULT)FALSE; 65 64 case WM_BUTTON3UP|0x2000: 66 DoWin32PostMessage(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage,67 (MPARAM)ptrayItem->notifyIcon.uID, (MPARAM)WM_MBUTTONUP_W);65 PostMessageA(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage, 66 (WPARAM)ptrayItem->notifyIcon.uID, (LPARAM)WM_MBUTTONUP_W); 68 67 return (MRESULT)FALSE; 69 68 case WM_BUTTON1DOWN|0x2000: 70 DoWin32PostMessage(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage,71 (MPARAM)ptrayItem->notifyIcon.uID, (MPARAM)WM_LBUTTONDOWN_W);69 PostMessageA(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage, 70 (WPARAM)ptrayItem->notifyIcon.uID, (LPARAM)WM_LBUTTONDOWN_W); 72 71 return (MRESULT)FALSE; 73 72 case WM_BUTTON2DOWN|0x2000: 74 DoWin32PostMessage(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage,75 (MPARAM)ptrayItem->notifyIcon.uID, (MPARAM)WM_RBUTTONDOWN_W);73 PostMessageA(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage, 74 (WPARAM)ptrayItem->notifyIcon.uID, (LPARAM)WM_RBUTTONDOWN_W); 76 75 return (MRESULT)FALSE; 77 76 case WM_BUTTON3DOWN|0x2000: 78 DoWin32PostMessage(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage,79 (MPARAM)ptrayItem->notifyIcon.uID, (MPARAM)WM_MBUTTONDOWN_W);77 PostMessageA(ptrayItem->notifyIcon.hWnd, ptrayItem->notifyIcon.uCallbackMessage, 78 (WPARAM)ptrayItem->notifyIcon.uID, (LPARAM)WM_MBUTTONDOWN_W); 80 79 return (MRESULT)FALSE; 81 80 }
Note:
See TracChangeset
for help on using the changeset viewer.