mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 11:14:58 -06:00
23 lines
355 B
C++
Executable File
23 lines
355 B
C++
Executable File
// 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);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|