head	1.18;
access;
symbols
	core-8-5-9:1.16.2.1
	core-8-5-8:1.16
	macosx-cocoa-merge:1.16
	macosx-cocoa-premerge:1.16
	macosx-carbon-freeze:1.16
	core-8-5-7:1.16
	core-8-5-6:1.16
	core-8-6-b1:1.16
	core-8-6-a3:1.16
	core-8-5-5:1.16
	core-8-6-a2:1.16
	core-8-5-4:1.16
	core-8-5-3:1.16
	core-8-6-a1:1.16
	core-8-5-branch:1.16.0.2
	core-8-5-2:1.16
	core-8-5-1:1.16
	core-8-5-0:1.16
	core-8-5-b3:1.13
	core-8-5-b2:1.13
	core-8-5-b1:1.12
	core-stablilizer-merge:1.10
	core-stabilizer-branch:1.10.0.2
	core-stabilizer-merge:1.16
	core-8-5-a6:1.10;
locks; strict;
comment	@ * @;


1.18
date	2010.11.29.09.07.13;	author nijtmans;	state Exp;
branches;
next	1.17;

1.17
date	2010.04.29.15.28.04;	author nijtmans;	state Exp;
branches;
next	1.16;

1.16
date	2007.12.13.15.28.56;	author dgp;	state Exp;
branches
	1.16.2.1;
next	1.15;

1.15
date	2007.12.10.12.03.55;	author patthoyts;	state Exp;
branches;
next	1.14;

1.14
date	2007.12.05.19.08.00;	author hobbs;	state Exp;
branches;
next	1.13;

1.13
date	2007.10.25.07.08.26;	author jenglish;	state Exp;
branches;
next	1.12;

1.12
date	2007.09.08.16.13.45;	author dkf;	state Exp;
branches;
next	1.11;

1.11
date	2007.09.07.00.34.58;	author dgp;	state Exp;
branches;
next	1.10;

1.10
date	2007.04.17.14.32.28;	author dkf;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	2007.04.10.18.05.48;	author jenglish;	state Exp;
branches;
next	1.8;

1.8
date	2007.02.22.13.56.35;	author dkf;	state Exp;
branches;
next	1.7;

1.7
date	2007.02.04.00.10.55;	author mistachkin;	state Exp;
branches;
next	1.6;

1.6
date	2007.01.11.19.59.26;	author jenglish;	state Exp;
branches;
next	1.5;

1.5
date	2007.01.11.15.35.41;	author dkf;	state Exp;
branches;
next	1.4;

1.4
date	2006.11.03.15.42.42;	author patthoyts;	state Exp;
branches;
next	1.3;

1.3
date	2006.11.03.14.42.09;	author das;	state Exp;
branches;
next	1.2;

1.2
date	2006.11.03.03.06.22;	author das;	state Exp;
branches;
next	1.1;

1.1
date	2006.10.31.01.42.28;	author hobbs;	state Exp;
branches;
next	;

1.10.2.1
date	2007.09.07.01.25.41;	author dgp;	state Exp;
branches;
next	1.10.2.2;

1.10.2.2
date	2007.09.09.04.15.55;	author dgp;	state Exp;
branches;
next	1.10.2.3;

1.10.2.3
date	2007.10.27.04.23.18;	author dgp;	state Exp;
branches;
next	1.10.2.4;

1.10.2.4
date	2007.12.05.20.26.47;	author dgp;	state Exp;
branches;
next	1.10.2.5;

1.10.2.5
date	2007.12.10.18.39.33;	author dgp;	state Exp;
branches;
next	;

1.16.2.1
date	2010.08.26.02.06.10;	author hobbs;	state Exp;
branches;
next	;


desc
@@


1.18
log
@Fix various 64-bit gcc(-4.5.2) warnings: cast from pointer to integer of different size
@
text
@/* $Id: ttkWinMonitor.c,v 1.17 2010/04/29 15:28:04 nijtmans Exp $
 */

#ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN
#endif

#include <tkWinInt.h>
#include "ttk/ttkTheme.h"

#if !defined(WM_THEMECHANGED)
#define WM_THEMECHANGED 0x031A
#endif

