MCPcopy Create free account
hub / github.com/bbbradsmith/nsfplay / OnShowWindow

Method OnShowWindow

nsfplug_ui/NSFTrackDialog.cpp:547–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547void NSFTrackDialog::OnShowWindow(BOOL bShow, UINT nStatus)
548{
549 __super::OnShowWindow(bShow, nStatus);
550
551 m_trkinfo.SetFocus(); // in case someone uses mouse scroll before clicking on it,
552 // prevents the scroll from doing time expansion instead
553
554 if(bShow==TRUE&&m_nTimer==0)
555 {
556 m_nTimer = SetTimer(1,1000/(int)CONFIG["INFO_FREQ"], NULL);
557 m_nTimer2 = SetTimer(2,1000/120,NULL);
558 m_keydlg.Start(1000/(int)CONFIG["INFO_FREQ"]);
559 }
560 else if(bShow==FALSE&&m_nTimer!=0)
561 {
562 m_keydlg.Stop();
563 KillTimer(m_nTimer);
564 KillTimer(m_nTimer2);
565 m_nTimer = 0;
566 }
567}
568
569void NSFTrackDialog::OnLvnItemchangedTrackinfo(NMHDR *pNMHDR, LRESULT *pResult)
570{

Callers

nothing calls this directly

Calls 2

StartMethod · 0.45
StopMethod · 0.45

Tested by

no test coverage detected