[svn] / branches / dev-api-4 / xvidcore / dshow / src / Configure.cpp Repository:
ViewVC logotype

View of /branches/dev-api-4/xvidcore/dshow/src/Configure.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1345 - (download) (annotate)
Sat Jan 31 13:44:56 2004 UTC (20 years, 1 month ago) by suxen_drol
File size: 2293 byte(s)
- configuration from command line; % rundll32 xvid.ax,Configure
- configuration cleanup: moved all processing into config.c/h
(it should be very easy now to re-use the vfw encoder dialogs...)
/*****************************************************************************
 *
 *  XVID MPEG-4 VIDEO CODEC
 *  - Configure from command line  -
 *
 *  Copyright(C) 2002-2004 Peter Ross <pross@xvid.org>
 *
 *  This program is free software ; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation ; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY ; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program ; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 *
 * $Id: Configure.cpp,v 1.1.2.1 2004-01-31 13:44:33 suxen_drol Exp $
 *
 ****************************************************************************/


#include <windows.h>
#include <commctrl.h>
#include "config.h"
#include "resource.h"

/* "DllEntryPoint@12" in strmbase.lib\dllentry.obj stores the module in g_hInst 
    this function must be called on DllEntry, inorder for property pages to function
	likewise, we need g_hInst inorder to display property sheets from command line
*/
extern HINSTANCE g_hInst;


int adv_dialog(HWND hwndOwner)
{
	PROPSHEETPAGE psp [1];
	PROPSHEETHEADER psh;

	psp[0].dwSize = sizeof (PROPSHEETPAGE);
	psp[0].dwFlags = PSP_USETITLE;
	psp[0].hInstance = g_hInst;
	psp[0].pszTemplate = MAKEINTRESOURCE (IDD_ABOUT);
	psp[0].pszIcon = NULL;
	psp[0].pfnDlgProc = adv_proc;
	psp[0].pszTitle = "About";
	psp[0].lParam = 0;

	psh.dwSize = sizeof (PROPSHEETHEADER);
	psh.dwFlags = PSH_PROPSHEETPAGE;
	psh.hwndParent = hwndOwner;
	psh.hInstance = g_hInst;
	psh.pszIcon = NULL;
	psh.pszCaption = (LPSTR)"XviD Configuration";
	psh.nPages = sizeof (psp) / sizeof (PROPSHEETPAGE);
	psh.ppsp = (LPCPROPSHEETPAGE) &psp;

	return PropertySheet (&psh);
}



void CALLBACK Configure(HWND hWndParent, HINSTANCE hInstParent, LPSTR lpCmdLine, int nCmdShow ) 
{
	InitCommonControls();
	LoadRegistryInfo();
	adv_dialog( GetDesktopWindow() );
}

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4