static LRESULT WINAPI WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp);

/*
 * RegisterSystemColors --
 *	Register all known Windows system colors (as per GetSysColor) as Tk
 *	named colors.
 */

typedef struct {
    const char *name;
    int index;
} SystemColorEntry;

static SystemColorEntry sysColors[] = {
	{ "System3dDarkShadow",		COLOR_3DDKSHADOW },
	{ "System3dLight",		COLOR_3DLIGHT },
	{ "SystemActiveBorder",		COLOR_ACTIVEBORDER },
	{ "SystemActiveCaption",	COLOR_ACTIVECAPTION },
	{ "SystemAppWorkspace",		COLOR_APPWORKSPACE },
	{ "SystemBackground",		COLOR_BACKGROUND },
	{ "SystemButtonFace",		COLOR_BTNFACE },
	{ "SystemButtonHighlight",	COLOR_BTNHIGHLIGHT },
	{ "SystemButtonShadow",		COLOR_BTNSHADOW },
	{ "SystemButtonText",		COLOR_BTNTEXT },
	{ "SystemCaptionText",		COLOR_CAPTIONTEXT },
	{ "SystemDisabledText",		COLOR_GRAYTEXT },
	{ "SystemGrayText",		COLOR_GRAYTEXT },
	{ "SystemHighlight",		COLOR_HIGHLIGHT },
	{ "SystemHighlightText",	COLOR_HIGHLIGHTTEXT },
	{ "SystemInactiveBorder",	COLOR_INACTIVEBORDER },
	{ "SystemInactiveCaption",	COLOR_INACTIVECAPTION },
	{ "SystemInactiveCaptionText",	COLOR_INACTIVECAPTIONTEXT },
	{ "SystemInfoBackground",	COLOR_INFOBK },
	{ "SystemInfoText",		COLOR_INFOTEXT },
	{ "SystemMenu",			COLOR_MENU },
	{ "SystemMenuText",		COLOR_MENUTEXT },
	{ "SystemScrollbar",		COLOR_SCROLLBAR },
	{ "SystemWindow",		COLOR_WINDOW },
	{ "SystemWindowFrame",		COLOR_WINDOWFRAME },
	{ "SystemWindowText",		COLOR_WINDOWTEXT },
	{ NULL, 0 }
};

static void RegisterSystemColors(Tcl_Interp *interp)
{
    Ttk_ResourceCache cache = Ttk_GetResourceCache(interp);
    SystemColorEntry *sysColor;

    for (sysColor = sysColors; sysColor->name; ++sysColor) {
	DWORD pixel = GetSysColor(sysColor->index);
	XColor colorSpec;
	colorSpec.red = GetRValue(pixel) * 257;
	colorSpec.green = GetGValue(pixel) * 257;
	colorSpec.blue = GetBValue(pixel) * 257;
	Ttk_RegisterNamedColor(cache, sysColor->name, &colorSpec);
    }
}

static HWND
CreateThemeMonitorWindow(HINSTANCE hinst, Tcl_Interp *interp)
{
    WNDCLASSEX wc;
    HWND       hwnd = NULL;
    TCHAR      title[32] = TEXT("TtkMonitorWindow");
    TCHAR      name[32] = TEXT("TtkMonitorClass");
    
    wc.cbSize        = sizeof(WNDCLASSEX);
    wc.style         = CS_HREDRAW | CS_VREDRAW;
    wc.lpfnWndProc   = (WNDPROC)WndProc;
    wc.cbClsExtra    = 0;
    wc.cbWndExtra    = 0;
    wc.hInstance     = hinst;
    wc.hIcon         = LoadIcon(NULL, IDI_APPLICATION);
    wc.hIconSm       = LoadIcon(NULL, IDI_APPLICATION);
    wc.hCursor       = LoadCursor(NULL, IDC_ARROW);
    wc.hbrBackground = (HBRUSH)COLOR_WINDOW;
    wc.lpszMenuName  = name;
    wc.lpszClassName = name;

    if (RegisterClassEx(&wc)) {
	hwnd = CreateWindow( name, title, WS_OVERLAPPEDWINDOW,
	    CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
	    NULL, NULL, hinst, NULL );
	SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR) interp);
	ShowWindow(hwnd, SW_HIDE);
	UpdateWindow(hwnd);
    }
    return hwnd;
}

