mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-08 06:06:59 -06:00
Initialer Commit
This commit is contained in:
22
CPP/Windows/ProcessMessages.cpp
Normal file
22
CPP/Windows/ProcessMessages.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
// Windows/ProcessMessages.cpp
|
||||
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "ProcessMessages.h"
|
||||
|
||||
namespace NWindows {
|
||||
|
||||
void ProcessMessages(HWND window)
|
||||
{
|
||||
MSG msg;
|
||||
while (::PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) )
|
||||
{
|
||||
if (window == (HWND) NULL || !IsDialogMessage(window, &msg))
|
||||
{
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user