protected override bool ControlProc(IntPtr hWndParent, IntPtr hWndControl, int controlId, uint command, IntPtr wParam, IntPtr lParam) { bool handled = false; switch (command) { case ComboBoxMessages.CBN_SELCHANGE: int selIndex = this.SelectedIndex; NativeComboBoxSelChangeEventArgs evItem = new NativeComboBoxSelChangeEventArgs(selIndex); OnSelChange(evItem); handled = true; break; } return(handled); }
protected virtual void OnSelChange(NativeComboBoxSelChangeEventArgs e) { SafeInvoke(this.SelChange, e); }