CommonMessagePump.IOleComponent.OnAppActivate(Int32, UInt32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当主机应用程序获得或失去激活时,通知组件。
virtual void Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate(int fActive, System::UInt32 dwOtherThreadID) = Microsoft::VisualStudio::OLE::Interop::IOleComponent::OnAppActivate;
virtual void Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate(int fActive, unsigned int dwOtherThreadID) = Microsoft::VisualStudio::OLE::Interop::IOleComponent::OnAppActivate;
void Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate(int fActive, unsigned int dwOtherThreadID);
void IOleComponent.OnAppActivate (int fActive, uint dwOtherThreadID);
abstract member Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate : int * uint32 -> unit
override this.Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate : int * uint32 -> unit
Sub OnAppActivate (fActive As Integer, dwOtherThreadID As UInteger) Implements IOleComponent.OnAppActivate
参数
- fActive
- Int32
如果正在激活应用程序,则为 True; 否则为 false。
- dwOtherThreadID
- UInt32
拥有窗口的线程的 ID。
实现
Microsoft.Internal.VisualStudio.Shell.Interop.IOleComponent2Private.OnAppActivate(System.Int32,System.UInt32)
注解
有关更多信息,请参见OnAppActivate。