summaryrefslogtreecommitdiffstats
path: root/win/tkWinX.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-09-09 14:59:24 (GMT)
committernijtmans <nijtmans>2010-09-09 14:59:24 (GMT)
commit6da8b413c4b3bf6801bd9935bce44a7764ab85f6 (patch)
treedb2ee4f118c9b31127a933e042a1748307d33b17 /win/tkWinX.c
parent10742e417a6e784ea50d4e67cb69513a38d03741 (diff)
downloadtk-6da8b413c4b3bf6801bd9935bce44a7764ab85f6.zip
tk-6da8b413c4b3bf6801bd9935bce44a7764ab85f6.tar.gz
tk-6da8b413c4b3bf6801bd9935bce44a7764ab85f6.tar.bz2
win/rules.vc: (sync with tcl version)
mingw should always link with -ladvapi32 Remove ascii variant of tkWinPocs table, it is no longer necessary.
Diffstat (limited to 'win/tkWinX.c')
-rw-r--r--win/tkWinX.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c
index 75752fe..cc39b90 100644
--- a/win/tkWinX.c
+++ b/win/tkWinX.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinX.c,v 1.65 2010/05/20 22:48:13 dkf Exp $
+ * RCS: @(#) $Id: tkWinX.c,v 1.66 2010/09/09 14:59:24 nijtmans Exp $
*/
/*
@@ -63,20 +63,6 @@
#define UNICODE_NOCHAR 0xFFFF
#endif
-static const TkWinProcs asciiProcs = {
- 0,
- (LRESULT (WINAPI *)(WNDPROC, HWND, UINT, WPARAM, LPARAM)) CallWindowProcA,
- (LRESULT (WINAPI *)(HWND, UINT, WPARAM, LPARAM)) DefWindowProcA,
- (ATOM (WINAPI *)(const WNDCLASS *)) RegisterClassA,
- (BOOL (WINAPI *)(HWND, LPCTSTR)) SetWindowTextA,
- (HWND (WINAPI *)(DWORD, LPCTSTR, LPCTSTR, DWORD, int, int,
- int, int, HWND, HMENU, HINSTANCE, LPVOID)) CreateWindowExA,
- (BOOL (WINAPI *)(HMENU, UINT, UINT, UINT, LPCTSTR)) InsertMenuA,
- (int (WINAPI *)(HWND, LPCTSTR, int)) GetWindowTextA,
- (HWND (WINAPI *)(LPCTSTR, LPCTSTR)) FindWindowA,
- (int (WINAPI *)(HWND, LPTSTR, int)) GetClassNameA,
-};
-
static const TkWinProcs unicodeProcs = {
1,
(LRESULT (WINAPI *)(WNDPROC, HWND, UINT, WPARAM, LPARAM)) CallWindowProcW,
@@ -91,7 +77,7 @@ static const TkWinProcs unicodeProcs = {
(int (WINAPI *)(HWND, LPTSTR, int)) GetClassNameW,
};
-const TkWinProcs *tkWinProcs;
+const TkWinProcs *const tkWinProcs = &unicodeProcs;
/*
* Declarations of static variables used in this file.
@@ -248,7 +234,6 @@ TkWinXInit(
INITCOMMONCONTROLSEX comctl;
CHARSETINFO lpCs;
DWORD lpCP;
- int useWide;
if (childClassInitialized != 0) {
return;
@@ -261,13 +246,6 @@ TkWinXInit(
Tcl_Panic("Unable to load common controls?!");
}
- useWide = (TkWinGetPlatformId() != VER_PLATFORM_WIN32_WINDOWS);
- if (useWide) {
- tkWinProcs = &unicodeProcs;
- } else {
- tkWinProcs = &asciiProcs;
- }
-
childClass.style = CS_HREDRAW | CS_VREDRAW;
childClass.cbClsExtra = 0;
childClass.cbWndExtra = 0;