yzhshi:请看以下代码!
procedure TForm1.ComboBoxEventChange(Sender: TObject;
var ctrl: _CommandBarComboBox);
var cV: olevariant;
begin
PostMessage(Form1.Handle,WB_COMBOBOXCHANGE,0,LongInt(ctrl));
end;
procedure TForm1.WBComboBoxChange(var Msg: TMessage);
var Combo1: IUNKnown;
begin
combo1:=IUNKnown(Msg.LParam)
此处转换出现错误!
end;
是什么问题?