mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 913953 - Part u: Remove unused HWND user data functions; r=ehsan
This commit is contained in:
parent
dcd9cd389a
commit
2bce033d67
@ -258,16 +258,6 @@ WNDPROC SetWindowProc(HWND hwnd, WNDPROC proc) {
|
||||
return oldwindow_proc;
|
||||
}
|
||||
|
||||
void* SetWindowUserData(HWND hwnd, void* user_data) {
|
||||
return
|
||||
reinterpret_cast<void*>(SetWindowLongPtr(hwnd, GWLP_USERDATA,
|
||||
reinterpret_cast<LONG_PTR>(user_data)));
|
||||
}
|
||||
|
||||
void* GetWindowUserData(HWND hwnd) {
|
||||
return reinterpret_cast<void*>(GetWindowLongPtr(hwnd, GWLP_USERDATA));
|
||||
}
|
||||
|
||||
// Maps to the WNDPROC for a window that was active before the subclass was
|
||||
// installed.
|
||||
static const wchar_t* const kHandlerKey = L"__ORIGINAL_MESSAGE_HANDLER__";
|
||||
|
@ -73,11 +73,6 @@ bool Unsubclass(HWND window, WNDPROC subclass_proc);
|
||||
// SubclassWindow.
|
||||
WNDPROC GetSuperclassWNDPROC(HWND window);
|
||||
|
||||
// Pointer-friendly wrappers around Get/SetWindowLong(..., GWLP_USERDATA, ...)
|
||||
// Returns the previously set value.
|
||||
void* SetWindowUserData(HWND hwnd, void* user_data);
|
||||
void* GetWindowUserData(HWND hwnd);
|
||||
|
||||
// Returns true if the shift key is currently pressed.
|
||||
bool IsShiftPressed();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user