| 134 | } |
| 135 | |
| 136 | int QueueOperation::ClearPendingNotifications() { |
| 137 | if (!m_hNotify) |
| 138 | return -1; |
| 139 | |
| 140 | MSG msg; |
| 141 | BOOL res = ::PeekMessage(&msg, m_hNotify, NotifyMessageMIN, NotifyMessageMAX, PM_REMOVE); |
| 142 | while(res == TRUE) { |
| 143 | res = ::PeekMessage(&msg, m_hNotify, NotifyMessageMIN, NotifyMessageMAX, PM_REMOVE); |
| 144 | } |
| 145 | |
| 146 | return 0; |
| 147 | } |
| 148 | |
| 149 | int QueueOperation::SetProgress(float progress) { |
| 150 | m_progress = progress; |