| 157 | } |
| 158 | |
| 159 | void CPaintManagerUI::Init(HWND hWnd) |
| 160 | { |
| 161 | ASSERT(::IsWindow(hWnd)); |
| 162 | // Remember the window context we came from |
| 163 | m_hWndPaint = hWnd; |
| 164 | m_hDcPaint = ::GetDC(hWnd); |
| 165 | // We'll want to filter messages globally too |
| 166 | m_aPreMessages.Add(this); |
| 167 | } |
| 168 | |
| 169 | HINSTANCE CPaintManagerUI::GetInstance() |
| 170 | { |