bool ThreadWindowsEvents::peek ( Event& event, Filter filter )
 {
     const ::BOOL result = ::PeekMessage(
         &event.data(), 0, filter.first(), filter.last(), PM_REMOVE
         );
     return (result != 0);
 }
Exemple #2
0
 bool WindowEvents::peek ( Event& event, Filter filter )
 {
     const ::BOOL result = ::PeekMessage(
         &event.data(), myWindow.handle(),
         filter.first(), filter.last(), PM_NOREMOVE
         );
     return (result != FALSE);
 }
 bool ThreadWindowsEvents::next ( Event& event, Filter filter )
 {
     const ::BOOL result = ::GetMessage(
         &event.data(), 0, filter.first(), filter.last()
         );
     if ( result == -1 ) {
         UNCHECKED_WIN32C_ERROR(GetMessage,::GetLastError());
     }
     return (result != 0);
 }
Exemple #4
0
 bool WindowEvents::next ( Event& event, Filter filter )
 {
     const ::BOOL result = ::GetMessage(
         &event.data(), myWindow.handle(), filter.first(), filter.last()
         );
     if ( result == -1 )
     {
         const ::DWORD error = ::GetLastError();
         UNCHECKED_WIN32C_ERROR(GetMessage, error);
     }
     return (result != 0);
 }