summaryrefslogtreecommitdiffstats
path: root/win/tkWinDialog.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/tkWinDialog.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/tkWinDialog.c')
-rw-r--r--win/tkWinDialog.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index b3203fd..20029b0 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinDialog.c,v 1.47 2007/10/25 21:44:23 hobbs Exp $
+ * RCS: @(#) $Id: tkWinDialog.c,v 1.48 2007/12/05 19:08:00 hobbs Exp $
*
*/
@@ -124,21 +124,12 @@ static const struct {int type; int btnIds[3];} allowedTypes[] = {
* Abstract trivial differences between Win32 and Win64.
*/
-#ifdef _WIN64
#define TkWinGetHInstance(from) \
((HINSTANCE) GetWindowLongPtr((from), GWLP_HINSTANCE))
#define TkWinGetUserData(from) \
GetWindowLongPtr((from), GWLP_USERDATA)
#define TkWinSetUserData(to,what) \
SetWindowLongPtr((to), GWLP_USERDATA, (LPARAM)(what))
-#else
-#define TkWinGetHInstance(from) \
- ((HINSTANCE) GetWindowLong((from), GWL_HINSTANCE))
-#define TkWinGetUserData(from) \
- GetWindowLong((from), GWL_USERDATA)
-#define TkWinSetUserData(to,what) \
- SetWindowLong((to), GWL_USERDATA, (LPARAM)(what))
-#endif
/*
* The value of TK_MULTI_MAX_PATH dictactes how many files can be retrieved