| Index: base/win_util.cc
|
| ===================================================================
|
| --- base/win_util.cc (revision 5976)
|
| +++ base/win_util.cc (working copy)
|
| @@ -257,6 +257,12 @@
|
| // installed.
|
| static const wchar_t* const kHandlerKey = L"__ORIGINAL_MESSAGE_HANDLER__";
|
|
|
| +bool IsSubclassed(HWND window, WNDPROC subclass_proc) {
|
| + WNDPROC original_handler =
|
| + reinterpret_cast<WNDPROC>(GetWindowLongPtr(window, GWLP_WNDPROC));
|
| + return original_handler == subclass_proc;
|
| +}
|
| +
|
| bool Subclass(HWND window, WNDPROC subclass_proc) {
|
| WNDPROC original_handler =
|
| reinterpret_cast<WNDPROC>(GetWindowLongPtr(window, GWLP_WNDPROC));
|
|
|