Click here to Skip to main content
16,021,430 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to send TVN_BEGINLABELEDIT from a custom tree control Pin
Amrit Agr10-Jul-11 21:50
Amrit Agr10-Jul-11 21:50 
AnswerRe: How to send TVN_BEGINLABELEDIT from a custom tree control Pin
Richard MacCutchan10-Jul-11 22:13
mveRichard MacCutchan10-Jul-11 22:13 
AnswerRe: How to send TVN_BEGINLABELEDIT from a custom tree control Pin
User 742933810-Jul-11 22:21
professionalUser 742933810-Jul-11 22:21 
GeneralRe: How to send TVN_BEGINLABELEDIT from a custom tree control Pin
Amrit Agr10-Jul-11 22:59
Amrit Agr10-Jul-11 22:59 
QuestionHow can use Proxy Settings in VC++? Pin
Le@rner10-Jul-11 19:29
Le@rner10-Jul-11 19:29 
AnswerRe: How can use Proxy Settings in VC++? Pin
Cool_Dev10-Jul-11 20:50
Cool_Dev10-Jul-11 20:50 
GeneralRe: How can use Proxy Settings in VC++? Pin
Le@rner11-Jul-11 0:12
Le@rner11-Jul-11 0:12 
QuestionHow to send events to extended child control? Pin
rahul.kulshreshtha8-Jul-11 20:21
rahul.kulshreshtha8-Jul-11 20:21 
I have extended a CComboBox and implemented three messages (or events) like below

 BEGIN_MESSAGE_MAP(CComboCtrl, CComboBox)
ON_WM_KEYDOWN()
ON_CONTROL_REFLECT(CBN_EDITUPDATE, &CComboCtrl::OnCbnEditupdate)
ON_CONTROL_REFLECT(CBN_SELCHANGE, &CComboCtrl::OnCbnSelchange)
 END_MESSAGE_MAP()


Now when a selection changes it calls OnCbnSelchange message-handler. I am using this class inside a dialog class. I have tried to register a message handler in that dialog class for CBN_SELCHANGE event but I think it is not receiving CBN_SELCHANGE event or it is sending that event to custom control. How can I handle CBN_SELCHANGE event inside a dialog class.

This is the implementation inside derived class (or custom control class)
void CComboCtrl::OnCbnSelchange()
{
    // TODO: Add your control notification handler code here
   
    GetLBText(GetCurSel(),m_str_sel); //get previous text in combo. 
		
}

AnswerRe: How to send events to extended child control? Pin
Richard MacCutchan9-Jul-11 2:05
mveRichard MacCutchan9-Jul-11 2:05 
GeneralRe: How to send events to extended child control? Pin
rahul.kulshreshtha9-Jul-11 8:24
rahul.kulshreshtha9-Jul-11 8:24 
QuestionPicturControl Pin
manju 38-Jul-11 19:51
manju 38-Jul-11 19:51 
AnswerRe: PicturControl - REPOST Pin
Richard MacCutchan8-Jul-11 23:30
mveRichard MacCutchan8-Jul-11 23:30 
QuestionCImageList Pin
manju 38-Jul-11 18:49
manju 38-Jul-11 18:49 
AnswerRe: CImageList Pin
Richard MacCutchan8-Jul-11 23:29
mveRichard MacCutchan8-Jul-11 23:29 
QuestionMultimap? Pin
john56328-Jul-11 0:45
john56328-Jul-11 0:45 
QuestionRe: Multimap? Pin
Niklas L8-Jul-11 0:52
Niklas L8-Jul-11 0:52 
AnswerRe: Multimap? Pin
Stephen Hewitt8-Jul-11 4:34
Stephen Hewitt8-Jul-11 4:34 
GeneralRe: Multimap? Pin
Niklas L8-Jul-11 4:49
Niklas L8-Jul-11 4:49 
AnswerRe: Multimap? Pin
Resmi Anna8-Jul-11 1:05
Resmi Anna8-Jul-11 1:05 
GeneralRe: Multimap? Pin
Stephen Hewitt8-Jul-11 4:32
Stephen Hewitt8-Jul-11 4:32 
AnswerRe: Multimap? Pin
ThatsAlok8-Jul-11 1:52
ThatsAlok8-Jul-11 1:52 
AnswerRe: Multimap? Pin
Stephen Hewitt8-Jul-11 4:31
Stephen Hewitt8-Jul-11 4:31 
QuestionMAP???? Pin
john56327-Jul-11 20:51
john56327-Jul-11 20:51 
AnswerRe: MAP???? Pin
ThatsAlok7-Jul-11 21:09
ThatsAlok7-Jul-11 21:09 
AnswerRe: MAP???? Pin
Resmi Anna7-Jul-11 22:30
Resmi Anna7-Jul-11 22:30 

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.