diff --git a/lcl/interfaces/win32/win32callback.inc b/lcl/interfaces/win32/win32callback.inc index 25197bf1b5..0506b6b387 100644 --- a/lcl/interfaces/win32/win32callback.inc +++ b/lcl/interfaces/win32/win32callback.inc @@ -1279,7 +1279,7 @@ begin end else if lWinControl is TCustomCombobox then case HIWORD(WParam) of - CBN_DROPDOWN: (lWinControl as TCustomCombobox).IntfGetItems; + CBN_DROPDOWN: TCustomCombobox(lWinControl).IntfGetItems; CBN_EDITCHANGE: LMessage.Msg := LM_CHANGED; { CBN_EDITCHANGE is only sent after the user changes the edit box. CBN_SELCHANGE is sent when the user changes the text by