videowindow.cpp

来自「基于sipfoundy 公司开发的sipx协议API」· C++ 代码 · 共 61 行

CPP
61
字号
//// Copyright (C) 2005-2006 SIPez LLC.// Licensed to SIPfoundry under a Contributor Agreement.//// Copyright (C) 2004-2006 SIPfoundry Inc.// Licensed by SIPfoundry under the LGPL license.//// Copyright (C) 2004, 2005 Pingtel Corp.// Licensed to SIPfoundry under a Contributor Agreement.//// $$////////////////////////////////////////////////////////////////////////// SYSTEM INCLUDES// APPLICATION INCLUDES#include "stdwx.h"#include "sipXmgr.h"#include "VideoWindow.h"#include "sipXezPhoneSettings.h"// EXTERNAL FUNCTIONS// EXTERNAL VARIABLES// CONSTANTS// STATIC VARIABLE INITIALIZATIONS// MACROSBEGIN_EVENT_TABLE(VideoWindow, wxPanel)    //EVT_PAINT(VideoWindow::OnPaint) END_EVENT_TABLE()// ConstructorVideoWindow::VideoWindow(wxWindow* parent, const wxPoint& pos, const wxSize& size) :   wxPanel(parent, IDR_VIDEO_WINDOW, pos, size, wxTAB_TRAVERSAL, "VideoWindow"){    wxColor* wxBlack = wxTheColourDatabase->FindColour("BLACK");    SetBackgroundColour(*wxBlack);    #ifdef WIN32    sipXmgr::getInstance().setVideoWindow((void*)GetHWND());#endif}void VideoWindow::OnPaint(wxPaintEvent& event){    {      wxPaintDC dc(this);    }#if defined(VIDEO) && defined(WIN32)    if (sipXmgr::getInstance().getCurrentCall())    {        sipxCallUpdateVideoWindow(sipXmgr::getInstance().getCurrentCall(), (SIPX_WINDOW_HANDLE)GetHWND());    }#endif}// DestructorVideoWindow::~VideoWindow(){}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?