void CVolumeBarForm::DisplayVolume(IBaseFilter *filter) { if (!filter) { DoHide(); return ; } // release what we might be holding basic_audio = NULL; HRESULT hr = filter->QueryInterface(IID_IBasicAudio, (void**)&basic_audio); if (FAILED(hr)) { DoHide(); return ; } // now do something RefreshLevels(); POINT pt; GetCursorPos(&pt); SetWindowPos(&CWnd::wndTop, pt.x, pt.y, 0, 0, SWP_NOSIZE | SWP_SHOWWINDOW); SetForegroundWindow(); UpdateLevels(); }
void MessagePane::OnKeyDown( wxKeyEvent& event ) { if (event.GetKeyCode() == WXK_ESCAPE) { DoHide(); } else event.Skip(); }
void MessagePane::DoShowNextMessage() { m_messages.PopMessage(); if (m_messages.IsEmpty()) { DoHide(); return; } DoShowCurrentMessage(); }
void wxCaret::DoSize() { int countVisible = m_countVisible; if (countVisible > 0) { m_countVisible = 0; DoHide(); } // Change bitmap size m_bmpUnderCaret = wxBitmap(m_width, m_height); if (countVisible > 0) { m_countVisible = countVisible; DoShow(); } }
void wxCaret::DoSize() { int countVisible = m_countVisible; if (countVisible > 0) { m_countVisible = 0; DoHide(); } #ifdef wxHAS_CARET_USING_OVERLAYS m_overlay.Reset(); #else // Change bitmap size m_bmpUnderCaret = wxBitmap(m_width, m_height); #endif if (countVisible > 0) { m_countVisible = countVisible; DoShow(); } }
void wxInfoBarGeneric::OnButton(wxCommandEvent& WXUNUSED(event)) { DoHide(); }
void wxInfoBarGeneric::Dismiss() { DoHide(); }
void CVolumeBarForm::OnActivate(UINT nState, CWnd *pWndOther, BOOL bMinimized) { if (nState == WA_INACTIVE) { DoHide(); } }