Home > Software engineering >  Vc6.0 MFC how the combobox dropdown option correlation functions
Vc6.0 MFC how the combobox dropdown option correlation functions

Time:01-15

Beginners a, want to ask the great spirit when the mouse to click the drop-down options appear simple tips, is actually a function, so how should link the drop-down options and this function?

CodePudding user response:

Is to want to know how to add the drop-down combo box item? Still want to know how a drop-down items in the selected items

CodePudding user response:

Click options corresponding functions such as
http://blog.csdn.net/bigtree_mfc/article/details/53780024

CodePudding user response:

Do you want to add a ToolTip? A similar post at http://bbs.csdn.net/topics/50403676

CodePudding user response:

reference 1st floor lx624909677 response:
is to want to know how to add the drop-down combo box item? Still want to know how a drop-down items in the selected items?

Is the drop-down item selected later can pop-up message

CodePudding user response:

ON_CONTROL_REFLECT (CBN_DROPDOWN OnDropdown)
Void CxxxxComboBox: : OnDropdown ()

Afx_msg void OnDropdown ();

CodePudding user response:

reference 4 floor zzh19970414 response:
Quote: reference 1st floor lx624909677 response:
is to want to know how to add the drop-down combo box item? Still want to know how a drop-down items in the selected items?

Is the drop-down item selected later can pop-up message

Said the pop-up message is selected after one pop up a message box such effect?

CodePudding user response:

refer to 6th floor lx624909677 response:
Quote: refer to 4th floor zzh19970414 response:

Quote: refer to 1st floor lx624909677 response:
is to want to know how to add the drop-down combo box item? Still want to know how a drop-down items in the selected items?

Is the drop-down item selected later can pop-up message

Said the pop-up message is selected after one pop up a message box such effect?

On the right! Could you tell me how to link it?

CodePudding user response:

ON_CBN_SELCHANGE (IDC_COMBO OnSelchangeCombo2)
Void CCBlistDlg: : OnSelchangeCombo ()
{
//TODO: Add your the control notification handler code here
Int index=m_Comb2. GetCurSel ();
AfxDump & lt; If (index==4)
{
M_Comb2. SetCurSel (m_LastSel);
}
The else
{
M_LastSel=index;
}
}
//
Afx_msg void OnSelchanged (NMHDR * pNMHDR, LRESULT * pResult);
  • Related