Click here to Skip to main content
15,886,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Customize filter control of CHeaderCtrl Pin
Richard MacCutchan16-Sep-15 2:13
mveRichard MacCutchan16-Sep-15 2:13 
GeneralRe: Customize filter control of CHeaderCtrl Pin
aks.17-Sep-15 22:08
aks.17-Sep-15 22:08 
QuestionRadio Buttons, Lots of them Pin
golfbird8-Sep-15 3:03
golfbird8-Sep-15 3:03 
AnswerRe: Radio Buttons, Lots of them Pin
Eddy Vluggen8-Sep-15 3:38
professionalEddy Vluggen8-Sep-15 3:38 
GeneralRe: Radio Buttons, Lots of them Pin
golfbird8-Sep-15 7:47
golfbird8-Sep-15 7:47 
AnswerRe: Radio Buttons, Lots of them Pin
Richard MacCutchan8-Sep-15 4:46
mveRichard MacCutchan8-Sep-15 4:46 
GeneralRe: Radio Buttons, Lots of them Pin
golfbird8-Sep-15 10:15
golfbird8-Sep-15 10:15 
GeneralRe: Radio Buttons, Lots of them Pin
jeron18-Sep-15 10:47
jeron18-Sep-15 10:47 
golfbird wrote:
I was hoping I could intercept the routine and justadd my own function to
it.
You can, see Davids reply. You'll need an ON_BN_CLICKED() entry for every radio button, but the function that gets called can be the same. Though for a 100 buttons I imagine it gets unwieldy.

C#
BEGIN_MESSAGE_MAP(CMyDialog, CDialog)
    //{{AFX_MSG_MAP(CMyDialog)
    ON_BN_CLICKED(IDC_RADIO_1, OnRadioClick)
    ON_BN_CLICKED(IDC_RADIO_2, OnRadioClick)
    ON_BN_CLICKED(IDC_RADIO_3, OnRadioClick)
    //}}AFX_MSG_MAP
END_MESSAGE_MAP()

"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle

GeneralRe: Radio Buttons, Lots of them Pin
golfbird8-Sep-15 13:46
golfbird8-Sep-15 13:46 
AnswerRe: Radio Buttons, Lots of them Pin
Peter Leow8-Sep-15 4:56
professionalPeter Leow8-Sep-15 4:56 
AnswerRe: Radio Buttons, Lots of them Pin
David Crow8-Sep-15 9:13
David Crow8-Sep-15 9:13 
GeneralRe: Radio Buttons, Lots of them Pin
golfbird8-Sep-15 9:33
golfbird8-Sep-15 9:33 
QuestionCreate CBitmap from another CBitmap Pin
_Flaviu3-Sep-15 1:49
_Flaviu3-Sep-15 1:49 
AnswerRe: Create CBitmap from another CBitmap Pin
Jochen Arndt3-Sep-15 2:23
professionalJochen Arndt3-Sep-15 2:23 
GeneralRe: Create CBitmap from another CBitmap Pin
_Flaviu3-Sep-15 22:29
_Flaviu3-Sep-15 22:29 
QuestionWriting a Generic Function Pin
Donguy19762-Sep-15 12:17
Donguy19762-Sep-15 12:17 
AnswerRe: Writing a Generic Function Pin
Richard MacCutchan2-Sep-15 21:06
mveRichard MacCutchan2-Sep-15 21:06 
Questionproblems with std::bind in VS2015 Pin
Member 85340352-Sep-15 5:11
Member 85340352-Sep-15 5:11 
QuestionCFileDialog strange GetFileName Pin
_Flaviu1-Sep-15 23:18
_Flaviu1-Sep-15 23:18 
AnswerRe: CFileDialog strange GetFileName Pin
Jochen Arndt2-Sep-15 0:10
professionalJochen Arndt2-Sep-15 0:10 
GeneralRe: CFileDialog strange GetFileName Pin
_Flaviu2-Sep-15 0:58
_Flaviu2-Sep-15 0:58 
QuestionSet focus automatically to the last focus item after clossinga modal dialog Pin
aks.1-Sep-15 22:02
aks.1-Sep-15 22:02 
QuestionRe: Set focus automatically to the last focus item after clossinga modal dialog Pin
Richard MacCutchan2-Sep-15 2:55
mveRichard MacCutchan2-Sep-15 2:55 
AnswerRe: Set focus automatically to the last focus item after clossinga modal dialog Pin
aks.3-Sep-15 2:36
aks.3-Sep-15 2:36 
GeneralRe: Set focus automatically to the last focus item after clossinga modal dialog Pin
Richard MacCutchan3-Sep-15 3:42
mveRichard MacCutchan3-Sep-15 3:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.