#ifndef VCZH_PRESENTATION_CONTROLS_GUICOMBOCONTROLS
#define VCZH_PRESENTATION_CONTROLS_GUICOMBOCONTROLS
#include "../GuiWindowControls.h"
#include "GuiListControls.h"
#include "../ToolstripPackage/GuiMenuControls.h"
namespace
{
namespace
{
namespace
{
class
:
public
,
public
<
>
{
GUI_SPECIFY_CONTROL_TEMPLATE_TYPE(ComboBoxTemplate, GuiMenuButton)
public
:
using
=
templates
::
;
private
:
templates
::
*
=
nullptr
;
void
BeforeControlTemplateUninstalled_
();
void
AfterControlTemplateInstalled_
(
bool
);
protected
:
void
BeforeControlTemplateUninstalled
()
override
{
BeforeControlTemplateUninstalled_
();
::
BeforeControlTemplateUninstalled
(); }
void
AfterControlTemplateInstalled
(
bool
)
override
{
::
AfterControlTemplateInstalled
(
);
AfterControlTemplateInstalled_
(
); }
void
CheckAndStoreControlTemplate
(
templates
::
*
)
override
{
auto
=
dynamic_cast
<
templates
::
*>(
);
do
{
if
(!(
ct
))
throw
(
L"The assigned control template is not vl::presentation::templates::Gui"
L"ComboBoxTemplate"
L"."
);}
while
(
0
);
=
ct
;
::
CheckAndStoreControlTemplate
(
); }
public
:
templates
::
*
TypedControlTemplateObject
(
bool
) {
if
(
) {
EnsureControlTemplateExists
(); }
return
; }
private
:
protected
:
::
()
override
;
void
(
compositions
::
*
,
compositions
::
&
);
public
:
(
theme
::
);
();
};
class
:
public
,
private
::
,
public
<
>
{
public
:
using
=
<
templates
::
>;
protected
:
*
=
nullptr
;
= -
1
;
;
templates
::
*
=
nullptr
;
<
compositions
::
>
;
void
()
override
;
void
BeforeControlTemplateUninstalled
()
override
;
void
AfterControlTemplateInstalled
(
bool
)
override
;
void
();
void
(
);
virtual
void
(
);
void
();
void
(
compositions
::
*
,
compositions
::
&
);
void
(
compositions
::
*
,
compositions
::
&
);
void
(
compositions
::
*
,
compositions
::
&
);
void
(
compositions
::
* ,
compositions
::
& );
void
OnListControlAdoptedSizeInvalidated
(
compositions
::
*
,
compositions
::
&
);
void
OnListControlBoundsChanged
(
compositions
::
*
,
compositions
::
&
);
void
OnListControlItemMouseDown
(
compositions
::
*
,
compositions
::
&
);
void
(
compositions
::
*
,
compositions
::
&
);
private
:
void
(
::
*
)
override
;
void
(
,
,
)
override
;
public
:
(
theme
::
,
*
);
();
compositions
::
;
compositions
::
;
*
();
virtual
();
virtual
void
(
);
();
void
(
);
description
::
();
::
*
();
};
}
}
}
#endif