File Index Symbol Index

/*********************************************************************** Vczh Library++ 3.0 Developer: Zihan Chen(vczh) GacUI::Native Window::Windows Implementation Interfaces: ***********************************************************************/
#ifndef VCZH_PRESENTATION_WINDOWS_SERVICESIMPL_WINDOWSDIALOGSERVICE
#define VCZH_PRESENTATION_WINDOWS_SERVICESIMPL_WINDOWSDIALOGSERVICE
#include "..\..\GuiNativeWindow.h"
#include "..\WinNativeDpiAwareness.h"
namespace
vl
{
namespace
presentation
{
namespace
windows
{
class
WindowsDialogService
:
public
INativeDialogService
{
typedef
HWND
(*
HandleRetriver
)(
INativeWindow
*);
protected
:
HandleRetriver
handleRetriver
;
public
:
WindowsDialogService
(
HandleRetriver
_handleRetriver
);
MessageBoxButtonsOutput
ShowMessageBox
(
INativeWindow
*
window
,
const
WString
&
text
,
const
WString
&
title
,
MessageBoxButtonsInput
buttons
,
MessageBoxDefaultButton
defaultButton
,
MessageBoxIcons
icon
,
MessageBoxModalOptions
modal
)
override
;
bool
ShowColorDialog
(
INativeWindow
*
window
,
Color
&
selection
,
bool
selected
,
ColorDialogCustomColorOptions
customColorOptions
,
Color
*
customColors
)
override
;
bool
ShowFontDialog
(
INativeWindow
*
window
,
FontProperties
&
selectionFont
,
Color
&
selectionColor
,
bool
selected
,
bool
showEffect
,
bool
forceFontExist
)
override
;
bool
ShowFileDialog
(
INativeWindow
*
window
,
collections
::
List
<
WString
>&
selectionFileNames
,
vint
&
selectionFilterIndex
,
FileDialogTypes
dialogType
,
const
WString
&
title
,
const
WString
&
initialFileName
,
const
WString
&
initialDirectory
,
const
WString
&
defaultExtension
,
const
WString
&
filter
,
FileDialogOptions
options
)
override
; }; } } }
#endif