static void 
DestroyThemeMonitorWindow(void *clientData)
{
    HWND hwnd = (HWND)clientData;
    DestroyWindow(hwnd);
}

static LRESULT WINAPI
WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
{
    Tcl_Interp *interp = (Tcl_Interp *)GetWindowLongPtr(hwnd, GWLP_USERDATA);
    Ttk_Theme theme;

    switch (msg) {
    case WM_DESTROY:
	break;

    case WM_SYSCOLORCHANGE:
	RegisterSystemColors(interp);
	break;

    case WM_THEMECHANGED:
	/*
	 * Reset the application theme to 'xpnative' if present,
	 * which will in turn fall back to 'winnative' if XP theming
	 * is disabled.
	 */

	theme = Ttk_GetTheme(interp, "xpnative");
	if (theme) {
	    Ttk_UseTheme(interp, theme);
	    /* @@@@@@ What to do about errors here? */
	}
	break;
    }
    return DefWindowProc(hwnd, msg, wp, lp);
}

/*
 * Windows-specific platform initialization:
 */

MODULE_SCOPE int TtkWinTheme_Init(Tcl_Interp *, HWND hwnd);
MODULE_SCOPE int TtkXPTheme_Init(Tcl_Interp *, HWND hwnd);

MODULE_SCOPE int Ttk_WinPlatformInit(Tcl_Interp *interp)
{
    HWND hwnd;

    hwnd = CreateThemeMonitorWindow(Tk_GetHINSTANCE(), interp);
    Ttk_RegisterCleanup(interp, (ClientData)hwnd, DestroyThemeMonitorWindow);

    TtkWinTheme_Init(interp, hwnd);
    TtkXPTheme_Init(interp, hwnd);

    return TCL_OK;
}
@


1.17
log
@Unnessarary TCL_STORAGE_CLASS re-definitions
Make various functions MODULE_SCOPE
TCHAR-related fixes, making al those
files compile fine when TCHAR != char.
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.16 2007/12/13 15:28:56 dgp Exp $
d98 1
a98 1
	SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG)interp);
@


1.16
log
@merge stable branch onto HEAD
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.10.2.5 2007/12/10 18:39:33 dgp Exp $
d78 2
a79 2
    CHAR       title[32] = "TtkMonitorWindow";
    CHAR       name[32] = "TtkMonitorClass";
@


1.16.2.1
log
@        Major backport of 8.6 Ttk for 8.5.9.  Most changes were only being
        committed to head (8.6), although they could apply for 8.5 as well.
        This re-sync makes future work easier to maintain and adds some
        useful work for 8.5 users. Notable changes:
        - Lots of code cleanup
        - Some bug fixes never backported
        - Addition of ttk::spinbox
        - minor color changes
        - Improved Vista/7 styling
        - Move to tile version 0.8.6 (pseudo-package)
        - ABI and API compatible (even $w identify)
        - minor new features (extended $w identify)
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.17 2010/04/29 15:28:04 nijtmans Exp $
d78 2
a79 2
    TCHAR      title[32] = TEXT("TtkMonitorWindow");
    TCHAR      name[32] = TEXT("TtkMonitorClass");
@


1.15
log
@Only tkWin.h should include windows.h unless we have an explicit override of
the WINVER macro.
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.14 2007/12/05 19:08:00 hobbs Exp $
@


1.14
log
@	* win/tkWinButton.c, win/tkWinDialog.c: use SetWindowLongPtr and
	* win/tkWinScrlbr.c, win/tkWinWm.c:     GetWindowLongPtr only.
	* win/ttkWinMonitor.c:
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.13 2007/10/25 07:08:26 jenglish Exp $
a7 1
#include <windows.h>
@


1.13
log
@Move widget layout registration from TtkElements_Init()
to widget *_Init() routines.
Renaming/consistency: s/...ElementGeometry()/...ElementSize()/
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.12 2007/09/08 16:13:45 dkf Exp $
a98 1
#ifdef _WIN64
a99 3
#else
	SetWindowLong(hwnd, GWL_USERDATA, (LONG)interp);
