2 implementations of Interface
System.Windows.Forms (1)
System\Windows\Forms\Application.ComponentThreadContext.cs (1)
19
IMsoComponent.
Interface
,
System.Windows.Forms.Tests (1)
System\Windows\Forms\Application.ComponentManagerTests.cs (1)
342
private class MockWrapper : IMsoComponent.
Interface
, IManagedWrapper<IMsoComponent>
58 references to Interface
System.Windows.Forms (11)
System\Windows\Forms\Application.ComponentThreadContext.cs (11)
356
BOOL IMsoComponent.
Interface
.FDebugMessage(nint hInst, uint msg, WPARAM wparam, LPARAM lparam)
359
BOOL IMsoComponent.
Interface
.FPreTranslateMessage(MSG* msg)
362
void IMsoComponent.
Interface
.OnEnterState(msocstate uStateID, BOOL fEnter)
384
void IMsoComponent.
Interface
.OnAppActivate(BOOL fActive, uint dwOtherThreadID)
388
void IMsoComponent.
Interface
.OnLoseActivation()
392
void IMsoComponent.
Interface
.OnActivationChange(
402
BOOL IMsoComponent.
Interface
.FDoIdle(msoidlef grfidlef)
408
BOOL IMsoComponent.
Interface
.FContinueMessageLoop(
466
BOOL IMsoComponent.
Interface
.FQueryTerminate(BOOL fPromptUser) => true;
468
void IMsoComponent.
Interface
.Terminate()
478
HWND IMsoComponent.
Interface
.HwndGetWindow(msocWindow dwWhich, uint dwReserved) => HWND.Null;
System.Windows.Forms.Primitives (23)
Microsoft\Office\IMsoComponent.cs (23)
11
/// <inheritdoc cref="
Interface
"/>
51
=> UnwrapAndInvoke<IMsoComponent,
Interface
, BOOL>(@this, o => o.FDebugMessage(hInst, msg, wParam, lParam));
55
=> UnwrapAndInvoke<IMsoComponent,
Interface
, BOOL>(@this, o => o.FPreTranslateMessage(msg));
59
=> UnwrapAndInvoke<IMsoComponent,
Interface
>(@this, o => o.OnEnterState(uStateID, fEnter));
63
=> UnwrapAndInvoke<IMsoComponent,
Interface
>(@this, o => o.OnAppActivate(fActive, dwOtherThreadID));
67
=> UnwrapAndInvoke<IMsoComponent,
Interface
>(@this, o => o.OnLoseActivation());
78
=> UnwrapAndInvoke<IMsoComponent,
Interface
>(
84
=> UnwrapAndInvoke<IMsoComponent,
Interface
, BOOL>(@this, o => o.FDoIdle(grfidlef));
88
=> UnwrapAndInvoke<IMsoComponent,
Interface
, BOOL>(@this, o => o.FContinueMessageLoop(uReason, pvLoopData, pMsgPeeked));
92
=> UnwrapAndInvoke<IMsoComponent,
Interface
, BOOL>(@this, o => o.FQueryTerminate(fPromptUser));
96
=> UnwrapAndInvoke<IMsoComponent,
Interface
>(@this, o => o.Terminate());
100
=> UnwrapAndInvoke<IMsoComponent,
Interface
, HWND>(@this, o => o.HwndGetWindow(dwWhich, dwReserved));
145
/// <inheritdoc cref="
Interface
.FDebugMessage(nint, uint, WPARAM, LPARAM)"/>
153
/// <inheritdoc cref="
Interface
.FPreTranslateMessage(MSG*)"/>
160
/// <inheritdoc cref="
Interface
.OnEnterState(msocstate, BOOL)"/>
167
/// <inheritdoc cref="
Interface
.OnAppActivate(BOOL, uint)"/>
174
/// <inheritdoc cref="
Interface
.OnLoseActivation()"/>
181
/// <inheritdoc cref="
Interface
.OnActivationChange(IMsoComponent*, BOOL, MSOCRINFO*, BOOL, nint, uint)"/>
189
/// <inheritdoc cref="
Interface
.FDoIdle(msoidlef)"/>
196
/// <inheritdoc cref="
Interface
.FContinueMessageLoop(msoloop, void*, MSG*)"/>
204
/// <inheritdoc cref="
Interface
.FQueryTerminate(BOOL)"/>
211
/// <inheritdoc cref="
Interface
.Terminate()"/>
218
/// <inheritdoc cref="
Interface
.HwndGetWindow(msocWindow, uint)"/>
System.Windows.Forms.Tests (24)
System\Windows\Forms\Application.ComponentManagerTests.cs (24)
44
Mock<IMsoComponent.
Interface
> mock = new(MockBehavior.Strict);
58
Mock<IMsoComponent.
Interface
> mock = new(MockBehavior.Strict);
71
Mock<IMsoComponent.
Interface
> mock = new(MockBehavior.Strict);
91
Mock<IMsoComponent.
Interface
> mock = new(MockBehavior.Strict);
107
Mock<IMsoComponent.
Interface
> mock = new(MockBehavior.Strict);
121
Mock<IMsoComponent.
Interface
> mock = new(MockBehavior.Strict);
152
Mock<IMsoComponent.
Interface
> mock = new(MockBehavior.Strict);
183
Mock<IMsoComponent.
Interface
> mock = new(MockBehavior.Strict);
214
Mock<IMsoComponent.
Interface
> mock = new(MockBehavior.Strict);
297
Mock<IMsoComponent.
Interface
> mock1 = new(MockBehavior.Strict);
300
Mock<IMsoComponent.
Interface
> mock2 = new(MockBehavior.Strict);
344
private readonly IMsoComponent.
Interface
_mock;
345
public MockWrapper(IMsoComponent.
Interface
mock) => _mock = mock;
347
BOOL IMsoComponent.
Interface
.FDebugMessage(nint hInst, uint msg, WPARAM wParam, LPARAM lParam)
350
BOOL IMsoComponent.
Interface
.FPreTranslateMessage(MSG* msg)
353
void IMsoComponent.
Interface
.OnEnterState(msocstate uStateID, BOOL fEnter)
356
void IMsoComponent.
Interface
.OnAppActivate(BOOL fActive, uint dwOtherThreadID)
359
void IMsoComponent.
Interface
.OnLoseActivation() => _mock.OnLoseActivation();
361
void IMsoComponent.
Interface
.OnActivationChange(
369
BOOL IMsoComponent.
Interface
.FDoIdle(msoidlef grfidlef) => _mock.FDoIdle(grfidlef);
371
BOOL IMsoComponent.
Interface
.FContinueMessageLoop(
376
BOOL IMsoComponent.
Interface
.FQueryTerminate(BOOL fPromptUser) => _mock.FQueryTerminate(fPromptUser);
378
void IMsoComponent.
Interface
.Terminate() => _mock.Terminate();
380
HWND IMsoComponent.
Interface
.HwndGetWindow(msocWindow uWhich, uint dwReserved)