summaryrefslogtreecommitdiffstats
path: root/win/ttkWinMonitor.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2007-12-05 19:07:59 (GMT)
committerhobbs <hobbs@noemail.net>2007-12-05 19:07:59 (GMT)
commit05bc2eeb5cc4faebb0fcbd37d4e95f682a06027d (patch)
tree669e1fed3026d9e8eccee0fd82963040db2e2129 /win/ttkWinMonitor.c
parentb6fa853321ea075420b222951e75712d734d0653 (diff)
downloadtk-05bc2eeb5cc4faebb0fcbd37d4e95f682a06027d.zip
tk-05bc2eeb5cc4faebb0fcbd37d4e95f682a06027d.tar.gz
tk-05bc2eeb5cc4faebb0fcbd37d4e95f682a06027d.tar.bz2
* win/tkWinButton.c, win/tkWinDialog.c: use SetWindowLongPtr and
* win/tkWinScrlbr.c, win/tkWinWm.c: GetWindowLongPtr only. * win/ttkWinMonitor.c: FossilOrigin-Name: cd313364da3ae8c04f92ed28df419a2e5c5ec07c
Diffstat (limited to 'win/ttkWinMonitor.c')
-rw-r--r--win/ttkWinMonitor.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/win/ttkWinMonitor.c b/win/ttkWinMonitor.c
index cdfc2e6..2856365 100644
--- a/win/ttkWinMonitor.c
+++ b/win/ttkWinMonitor.c
@@ -1,4 +1,4 @@
-/* $Id: ttkWinMonitor.c,v 1.13 2007/10/25 07:08:26 jenglish Exp $
+/* $Id: ttkWinMonitor.c,v 1.14 2007/12/05 19:08:00 hobbs Exp $
*/
#ifdef _MSC_VER
@@ -96,11 +96,7 @@ 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);
}
@@ -117,11 +113,7 @@ 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) {