#endif
a115 1
#ifdef _WIN64
a116 3
#else
    Tcl_Interp *interp = (Tcl_Interp *)GetWindowLong(hwnd, GWL_USERDATA);
#endif
@


1.12
log
@Assorted minor cleanups.
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.11 2007/09/07 00:34:58 dgp Exp $
d59 1
a59 3
static void
RegisterSystemColors(
    Tcl_Interp *interp)
d75 1
a75 3
CreateThemeMonitorWindow(
    HINSTANCE hinst,
    Tcl_Interp *interp)
d78 3
a80 3
    HWND hwnd = NULL;
    CHAR title[32] = "TtkMonitorWindow";
    CHAR name[32] = "TtkMonitorClass";
d96 3
a98 3
	hwnd = CreateWindow(name, title, WS_OVERLAPPEDWINDOW,
		CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
		NULL, NULL, hinst, NULL);
d111 1
a111 2
DestroyThemeMonitorWindow(
    void *clientData)
a113 1

d118 1
a118 5
WndProc(
    HWND hwnd,
    UINT msg,
    WPARAM wp,
    LPARAM lp)
d137 3
a139 2
	 * Reset the application theme to 'xpnative' if present, which will in
	 * turn fall back to 'winnative' if XP theming is disabled.
d159 1
a159 3
MODULE_SCOPE int
Ttk_WinPlatformInit(
    Tcl_Interp *interp)
a170 8

/*
 * Local Variables:
 * mode: c
 * c-basic-offset: 4
 * fill-column: 78
 * End:
 */
@


1.11
log
@header cleanup
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.10 2007/04/17 14:32:28 dkf Exp $
d20 2
a21 2
 *	Register all known Windows system colors (as per GetSysColor)
 *	as Tk named colors.
d75 1
a75 1

d98 1
a98 1
    
d122 1
a122 1

d150 1
d160 1
a160 1

d173 1
a173 1
    
d182 8
@


1.10
log
@Standardize function definition format.
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.9 2007/04/10 18:05:48 jenglish Exp $
a8 2
#include <tcl.h>
#include <tk.h>
@


1.10.2.1
log
@merge updates from HEAD
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.10 2007/04/17 14:32:28 dkf Exp $
d9 2
@


1.10.2.2
log
@merge updates from HEAD
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.10.2.1 2007/09/07 01:25:41 dgp Exp $
d20 2
a21 2
 *	Register all known Windows system colors (as per GetSysColor) as Tk
 *	named colors.
d75 1
a75 1

d98 1
a98 1

d122 1
a122 1

a149 1

d159 1
a159 1

d172 1
a172 1

a180 8

/*
 * Local Variables:
 * mode: c
 * c-basic-offset: 4
 * fill-column: 78
 * End:
 */
@


1.10.2.3
log
@merge updates from HEAD
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.10.2.2 2007/09/09 04:15:55 dgp Exp $
d59 3
a61 1
static void RegisterSystemColors(Tcl_Interp *interp)
d77 3
a79 1
CreateThemeMonitorWindow(HINSTANCE hinst, Tcl_Interp *interp)
d82 3
a84 3
    HWND       hwnd = NULL;
    CHAR       title[32] = "TtkMonitorWindow";
    CHAR       name[32] = "TtkMonitorClass";
d100 3
a102 3
	hwnd = CreateWindow( name, title, WS_OVERLAPPEDWINDOW,
	    CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
	    NULL, NULL, hinst, NULL );
d115 2
a116 1
DestroyThemeMonitorWindow(void *clientData)
d119 1
d124 5
a128 1
WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
d147 2
a148 3
	 * Reset the application theme to 'xpnative' if present,
	 * which will in turn fall back to 'winnative' if XP theming
	 * is disabled.
d168 3
a170 1
MODULE_SCOPE int Ttk_WinPlatformInit(Tcl_Interp *interp)
d182 8
@


