Import Tk 8.6.10
This commit is contained in:
@@ -223,7 +223,7 @@ CreateProc(
|
||||
| SBS_HORZ;
|
||||
}
|
||||
|
||||
scrollPtr->hwnd = CreateWindow(TEXT("SCROLLBAR"), NULL, style,
|
||||
scrollPtr->hwnd = CreateWindowW(L"SCROLLBAR", NULL, style,
|
||||
Tk_X(tkwin), Tk_Y(tkwin), Tk_Width(tkwin), Tk_Height(tkwin),
|
||||
parent, NULL, Tk_GetHINSTANCE(), NULL);
|
||||
|
||||
@@ -245,7 +245,7 @@ CreateProc(
|
||||
}
|
||||
|
||||
scrollPtr->lastVertical = scrollPtr->info.vertical;
|
||||
scrollPtr->oldProc = (WNDPROC)SetWindowLongPtr(scrollPtr->hwnd,
|
||||
scrollPtr->oldProc = (WNDPROC)SetWindowLongPtrW(scrollPtr->hwnd,
|
||||
GWLP_WNDPROC, (LONG_PTR) ScrollbarProc);
|
||||
window = Tk_AttachHWND(tkwin, scrollPtr->hwnd);
|
||||
|
||||
@@ -291,7 +291,7 @@ TkpDisplayScrollbar(
|
||||
if (scrollPtr->lastVertical != scrollPtr->info.vertical) {
|
||||
HWND hwnd = Tk_GetHWND(Tk_WindowId(tkwin));
|
||||
|
||||
SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) scrollPtr->oldProc);
|
||||
SetWindowLongPtrW(hwnd, GWLP_WNDPROC, (LONG_PTR) scrollPtr->oldProc);
|
||||
DestroyWindow(hwnd);
|
||||
|
||||
CreateProc(tkwin, Tk_WindowId(Tk_Parent(tkwin)),
|
||||
@@ -325,7 +325,7 @@ TkpDestroyScrollbar(
|
||||
HWND hwnd = winScrollPtr->hwnd;
|
||||
|
||||
if (hwnd) {
|
||||
SetWindowLongPtr(hwnd, GWLP_WNDPROC, (INT_PTR) winScrollPtr->oldProc);
|
||||
SetWindowLongPtrW(hwnd, GWLP_WNDPROC, (INT_PTR) winScrollPtr->oldProc);
|
||||
if (winScrollPtr->winFlags & IN_MODAL_LOOP) {
|
||||
((TkWindow *)scrollPtr->tkwin)->flags |= TK_DONT_DESTROY_WINDOW;
|
||||
SetParent(hwnd, NULL);
|
||||
@@ -568,7 +568,7 @@ ScrollbarProc(
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return CallWindowProc(scrollPtr->oldProc, hwnd, message, wParam, lParam);
|
||||
return CallWindowProcW(scrollPtr->oldProc, hwnd, message, wParam, lParam);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user