mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-08 19:44:06 +00:00
Added 'close' to win-message-pump
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -16,7 +16,7 @@ limitations under the License.
|
||||
|
||||
var WH_CALLWNDPROC = 4;
|
||||
var WM_QUIT = 0x0012;
|
||||
|
||||
var WM_CLOSE = 0x0010;
|
||||
var GM = require('_GenericMarshal');
|
||||
|
||||
function WindowsMessagePump(options)
|
||||
@@ -173,6 +173,13 @@ function WindowsMessagePump(options)
|
||||
this._user32.PostMessageA(this._hwnd, WM_QUIT, 0, 0);
|
||||
}
|
||||
};
|
||||
this.close = function close()
|
||||
{
|
||||
if (this._hwnd)
|
||||
{
|
||||
this._user32.PostMessageA(this._hwnd, WM_CLOSE, 0, 0);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = WindowsMessagePump;
|
||||
|
||||
Reference in New Issue
Block a user