CodeExplorer Posted December 18, 2022 Posted December 18, 2022 (edited) Hi. I looking for something... ComboBox event when selected item text was changed and finalized??? - After selected value changed! Visual C++ 6.0 Edited December 18, 2022 by CodeExplorer
fearless Posted December 18, 2022 Posted December 18, 2022 https://learn.microsoft.com/en-us/windows/win32/controls/bumper-combobox-control-reference-notifications CBN_SELCHANGE https://learn.microsoft.com/en-us/windows/win32/controls/cbn-selchange CBN_SELENDOK https://learn.microsoft.com/en-us/windows/win32/controls/cbn-selendok CBN_EDITCHANGE https://learn.microsoft.com/en-us/windows/win32/controls/cbn-editchange CBN_EDITUPDATE https://learn.microsoft.com/en-us/windows/win32/controls/cbn-editupdate
CodeExplorer Posted December 18, 2022 Author Posted December 18, 2022 @fearless: Thanks. I solved this this using OnSelchangeCombo1 and getting index (has proper value) - only text was not updated, like this: void DefineImport::OnSelchangeCombo1() { // TODO: Add your control notification handler code here CWnd* hcombo = GetDlgItem(IDC_COMBO1); int index = ::SendMessage(hcombo->m_hWnd, CB_GETCURSEL, 0, 0); char ptext[512]; SendDlgItemMessage(IDC_COMBO1, CB_GETLBTEXT, index, (LPARAM)(LPCTSTR)ptext); 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now