Posted December 18, 20222 yr 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, 20222 yr by CodeExplorer
December 18, 20222 yr 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
December 18, 20222 yr Author @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);
Create an account or sign in to comment