diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-24 15:23:16 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-24 15:23:16 (GMT) |
commit | 97a31b80b8c9dd4d9a19984a9b709af0265d4c43 (patch) | |
tree | fcea170d4a9247efb33059020fe52f2c61643194 /win | |
parent | 473ed169135beac6352af2c5f61cca5d404ccf51 (diff) | |
parent | c1d2b9d95856fe913236eec23533b0bd522726d3 (diff) | |
download | tk-97a31b80b8c9dd4d9a19984a9b709af0265d4c43.zip tk-97a31b80b8c9dd4d9a19984a9b709af0265d4c43.tar.gz tk-97a31b80b8c9dd4d9a19984a9b709af0265d4c43.tar.bz2 |
Merge 8.6
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinButton.c | 8 | ||||
-rw-r--r-- | win/tkWinTest.c | 6 | ||||
-rw-r--r-- | win/tkWinWm.c | 22 | ||||
-rw-r--r-- | win/tkWinX.c | 12 |
4 files changed, 24 insertions, 24 deletions
diff --git a/win/tkWinButton.c b/win/tkWinButton.c index a109587..3ba3be5 100644 --- a/win/tkWinButton.c +++ b/win/tkWinButton.c @@ -242,18 +242,18 @@ CreateProc( { Window window; HWND parent; - LPCWSTR class; + LPCWSTR windowClass; WinButton *butPtr = (WinButton *)instanceData; parent = Tk_GetHWND(parentWin); if (butPtr->info.type == TYPE_LABEL) { - class = L"STATIC"; + windowClass = L"STATIC"; butPtr->style = SS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS; } else { - class = L"BUTTON"; + windowClass = L"BUTTON"; butPtr->style = BS_OWNERDRAW | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS; } - butPtr->hwnd = CreateWindowW(class, NULL, butPtr->style, + butPtr->hwnd = CreateWindowW(windowClass, NULL, butPtr->style, Tk_X(tkwin), Tk_Y(tkwin), Tk_Width(tkwin), Tk_Height(tkwin), parent, NULL, Tk_GetHINSTANCE(), NULL); SetWindowPos(butPtr->hwnd, HWND_TOP, 0, 0, 0, 0, diff --git a/win/tkWinTest.c b/win/tkWinTest.c index c86a770..613eda3 100644 --- a/win/tkWinTest.c +++ b/win/tkWinTest.c @@ -444,7 +444,7 @@ TestfindwindowObjCmd( int objc, /* Number of arguments. */ Tcl_Obj *const objv[]) /* Argument values. */ { - LPCWSTR title = NULL, class = NULL; + LPCWSTR title = NULL, windowClass = NULL; Tcl_DString titleString, classString; HWND hwnd = NULL; int r = TCL_OK; @@ -462,7 +462,7 @@ TestfindwindowObjCmd( title = Tcl_UtfToWCharDString(Tcl_GetString(objv[1]), -1, &titleString); if (objc == 3) { Tcl_DStringInit(&classString); - class = Tcl_UtfToWCharDString(Tcl_GetString(objv[2]), -1, &classString); + windowClass = Tcl_UtfToWCharDString(Tcl_GetString(objv[2]), -1, &classString); } if (title[0] == 0) title = NULL; @@ -471,7 +471,7 @@ TestfindwindowObjCmd( myPid = GetCurrentProcessId(); while (1) { DWORD pid, tid; - hwnd = FindWindowExW(NULL, hwnd, class, title); + hwnd = FindWindowExW(NULL, hwnd, windowClass, title); if (hwnd == NULL) break; tid = GetWindowThreadProcessId(hwnd, &pid); diff --git a/win/tkWinWm.c b/win/tkWinWm.c index 217cc57..83ff7d0 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -867,21 +867,21 @@ InitWindowClass( if (!initialized) { Tcl_MutexLock(&winWmMutex); if (!initialized) { - WNDCLASSW class; + WNDCLASSW windowClass; initialized = 1; - ZeroMemory(&class, sizeof(WNDCLASSW)); + ZeroMemory(&windowClass, sizeof(WNDCLASSW)); - class.style = CS_HREDRAW | CS_VREDRAW; - class.hInstance = Tk_GetHINSTANCE(); - class.lpszClassName = TK_WIN_TOPLEVEL_CLASS_NAME; - class.lpfnWndProc = WmProc; + windowClass.style = CS_HREDRAW | CS_VREDRAW; + windowClass.hInstance = Tk_GetHINSTANCE(); + windowClass.lpszClassName = TK_WIN_TOPLEVEL_CLASS_NAME; + windowClass.lpfnWndProc = WmProc; if (titlebaricon == NULL) { - class.hIcon = LoadIconW(Tk_GetHINSTANCE(), L"tk"); + windowClass.hIcon = LoadIconW(Tk_GetHINSTANCE(), L"tk"); } else { - class.hIcon = GetIcon(titlebaricon, ICON_BIG); - if (class.hIcon == NULL) { + windowClass.hIcon = GetIcon(titlebaricon, ICON_BIG); + if (windowClass.hIcon == NULL) { return TCL_ERROR; } @@ -892,9 +892,9 @@ InitWindowClass( tsdPtr->iconPtr = titlebaricon; } - class.hCursor = LoadCursorW(NULL, (LPCWSTR)IDC_ARROW); + windowClass.hCursor = LoadCursorW(NULL, (LPCWSTR)IDC_ARROW); - if (!RegisterClassW(&class)) { + if (!RegisterClassW(&windowClass)) { Tcl_Panic("Unable to register TkTopLevel class"); } } diff --git a/win/tkWinX.c b/win/tkWinX.c index 96a6958..2bda128 100644 --- a/win/tkWinX.c +++ b/win/tkWinX.c @@ -455,30 +455,30 @@ TkWinDisplayChanged( screen->root_visual->visualid = 0; if (GetDeviceCaps(dc, RASTERCAPS) & RC_PALETTE) { screen->root_visual->map_entries = GetDeviceCaps(dc, SIZEPALETTE); - screen->root_visual->class = PseudoColor; + screen->root_visual->c_class = PseudoColor; screen->root_visual->red_mask = 0x0; screen->root_visual->green_mask = 0x0; screen->root_visual->blue_mask = 0x0; } else if (screen->root_depth == 4) { - screen->root_visual->class = StaticColor; + screen->root_visual->c_class = StaticColor; screen->root_visual->map_entries = 16; } else if (screen->root_depth == 8) { - screen->root_visual->class = StaticColor; + screen->root_visual->c_class = StaticColor; screen->root_visual->map_entries = 256; } else if (screen->root_depth == 12) { - screen->root_visual->class = TrueColor; + screen->root_visual->c_class = TrueColor; screen->root_visual->map_entries = 32; screen->root_visual->red_mask = 0xf0; screen->root_visual->green_mask = 0xf000; screen->root_visual->blue_mask = 0xf00000; } else if (screen->root_depth == 16) { - screen->root_visual->class = TrueColor; + screen->root_visual->c_class = TrueColor; screen->root_visual->map_entries = 64; screen->root_visual->red_mask = 0xf8; screen->root_visual->green_mask = 0xfc00; screen->root_visual->blue_mask = 0xf80000; } else if (screen->root_depth >= 24) { - screen->root_visual->class = TrueColor; + screen->root_visual->c_class = TrueColor; screen->root_visual->map_entries = 256; screen->root_visual->red_mask = 0xff; screen->root_visual->green_mask = 0xff00; |