1.10.2.4
log
@merge updates from HEAD
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.10.2.3 2007/10/27 04:23:18 dgp Exp $
d99 1
d101 3
d120 1
d122 3
@


1.10.2.5
log
@merge updates from HEAD
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.10.2.4 2007/12/05 20:26:47 dgp Exp $
d8 1
@


1.9
log
@Re-sync with Tile codebase so patches can flow back and forth.
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.7 2007/02/04 00:10:55 mistachkin Exp $
d61 3
a63 1
static void RegisterSystemColors(Tcl_Interp *interp)
d79 3
a81 1
CreateThemeMonitorWindow(HINSTANCE hinst, Tcl_Interp *interp)
d84 3
a86 3
    HWND       hwnd = NULL;
    CHAR       title[32] = "TtkMonitorWindow";
    CHAR       name[32] = "TtkMonitorClass";
d102 3
a104 3
	hwnd = CreateWindow( name, title, WS_OVERLAPPEDWINDOW,
	    CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
	    NULL, NULL, hinst, NULL );
d117 2
a118 1
DestroyThemeMonitorWindow(void *clientData)
d121 1
d126 5
a130 1
WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
d149 2
a150 3
	 * Reset the application theme to 'xpnative' if present,
	 * which will in turn fall back to 'winnative' if XP theming
	 * is disabled.
d169 3
a171 1
MODULE_SCOPE int Ttk_WinPlatformInit(Tcl_Interp *interp)
a182 1

@


1.8
log
@Less of that K&R or wrongly indented function header style!
@
text
@d77 1
a77 3
CreateThemeMonitorWindow(
    HINSTANCE hinst,
    Tcl_Interp *interp)
d80 4
a83 4
    HWND hwnd = NULL;
    CHAR title[32] = "TtkMonitorWindow";
    CHAR name[32] = "TtkMonitorClass";

d96 1
a96 1

d98 3
a100 3
	hwnd = CreateWindow(name, title, WS_OVERLAPPEDWINDOW,
		CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
		NULL, NULL, hinst, NULL );
d112 2
a113 3
static void
DestroyThemeMonitorWindow(
    void *clientData)
d120 1
a120 5
WndProc(
    HWND hwnd,
    UINT msg,
    WPARAM wp,
    LPARAM lp)
d160 1
a160 3
MODULE_SCOPE int
Ttk_WinPlatformInit(
    Tcl_Interp *interp)
d163 1
a163 1

d172 1
@


1.7
log
@see log
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.6 2007/01/11 19:59:26 jenglish Exp $
d77 3
a79 1
CreateThemeMonitorWindow(HINSTANCE hinst, Tcl_Interp *interp)
d82 4
a85 4
    HWND       hwnd = NULL;
    CHAR       title[32] = "TtkMonitorWindow";
    CHAR       name[32] = "TtkMonitorClass";
    
d98 1
a98 1
    
d100 3
a102 3
	hwnd = CreateWindow( name, title, WS_OVERLAPPEDWINDOW,
	    CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
	    NULL, NULL, hinst, NULL );
d114 3
a116 2
static void 
DestroyThemeMonitorWindow(void *clientData)
d123 5
a127 1
WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
d167 3
a169 1
MODULE_SCOPE int Ttk_WinPlatformInit(Tcl_Interp *interp)
d172 1
a172 1
    
a180 1

@


1.6
log
@Revert previous change to keep in sync with Tile codebase.
The minor warnings from GCC fixed in the previous revision
were false positives due to improper use of "-Wconversion".

Still compiles cleanly with "gcc -Wall -Werror" (gcc 3.3.5).
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.4 2006/11/03 15:42:42 patthoyts Exp $
d101 1
d103 3
d122 1
d124 3
@


1.5
log
@Many minute fixes to reduce number of minor warnings from GCC.
@
text
@d83 1
a83 1

d96 1
a96 1

d98 3
a100 3
	hwnd = CreateWindow(name, title, WS_OVERLAPPEDWINDOW,
		(int) CW_USEDEFAULT, (int) CW_USEDEFAULT, (int) CW_USEDEFAULT,
		(int) CW_USEDEFAULT, NULL, NULL, hinst, NULL);
@


