1 |
|
/***************************************************************************** |
2 |
|
* |
3 |
|
* XVID MPEG-4 VIDEO CODEC - DShow Front End |
4 |
|
* - About Property Page - |
5 |
|
* |
6 |
|
* Copyright(C) 2002-2004 Peter Ross <pross@xvid.org> |
7 |
|
* |
8 |
|
* This program is free software ; you can redistribute it and/or modify |
9 |
|
* it under the terms of the GNU General Public License as published by |
10 |
|
* the Free Software Foundation ; either version 2 of the License, or |
11 |
|
* (at your option) any later version. |
12 |
|
* |
13 |
|
* This program is distributed in the hope that it will be useful, |
14 |
|
* but WITHOUT ANY WARRANTY ; without even the implied warranty of |
15 |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
|
* GNU General Public License for more details. |
17 |
|
* |
18 |
|
* You should have received a copy of the GNU General Public License |
19 |
|
* along with this program ; if not, write to the Free Software |
20 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
|
* |
22 |
|
* $Id$ |
23 |
|
* |
24 |
|
****************************************************************************/ |
25 |
|
|
26 |
|
/**************************************************************************** |
27 |
|
* |
28 |
|
* 2004/02/01 - Move configuration processing code into config.c |
29 |
|
* 2003/12/11 - added some additional options, mainly to make the deblocking |
30 |
|
* code from xvidcore available. Most of the new code is taken |
31 |
|
* from Nic's dshow filter, (C) Nic, http://nic.dnsalias.com |
32 |
|
* |
33 |
|
****************************************************************************/ |
34 |
|
#include <windows.h> |
35 |
|
#include <commctrl.h> |
36 |
|
#include "CAbout.h" |
37 |
|
#include "CXvidDecoder.h" |
38 |
|
#include "resource.h" |
39 |
|
#include "config.h" |
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
CUnknown * WINAPI CAbout::CreateInstance(LPUNKNOWN punk, HRESULT *phr) |
44 |
|
{ |
45 |
|
CAbout * pNewObject = new CAbout(punk, phr); |
46 |
|
if (pNewObject == NULL) |
47 |
|
{ |
48 |
|
*phr = E_OUTOFMEMORY; |
49 |
|
} |
50 |
|
return pNewObject; |
51 |
|
} |
52 |
|
|
53 |
|
|
54 |
|
CAbout::CAbout(LPUNKNOWN pUnk, HRESULT * phr) : |
55 |
|
CBasePropertyPage(NAME("CAbout"), pUnk, IDD_ABOUT, IDS_ABOUT) |
56 |
|
{ |
57 |
|
ASSERT(phr); |
58 |
|
} |
59 |
|
|
60 |
|
|
61 |
|
CAbout::~CAbout() |
62 |
|
{ |
63 |
|
} |
64 |
|
|
65 |
|
|
66 |
|
BOOL CAbout::OnReceiveMessage(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
67 |
|
{ |
68 |
|
if (adv_proc(hwnd, uMsg, wParam, lParam) == FALSE) { |
69 |
|
return CBasePropertyPage::OnReceiveMessage(hwnd, uMsg, wParam, lParam); |
70 |
|
} |
71 |
|
return TRUE; |
72 |
|
} |
73 |
|
|