MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnPaint

Method OnPaint

Source/VisualizerWnd.cpp:200–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200void CVisualizerWnd::OnPaint()
201{
202 LockedState([&] {
203 CPaintDC dc(this); // device context for painting
204
205 if (m_bNoAudio) {
206 CRect rect;
207 GetClientRect(rect);
208 dc.DrawTextW(L"No audio", rect, DT_CENTER | DT_VCENTER);
209 }
210 else
211 m_pStates[m_iCurrentState]->Display(&dc, true);
212 });
213}
214
215void CVisualizerWnd::OnRButtonUp(UINT nFlags, CPoint point)
216{

Callers

nothing calls this directly

Calls 1

DisplayMethod · 0.45

Tested by

no test coverage detected