1.4
log
@We do not want to require tkInt in all the ttk files so added the
definition of MODULE_SCOPE to ttkTheme.h Ensure everyone gets to see
the definition from someplace.
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.3 2006/11/03 14:42:09 das Exp $
d83 1
a83 1
    
d96 1
a96 1
    
d98 3
a100 3
	hwnd = CreateWindow( name, title, WS_OVERLAPPEDWINDOW,
	    CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
	    NULL, NULL, hinst, NULL );
@


1.3
log
@#include tkInt.h to ensure MODULE_SCOPE is defined
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.2 2006/11/03 03:06:22 das Exp $
d149 2
a150 2
extern int TtkWinTheme_Init(Tcl_Interp *, HWND hwnd);
extern int TtkXPTheme_Init(Tcl_Interp *, HWND hwnd);
d159 2
a160 2
    WinTheme_Init(interp, hwnd);
    XPTheme_Init(interp, hwnd);
@


1.2
log
@	* generic/ttk/ttkBlink.c, generic/ttk/ttkButton.c:
	* generic/ttk/ttkClamTheme.c, generic/ttk/ttkClassicTheme.c:
	* generic/ttk/ttkDecls.h, generic/ttk/ttkDefaultTheme.c:
	* generic/ttk/ttkElements.c, generic/ttk/ttkEntry.c:
	* generic/ttk/ttkFrame.c, generic/ttk/ttkImage.c:
	* generic/ttk/ttkInit.c, generic/ttk/ttkLabel.c:
	* generic/ttk/ttkLayout.c, generic/ttk/ttkManager.h:
	* generic/ttk/ttkNotebook.c, generic/ttk/ttkPanedwindow.c:
	* generic/ttk/ttkProgress.c, generic/ttk/ttkScale.c:
	* generic/ttk/ttkScroll.c, generic/ttk/ttkScrollbar.c:
	* generic/ttk/ttkSeparator.c, generic/ttk/ttkSquare.c:
	* generic/ttk/ttkStubInit.c, generic/ttk/ttkStubLib.c:
	* generic/ttk/ttkTheme.c, generic/ttk/ttkTheme.h:
	* generic/ttk/ttkThemeInt.h, generic/ttk/ttkTrack.c:
	* generic/ttk/ttkTreeview.c, generic/ttk/ttkWidget.c:
	* generic/ttk/ttkWidget.h, macosx/ttkMacOSXTheme.c:
	* win/ttkWinMonitor.c, win/ttkWinTheme.c, win/ttkWinXPTheme.c: ensure
	all global Ttk symbols have Ttk or ttk prefix; declare all externally
	visible Ttk symbols not contained in stubs table as MODULE_SCOPE (or as
	static when possible); so that 'make check{exports,stubs}' once again
	complete without errors.
