mirror of
https://github.com/ip7z/7zip.git
synced 2025-12-06 07:12:00 +01:00
23 lines
355 B
C++
23 lines
355 B
C++
// 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);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|