summaryrefslogtreecommitdiffstats
path: root/win/tkWinButton.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2007-12-05 19:07:59 (GMT)
committerhobbs <hobbs>2007-12-05 19:07:59 (GMT)
commit0d077f2a7cafa16f82ed232f0d14f2d99f0921e4 (patch)
tree669e1fed3026d9e8eccee0fd82963040db2e2129 /win/tkWinButton.c
parent7e7893fe4ebe4a4a67623d2fcf69d117cf4039dc (diff)
downloadtk-0d077f2a7cafa16f82ed232f0d14f2d99f0921e4.zip
tk-0d077f2a7cafa16f82ed232f0d14f2d99f0921e4.tar.gz
tk-0d077f2a7cafa16f82ed232f0d14f2d99f0921e4.tar.bz2
* win/tkWinButton.c, win/tkWinDialog.c: use SetWindowLongPtr and
* win/tkWinScrlbr.c, win/tkWinWm.c: GetWindowLongPtr only. * win/ttkWinMonitor.c:
Diffstat (limited to 'win/tkWinButton.c')
-rw-r--r--win/tkWinButton.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/win/tkWinButton.c b/win/tkWinButton.c
index 7a1ed35..63ccf24 100644
--- a/win/tkWinButton.c
+++ b/win/tkWinButton.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinButton.c,v 1.31 2007/01/11 15:35:40 dkf Exp $
+ * RCS: @(#) $Id: tkWinButton.c,v 1.32 2007/12/05 19:08:00 hobbs Exp $
*/
#define OEMRESOURCE
@@ -274,13 +274,8 @@ CreateProc(
parent, NULL, Tk_GetHINSTANCE(), NULL);
SetWindowPos(butPtr->hwnd, HWND_TOP, 0, 0, 0, 0,
SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
-#ifdef _WIN64
butPtr->oldProc = (WNDPROC)SetWindowLongPtr(butPtr->hwnd, GWLP_WNDPROC,
(LONG_PTR) ButtonProc);
-#else
- butPtr->oldProc = (WNDPROC)SetWindowLong(butPtr->hwnd, GWL_WNDPROC,
- (DWORD) ButtonProc);
-#endif
window = Tk_AttachHWND(tkwin, butPtr->hwnd);
return window;
@@ -310,11 +305,7 @@ TkpDestroyButton(
HWND hwnd = winButPtr->hwnd;
if (hwnd) {
-#ifdef _WIN64
SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) winButPtr->oldProc);
-#else
- SetWindowLong(hwnd, GWL_WNDPROC, (DWORD) winButPtr->oldProc);
-#endif
}
}