@
text
@d1 1
a1 1
/* $Id: ttkWinMonitor.c,v 1.1 2006/10/31 01:42:28 hobbs Exp $
d11 1
a11 1
#include <tkPlatDecls.h>
@


1.1
log
@	* doc/ttk_Geometry.3, doc/ttk_Theme.3, doc/ttk_button.n:
	* doc/ttk_checkbutton.n, doc/ttk_combobox.n, doc/ttk_dialog.n:
	* doc/ttk_entry.n, doc/ttk_frame.n, doc/ttk_image.n:
	* doc/ttk_intro.n, doc/ttk_label.n, doc/ttk_labelframe.n:
	* doc/ttk_menubutton.n, doc/ttk_notebook.n, doc/ttk_panedwindow.n:
	* doc/ttk_progressbar.n, doc/ttk_radiobutton.n, doc/ttk_scrollbar.n:
	* doc/ttk_separator.n, doc/ttk_sizegrip.n, doc/ttk_style.n:
	* doc/ttk_treeview.n, doc/ttk_widget.n,:
	* generic/ttk/ttk.decls, generic/ttk/ttkBlink.c:
	* generic/ttk/ttkButton.c, generic/ttk/ttkCache.c:
	* generic/ttk/ttkClamTheme.c, generic/ttk/ttkClassicTheme.c:
	* generic/ttk/ttkDecls.h, generic/ttk/ttkDefaultTheme.c:
	* generic/ttk/ttkElements.c, generic/ttk/ttkEntry.c:
	* generic/ttk/ttkFrame.c, generic/ttk/ttkImage.c:
	* generic/ttk/ttkInit.c, generic/ttk/ttkLabel.c:
	* generic/ttk/ttkLayout.c, generic/ttk/ttkManager.c:
	* generic/ttk/ttkManager.h, generic/ttk/ttkNotebook.c:
	* generic/ttk/ttkPanedwindow.c, generic/ttk/ttkProgress.c:
	* generic/ttk/ttkScale.c, generic/ttk/ttkScroll.c:
	* generic/ttk/ttkScrollbar.c, generic/ttk/ttkSeparator.c:
	* generic/ttk/ttkSquare.c, generic/ttk/ttkState.c:
	* generic/ttk/ttkStubInit.c, generic/ttk/ttkStubLib.c:
	* generic/ttk/ttkTagSet.c, generic/ttk/ttkTheme.c:
	* generic/ttk/ttkTheme.h, generic/ttk/ttkThemeInt.h:
	* generic/ttk/ttkTrace.c, generic/ttk/ttkTrack.c:
	* generic/ttk/ttkTreeview.c, generic/ttk/ttkWidget.c:
	* generic/ttk/ttkWidget.h:
	* library/demos/ttk_demo.tcl, library/demos/ttk_iconlib.tcl:
	* library/demos/ttk_repeater.tcl:
	* library/ttk/altTheme.tcl, library/ttk/aquaTheme.tcl:
	* library/ttk/button.tcl, library/ttk/clamTheme.tcl:
	* library/ttk/classicTheme.tcl, library/ttk/combobox.tcl:
	* library/ttk/cursors.tcl, library/ttk/defaults.tcl:
	* library/ttk/dialog.tcl, library/ttk/entry.tcl:
	* library/ttk/fonts.tcl, library/ttk/icons.tcl:
	* library/ttk/keynav.tcl, library/ttk/menubutton.tcl:
	* library/ttk/notebook.tcl, library/ttk/panedwindow.tcl:
	* library/ttk/progress.tcl, library/ttk/scale.tcl:
	* library/ttk/scrollbar.tcl, library/ttk/sizegrip.tcl:
	* library/ttk/treeview.tcl, library/ttk/ttk.tcl:
	* library/ttk/utils.tcl, library/ttk/winTheme.tcl:
	* library/ttk/xpTheme.tcl:
	* macosx/ttkMacOSXTheme.c:
	* tests/ttk/all.tcl, tests/ttk/bwidget.test, tests/ttk/combobox.test:
	* tests/ttk/entry.test, tests/ttk/image.test:
	* tests/ttk/labelframe.test, tests/ttk/layout.test:
	* tests/ttk/misc.test, tests/ttk/notebook.test:
	* tests/ttk/panedwindow.test, tests/ttk/progressbar.test:
	* tests/ttk/scrollbar.test, tests/ttk/treetags.test:
	* tests/ttk/treeview.test, tests/ttk/ttk.test, tests/ttk/validate.test:
	* win/ttkWinMonitor.c, win/ttkWinTheme.c, win/ttkWinXPTheme.c:
	First import of Ttk themed Tk widgets as branched from tile 0.7.8

	* generic/tkInt.h, generic/tkWindow.c: add Ttk_Init call, copy
	tk classic widgets to ::tk namespace.
	* library/tk.tcl: add source of ttk/ttk.tcl, define $::ttk::library.
	* unix/Makefile.in, win/Makefile.in: add Ttk build bits
	* win/configure, win/configure.in: check for uxtheme.h (XP theme).
@
text
@d1 1
a1 1
/* $Id: monitor.c,v 1.15 2005/12/02 21:51:22 hobbs Exp $
d149 2
a150 2
extern int WinTheme_Init(Tcl_Interp *, HWND hwnd);
extern int XPTheme_Init(Tcl_Interp *, HWND hwnd);
d152 1
a152 1
int Ttk_WinPlatformInit(Tcl_Interp *interp)
@

