1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
14 // Avoid including windowsx.h to prevent macro pollution
16 # define GET_X_LPARAM(pt) (short(LOWORD(pt)))
19 # define GET_Y_LPARAM(pt) (short(HIWORD(pt)))
23 * Wrapper around the thread running the message pump.
24 * The toolkit abstraction is necessary because the message pump must
25 * execute within the same thread that created the widget under Win32.
36 static nsToolkit
* GetToolkit();
38 static HINSTANCE mDllInstance
;
40 static void Startup(HMODULE hModule
);
41 static void Shutdown();
44 static nsToolkit
* gToolkit
;