Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F571996
OptionsGui.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
OptionsGui.h
View Options
#pragma once
#include
<windows.h>
#include
"resource.h"
// WTL
#include
<atlbase.h> // base ATL classes
#include
<atlapp.h> // base WTL classes
#include
<atlwin.h> // ATL GUI classes
#include
<atlcrack.h> // WTL enhanced msg map macros
#include
<atlctrls.h> // WTL controls
#include
<atlddx.h> // WTL dialog data exchange
class
ConfigObject
;
class
OptionsGui
:
public
CDialogImpl
<
OptionsGui
>
,
public
CWinDataExchange
<
OptionsGui
>
{
public
:
enum
{
IDD
=
IDD_DLG_OPTIONS
};
BEGIN_DDX_MAP
(
OptionsGui
)
DDX_CONTROL_HANDLE
(
IDC_OPTIONS_SECTIONNAME
,
EditSectionName
)
END_DDX_MAP
()
BEGIN_MSG_MAP
(
OptionsGui
)
MSG_WM_INITDIALOG
(
OnInitDialog
)
COMMAND_ID_HANDLER_EX
(
IDC_BTN_OPTIONS_OK
,
OnOK
)
COMMAND_ID_HANDLER_EX
(
IDC_BTN_OPTIONS_CANCEL
,
OnCancel
)
COMMAND_ID_HANDLER_EX
(
IDCANCEL
,
OnCancel
)
END_MSG_MAP
()
private
:
CEdit
EditSectionName
;
BOOL
OnInitDialog
(
CWindow
wndFocus
,
LPARAM
lInitParam
);
void
OnOK
(
UINT
uNotifyCode
,
int
nID
,
CWindow
wndCtl
);
void
OnCancel
(
UINT
uNotifyCode
,
int
nID
,
CWindow
wndCtl
);
void
saveOptions
();
void
loadOptions
();
void
setCheckBox
(
int
nIDDlgItem
,
bool
bValue
);
void
displayConfigInDlg
(
ConfigObject
&
config
);
void
setEditControl
(
int
nIDDlgItem
,
const
WCHAR
*
valueString
);
void
getConfigOptionsFromDlg
(
ConfigObject
&
config
);
bool
getEditControl
(
int
nIDDlgItem
,
WCHAR
*
valueString
);
void
getCheckBox
(
int
dialogItemValue
,
DWORD_PTR
*
valueNumeric
);
void
getEditControlNumeric
(
int
nIDDlgItem
,
DWORD_PTR
*
valueNumeric
,
int
nBase
);
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Mon, Mar 2, 12:14 AM (1 d, 8 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
35/f4/30637c12ad497824d035a90a1b87
Attached To
rSCY Scylla
Event Timeline
Log In to Comment