mirror of
https://github.com/ip7z/7zip.git
synced 2026-01-01 14:19:55 +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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|