BEGIN_MESSAGE_MAP Question
- From: Frank <jerk@xxxxxx>
- Date: Mon, 6 Feb 2012 05:14:21 -0800 (PST)
Dear people,
please consider the following code:
BEGIN_MESSAGE_MAP(CMyPropertyPage, CMyPropertyPageParent)
//{{AFX_MSG_MAP(CMyPropertyPage)
ON_BN_CLICKED(IDC_RADIO_1, &CMyPropertyPage::OnBnClickedRadioGroup)
ON_BN_CLICKED(IDC_RADIO_2, &CMyPropertyPage::OnBnClickedRadioGroup)
.
.
.
END_MESSAGE_MAP()
//}}AFX_MSG_MAP
Basically, I have a list of several radio buttons to which
members are added once in a while, but all are handled by
the same function. Because the list of buttons changes
constantly,I'd like to have them all in one place so I can't
forget to handle one. I stored the IDs along with some
extra information in a vector, I call the DDX_... macros
in a loop, but: (How) is it possible to circumvent the
above message map so I could map all the IDs in a
loop to the handler function?
.
- Follow-Ups:
- Re: BEGIN_MESSAGE_MAP Question
- From: ScottMcP [MVP]
- Re: BEGIN_MESSAGE_MAP Question
- Prev by Date: Re: Duplicate client/server programs.
- Next by Date: Re: BEGIN_MESSAGE_MAP Question
- Previous by thread: Duplicate client/server programs.
- Next by thread: Re: BEGIN_MESSAGE_MAP Question
- Index(es):
Relevant Pages
|