Click here to Skip to main content
14,694,736 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Customize filter control of CHeaderCtrl Pin
Richard MacCutchan16-Sep-15 3:13
mveRichard MacCutchan16-Sep-15 3:13 
GeneralRe: Customize filter control of CHeaderCtrl Pin
aks.17-Sep-15 23:08
Memberaks.17-Sep-15 23:08 
QuestionRadio Buttons, Lots of them Pin
golfbird8-Sep-15 4:03
Membergolfbird8-Sep-15 4:03 
AnswerRe: Radio Buttons, Lots of them Pin
Eddy Vluggen8-Sep-15 4:38
professionalEddy Vluggen8-Sep-15 4:38 
GeneralRe: Radio Buttons, Lots of them Pin
golfbird8-Sep-15 8:47
Membergolfbird8-Sep-15 8:47 
AnswerRe: Radio Buttons, Lots of them Pin
Richard MacCutchan8-Sep-15 5:46
mveRichard MacCutchan8-Sep-15 5:46 
GeneralRe: Radio Buttons, Lots of them Pin
golfbird8-Sep-15 11:15
Membergolfbird8-Sep-15 11:15 
GeneralRe: Radio Buttons, Lots of them Pin
jeron18-Sep-15 11:47
Memberjeron18-Sep-15 11: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.

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