M
matro
hi there,
I have the following struct in my class:
class CTbStDialog : public CDialog
{
public:
int fooVar, fooVar2;
... //other foo variables...
struct sStatusBarPanels {
UINT Panels;
UINT Indicators[3];
HICON EnabledIcons[3];
HICON DisabledIcons[3];
UINT EnabledToolTips[3];
UINT DisabledToolTips[3];
UINT Styles[3];
UINT Widths[3];
} StatusBarPanels;
}
how can I initialize StatusBarPanels without referencing each of its
members?
I'd like to use an init such as StatusBarPanels={ 3, {ID_SEPARATOR....
.....} } but I don't know where to place such initialization: it seems it
only works when initializing function member variables, and not for class
member ones.
as a matter of fact, it seems a compiler semantics limitation.
can you help me?
thank you.
I have the following struct in my class:
class CTbStDialog : public CDialog
{
public:
int fooVar, fooVar2;
... //other foo variables...
struct sStatusBarPanels {
UINT Panels;
UINT Indicators[3];
HICON EnabledIcons[3];
HICON DisabledIcons[3];
UINT EnabledToolTips[3];
UINT DisabledToolTips[3];
UINT Styles[3];
UINT Widths[3];
} StatusBarPanels;
}
how can I initialize StatusBarPanels without referencing each of its
members?
I'd like to use an init such as StatusBarPanels={ 3, {ID_SEPARATOR....
.....} } but I don't know where to place such initialization: it seems it
only works when initializing function member variables, and not for class
member ones.
as a matter of fact, it seems a compiler semantics limitation.
can you help me?
thank you.