]> git.sesse.net Git - vlc/blob - activex/oleinplaceactiveobject.cpp
4239a4d1f5e587a6ac91b1f6dc3869bfb045f6f9
[vlc] / activex / oleinplaceactiveobject.cpp
1 /*****************************************************************************\r
2  * oleinplaceactiveobject.cpp: ActiveX control for VLC\r
3  *****************************************************************************\r
4  * Copyright (C) 2005 VideoLAN\r
5  *\r
6  * Authors: Damien Fouilleul <Damien.Fouilleul@laposte.net>\r
7  *\r
8  * This program is free software; you can redistribute it and/or modify\r
9  * it under the terms of the GNU General Public License as published by\r
10  * the Free Software Foundation; either version 2 of the License, or\r
11  * (at your option) any later version.\r
12  *\r
13  * This program is distributed in the hope that it will be useful,\r
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
16  * GNU General Public License for more details.\r
17  *\r
18  * You should have received a copy of the GNU General Public License\r
19  * along with this program; if not, write to the Free Software\r
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.\r
21  *****************************************************************************/\r
22 \r
23 #include "plugin.h"\r
24 #include "oleinplaceactiveobject.h"\r
25 \r
26 using namespace std;\r
27 \r
28 STDMETHODIMP VLCOleInPlaceActiveObject::GetWindow(HWND *pHwnd)\r
29 {\r
30     if( NULL == pHwnd )\r
31         return E_INVALIDARG;\r
32 \r
33     if( _p_instance->isInPlaceActive() )\r
34     {\r
35         if( NULL != (*pHwnd = _p_instance->getInPlaceWindow()) )\r
36             return S_OK;\r
37 \r
38         return E_FAIL;\r
39     }\r
40     *pHwnd = NULL;\r
41 \r
42     return E_UNEXPECTED;\r
43 };\r
44 \r
45 STDMETHODIMP VLCOleInPlaceActiveObject::EnableModeless(BOOL fEnable)\r
46 {\r
47     return E_NOTIMPL;\r
48 };\r
49 \r
50 STDMETHODIMP VLCOleInPlaceActiveObject::ContextSensitiveHelp(BOOL fEnterMode)\r
51 {\r
52     return E_NOTIMPL;\r
53 };\r
54 \r
55 STDMETHODIMP VLCOleInPlaceActiveObject::TranslateAccelerator(LPMSG lpmsg)\r
56 {\r
57     return E_NOTIMPL;\r
58 };\r
59 \r
60 STDMETHODIMP VLCOleInPlaceActiveObject::OnFrameWindowActivate(BOOL fActivate)\r
61 {\r
62     return E_NOTIMPL;\r
63 };\r
64 \r
65 STDMETHODIMP VLCOleInPlaceActiveObject::OnDocWindowActivate(BOOL fActivate)\r
66 {\r
67     return E_NOTIMPL;\r
68 };\r
69 \r
70 STDMETHODIMP VLCOleInPlaceActiveObject::ResizeBorder(LPCRECT prcBorder, LPOLEINPLACEUIWINDOW pUIWindow, BOOL fFrameWindow)\r
71 {\r
72     return E_NOTIMPL;\r
73 };\r
74 \r