Static control SS_NOTIFY mouse clicks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ChangeLog: -Static controls sending STN_CLICKED ad STN_DBLCLK messages
to parent window if SS_NOTIFY enabled.

------- patch.diff start --------
Index: controls/static.c
===================================================================
RCS file: /home/wine/wine/controls/static.c,v
retrieving revision 1.42
diff -c -r1.42 static.c
*** controls/static.c	11 Aug 2003 18:43:07 -0000	1.42
--- controls/static.c	22 Aug 2003 18:53:09 -0000
***************
*** 352,357 ****
--- 352,373 ----
      case WM_GETDLGCODE:
          return DLGC_STATIC;
  
+     case WM_LBUTTONDOWN:
+     case WM_NCLBUTTONDOWN:
+         if (SS_NOTIFY)
+                 SendMessageW( GetParent(hwnd), WM_COMMAND,
+                               MAKEWPARAM( GetWindowLongA(hwnd,GWL_ID),
+                               STN_CLICKED ), (LPARAM)hwnd);
+          return 0;
+

+     case WM_LBUTTONDBLCLK:
+     case WM_NCLBUTTONDBLCLK:
+         if (SS_NOTIFY)
+                 SendMessageW( GetParent(hwnd), WM_COMMAND,
+                               MAKEWPARAM( GetWindowLongA(hwnd,GWL_ID),
+                               STN_DBLCLK ), (LPARAM)hwnd);
+          return 0;
+ 
      case STM_GETIMAGE:
      case STM_GETICON16:
      case STM_GETICON:
------- patch.diff end --------

Igor Grahek



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux