Bochs/bochs/gui/win32paramdlg.h
Volker Ruppert c82e57cb5f - implemented dynamic dialog box created from a parameter list (bx_list_c)
* ported the basic functionality of the wx ParamDialog to win32
  * moved AskFilename() function to the new file
  * win32ParamDialog() now used for the external USB hub (if present)
  * TODO: with some extensions it might be possible to use it for all runtime
    dialogs and to implement a gui replacement for the textconfig start menu
2009-03-10 19:33:03 +00:00

51 lines
1.6 KiB
C

/////////////////////////////////////////////////////////////////////////
// $Id: win32paramdlg.h,v 1.1 2009-03-10 19:33:03 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2009 Volker Ruppert
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#ifndef BX_WIN32_PARAMDLG_H
#define BX_WIN32_PARAMDLG_H
#include "config.h"
#ifndef _WIN32_IE
#define _WIN32_IE 0x0400 // Force a minimum "OS level" for commctrl.h
#endif
#if _WIN32_IE < 0x0400
#undef _WIN32_IE
#define _WIN32_IE 0x0400
#endif
extern "C" {
#include <assert.h>
#include <stdio.h>
#include <windows.h>
#include <commctrl.h>
#include <shlobj.h>
#include <ctype.h>
}
#if BX_USE_TEXTCONFIG && defined(WIN32)
int AskFilename(HWND hwnd, bx_param_filename_c *param, const char *ext);
int win32ParamDialog(HWND parent, bx_list_c *list);
#endif
#endif // BX_WIN32_PARAMDLG_H