Parent Directory
|
Revision Log
Revision 2018 - (view) (download)
1 : | edgomez | 1382 | /***************************************************************************** |
2 : | * | ||
3 : | * XVID MPEG-4 VIDEO CODEC | ||
4 : | * - Configure from command line - | ||
5 : | * | ||
6 : | Isibaar | 1896 | * Copyright(C) 2002-2010 Peter Ross <pross@xvid.org> |
7 : | edgomez | 1382 | * |
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 : | Isibaar | 2005 | * $Id$ |
23 : | edgomez | 1382 | * |
24 : | ****************************************************************************/ | ||
25 : | |||
26 : | |||
27 : | #include <windows.h> | ||
28 : | #include <commctrl.h> | ||
29 : | #include "config.h" | ||
30 : | #include "resource.h" | ||
31 : | |||
32 : | |||
33 : | Isibaar | 1896 | HINSTANCE g_xvid_hInst; |
34 : | edgomez | 1382 | |
35 : | suxen_drol | 1503 | |
36 : | Isibaar | 1827 | INT_PTR adv_dialog(HWND hwndOwner) |
37 : | edgomez | 1382 | { |
38 : | PROPSHEETPAGE psp [1]; | ||
39 : | PROPSHEETHEADER psh; | ||
40 : | |||
41 : | psp[0].dwSize = sizeof (PROPSHEETPAGE); | ||
42 : | psp[0].dwFlags = PSP_USETITLE; | ||
43 : | suxen_drol | 1503 | psp[0].hInstance = g_xvid_hInst; |
44 : | edgomez | 1382 | psp[0].pszTemplate = MAKEINTRESOURCE (IDD_ABOUT); |
45 : | psp[0].pszIcon = NULL; | ||
46 : | psp[0].pfnDlgProc = adv_proc; | ||
47 : | Isibaar | 2018 | psp[0].pszTitle = TEXT("About"); |
48 : | edgomez | 1382 | psp[0].lParam = 0; |
49 : | |||
50 : | psh.dwSize = sizeof (PROPSHEETHEADER); | ||
51 : | psh.dwFlags = PSH_PROPSHEETPAGE; | ||
52 : | psh.hwndParent = hwndOwner; | ||
53 : | suxen_drol | 1503 | psh.hInstance = g_xvid_hInst; |
54 : | edgomez | 1382 | psh.pszIcon = NULL; |
55 : | Isibaar | 2018 | psh.pszCaption = TEXT("Xvid Configuration"); |
56 : | edgomez | 1382 | psh.nPages = sizeof (psp) / sizeof (PROPSHEETPAGE); |
57 : | suxen_drol | 1503 | psh.ppsp = psp; |
58 : | edgomez | 1382 | |
59 : | return PropertySheet (&psh); | ||
60 : | } | ||
61 : | |||
62 : | |||
63 : | suxen_drol | 1528 | extern "C" void CALLBACK Configure(HWND hWndParent, HINSTANCE hInstParent, LPSTR lpCmdLine, int nCmdShow ); |
64 : | edgomez | 1382 | |
65 : | void CALLBACK Configure(HWND hWndParent, HINSTANCE hInstParent, LPSTR lpCmdLine, int nCmdShow ) | ||
66 : | { | ||
67 : | InitCommonControls(); | ||
68 : | LoadRegistryInfo(); | ||
69 : | adv_dialog( GetDesktopWindow() ); | ||
70 : | suxen_drol | 1503 | } |
71 : | |||
72 : | |||
73 : | /* strmbase.lib\dllentry.obj:DllEntryPoint@12 */ | ||
74 : | extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID); | ||
75 : | |||
76 : | |||
77 : | suxen_drol | 1528 | extern "C" BOOL WINAPI DllMain(HINSTANCE hInst, DWORD fdwReason, LPVOID lpvReserved); |
78 : | |||
79 : | suxen_drol | 1503 | BOOL WINAPI DllMain(HINSTANCE hInst, DWORD fdwReason, LPVOID lpvReserved) |
80 : | { | ||
81 : | g_xvid_hInst = hInst; | ||
82 : | |||
83 : | /* Call directshow DllEntryPoint@12 */ | ||
84 : | return DllEntryPoint(hInst, fdwReason, lpvReserved); | ||
85 : | } | ||
86 : |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |