summaryrefslogtreecommitdiffstats
path: root/win/ttkWinMonitor.c
diff options
context:
space:
mode:
authorJoe Mistachkin <joe@mistachkin.com>2007-02-04 00:10:54 (GMT)
committerJoe Mistachkin <joe@mistachkin.com>2007-02-04 00:10:54 (GMT)
commit564a18890f8852cc78182cfec2cabfb6cb61b2e7 (patch)
treea7200b20603fda137b889e26b614b01d8df86d05 /win/ttkWinMonitor.c
parenta74254940bbc0421f26970bcd3a16b660ae0527e (diff)
downloadtk-564a18890f8852cc78182cfec2cabfb6cb61b2e7.zip
tk-564a18890f8852cc78182cfec2cabfb6cb61b2e7.tar.gz
tk-564a18890f8852cc78182cfec2cabfb6cb61b2e7.tar.bz2
see log
Diffstat (limited to 'win/ttkWinMonitor.c')
-rw-r--r--win/ttkWinMonitor.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/win/ttkWinMonitor.c b/win/ttkWinMonitor.c
index bf23e39..c0198d9 100644
--- a/win/ttkWinMonitor.c
+++ b/win/ttkWinMonitor.c
@@ -1,4 +1,4 @@
-/* $Id: ttkWinMonitor.c,v 1.6 2007/01/11 19:59:26 jenglish Exp $
+/* $Id: ttkWinMonitor.c,v 1.7 2007/02/04 00:10:55 mistachkin Exp $
*/
#ifdef _MSC_VER
@@ -98,7 +98,11 @@ CreateThemeMonitorWindow(HINSTANCE hinst, Tcl_Interp *interp)
hwnd = CreateWindow( name, title, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
NULL, NULL, hinst, NULL );
+#ifdef _WIN64
SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG)interp);
+#else
+ SetWindowLong(hwnd, GWL_USERDATA, (LONG)interp);
+#endif
ShowWindow(hwnd, SW_HIDE);
UpdateWindow(hwnd);
}
@@ -115,7 +119,11 @@ DestroyThemeMonitorWindow(void *clientData)
static LRESULT WINAPI
WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
{
+#ifdef _WIN64
Tcl_Interp *interp = (Tcl_Interp *)GetWindowLongPtr(hwnd, GWLP_USERDATA);
+#else
+ Tcl_Interp *interp = (Tcl_Interp *)GetWindowLong(hwnd, GWL_USERDATA);
+#endif
Ttk_Theme theme;
switch (msg) {