| 269 | // Checks if there are any messages and translates and dispatches them |
| 270 | #define MAX_MESSAGES 25 |
| 271 | void ProcessMessages(void) { |
| 272 | MSG msg; |
| 273 | int MsgCount; |
| 274 | |
| 275 | for (MsgCount = MAX_MESSAGES; MsgCount && PeekMessage(&msg, NULL, 0, 0, PM_REMOVE); MsgCount--) { |
| 276 | TranslateMessage(&msg); |
| 277 | DispatchMessage(&msg); |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | // Updates the total files indicator |
| 282 | void UpdateTotalFiles(int num_files) { |
no outgoing calls
no test coverage detected