| 546 | } |
| 547 | |
| 548 | void CObjectDialog::OnPaint() { |
| 549 | CPaintDC dc(this); // device context for painting |
| 550 | |
| 551 | if (!m_Active) |
| 552 | return; |
| 553 | |
| 554 | UpdateIDList(); // this is here to update the object ids in case of any changes |
| 555 | |
| 556 | ASSERT(GetCurrentIndex() != -1); |
| 557 | |
| 558 | // Draw picture of current item |
| 559 | DrawPicture(GetDlgItem(IDC_OBJ_PALETTE)); |
| 560 | } |
| 561 | |
| 562 | void CObjectDialog::OnLButtonDown(UINT nFlags, CPoint point) { CDialog::OnLButtonDown(nFlags, point); } |
| 563 |
nothing calls this directly
no test coverage detected