Ejemplo n.º 1
0
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();
}
Ejemplo n.º 2
0
void MessagePane::OnKeyDown( wxKeyEvent& event )
{
    if (event.GetKeyCode() == WXK_ESCAPE) {
        DoHide();

    } else
        event.Skip();
}
Ejemplo n.º 3
0
void MessagePane::DoShowNextMessage()
{
    m_messages.PopMessage();
    if (m_messages.IsEmpty()) {
        DoHide();
        return;
    }

    DoShowCurrentMessage();
}
Ejemplo n.º 4
0
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();
    }
}
Ejemplo n.º 5
0
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();
    }
}
Ejemplo n.º 6
0
void wxInfoBarGeneric::OnButton(wxCommandEvent& WXUNUSED(event))
{
    DoHide();
}
Ejemplo n.º 7
0
void wxInfoBarGeneric::Dismiss()
{
    DoHide();
}
Ejemplo n.º 8
0
void CVolumeBarForm::OnActivate(UINT nState, CWnd *pWndOther, BOOL bMinimized)
{
	if (nState == WA_INACTIVE) {
		DoHide();
	}
}