MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnPaint

Method OnPaint

editor/ObjectDialog.cpp:548–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548void 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
562void CObjectDialog::OnLButtonDown(UINT nFlags, CPoint point) { CDialog::OnLButtonDown(nFlags, point); }
563

Callers

nothing calls this directly

Calls 1

GetCurrentIndexFunction · 0.85

Tested by

no test coverage detected