Skip to content
Browse files

* generic/tkTreeTheme.c: use Get|SetWindowLongPtr to work with

	Win64. Requires latest Windows headers.
  • Loading branch information...
1 parent 6aa2695 commit 77528a726241e0a6a9a1baf7b5cff6c1ffd3f0b0 hobbs2 committed Feb 28, 2008
Showing with 8 additions and 3 deletions.
  1. +5 −0 ChangeLog
  2. +3 −3 generic/tkTreeTheme.c
View
5 ChangeLog
@@ -1,3 +1,8 @@
+2008-02-27 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * generic/tkTreeTheme.c: use Get|SetWindowLongPtr to work with
+ Win64. Requires latest Windows headers.
+
2008-02-23 Jeff Hobbs <jeffh@ActiveState.com>
* generic/tkTreeTheme.c (DllMain): get module at dll load time to
View
6 generic/tkTreeTheme.c
@@ -5,7 +5,7 @@
*
* Copyright (c) 2006-2008 Tim Baker
*
- * RCS: @(#) $Id: tkTreeTheme.c,v 1.24 2008/02/23 22:16:53 hobbs2 Exp $
+ * RCS: @(#) $Id: tkTreeTheme.c,v 1.25 2008/02/28 00:25:07 hobbs2 Exp $
*/
#if defined(WIN32) || defined(_WIN32)
@@ -755,7 +755,7 @@ TreeTheme_Relayout(
static LRESULT WINAPI
WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
{
- Tcl_Interp *interp = (Tcl_Interp *)GetWindowLong(hwnd, GWL_USERDATA);
+ Tcl_Interp *interp = (Tcl_Interp *)GetWindowLongPtr(hwnd, GWLP_USERDATA);
switch (msg) {
case WM_THEMECHANGED:
@@ -805,7 +805,7 @@ CreateThemeMonitorWindow(HINSTANCE hinst, Tcl_Interp *interp)
if (!hwnd)
return NULL;
- SetWindowLong(hwnd, GWL_USERDATA, (LONG)interp);
+ SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG)interp);
ShowWindow(hwnd, SW_HIDE);
UpdateWindow(hwnd);

0 comments on commit 77528a7

Please sign in to comment.
Something went wrong with that request. Please try again.