description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | |||
---|---|---|---|---|---|---|---|---|
Learn more about: Event Handling Global Functions |
Event Handling Global Functions |
11/04/2016 |
|
|
fd674470-3def-47c3-be1c-894fa85f13e8 |
This function provides an event handler.
Important
The function listed in the following table cannot be used in applications that execute in the Windows Runtime.
Name | Description |
---|---|
AtlWaitWithMessageLoop | Waits for an object to be signaled, meanwhile dispatching window messages as needed. |
Header: atlbase.h
Waits for the object to be signaled, meanwhile dispatching window messages as needed.
Important
This function cannot be used in applications that execute in the Windows Runtime.
BOOL AtlWaitWithMessageLoop(HANDLE hEvent);
hEvent
[in] The handle of the object to wait for.
Returns TRUE if the object has been signaled.
This is useful if you want to wait for an object's event to happen and be notified of it happening, but allow window messages to be dispatched while waiting.