58 references to msocstate
System.Windows.Forms (9)
System\Windows\Forms\Application.ComponentManager.cs (5)
35private msocstate _currentState; 153msocstate uStateID, 174msocstate uStateID, 194BOOL IMsoComponentManager.Interface.FInState(msocstate uStateID, void* pvoid) 210msocstate currentLoopState = _currentState;
System\Windows\Forms\Application.ComponentThreadContext.cs (4)
162ComponentManager?.OnComponentEnterState(_componentID, msocstate.Modal, msoccontext.All, 0, null, 0); 198cm?.FOnComponentExitState(_componentID, msocstate.Modal, msoccontext.All, 0, null); 362void IMsoComponent.Interface.OnEnterState(msocstate uStateID, BOOL fEnter) 370if (uStateID == msocstate.Modal)
System.Windows.Forms.Primitives (29)
Microsoft\Office\IMsoComponent.cs (7)
37internal delegate* unmanaged[Stdcall]<IMsoComponent*, msocstate, BOOL, void> OnEnterState_6; 58private static void OnEnterState(IMsoComponent* @this, msocstate uStateID, BOOL fEnter) 160/// <inheritdoc cref="Interface.OnEnterState(msocstate, BOOL)"/> 161public void OnEnterState(msocstate uStateID, BOOL fEnter) 164((delegate* unmanaged[Stdcall]<IMsoComponent*, msocstate, BOOL, void>)_lpVtbl[5])(pThis, uStateID, fEnter); 302msocstate uStateID, 355/// <see cref="OnEnterState"/> with <see cref="msocstate.Modal" /> notification.
Microsoft\Office\IMsoComponentManager.cs (16)
113/// <inheritdoc cref="Interface.OnComponentEnterState(nuint, msocstate, msoccontext, uint, IMsoComponentManager**, uint)"/> 116msocstate uStateID, 123((delegate* unmanaged[Stdcall]<IMsoComponentManager*, nuint, msocstate, msoccontext, uint, IMsoComponentManager**, uint, void>)_lpVtbl[10]) 127/// <inheritdoc cref="Interface.FOnComponentExitState(nuint, msocstate, msoccontext, uint, IMsoComponentManager**)"/> 130msocstate uStateID, 136return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, nuint, msocstate, msoccontext, uint, IMsoComponentManager**, BOOL>)_lpVtbl[11]) 140/// <inheritdoc cref="Interface.FInState(msocstate, void*)"/> 141public BOOL FInState(msocstate uStateID, void* pvoid) 144return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, msocstate, void*, BOOL>)_lpVtbl[12]) 197/// This tree is used to maintain multiple contexts with regard to <see cref="msocstate"/> states. These 351/// <see cref="IMsoComponent.OnEnterState(msocstate, BOOL)"/> (see "Comments on State Contexts" in 368/// of <see cref="msocstate.Modal"/> when entering modal state. Such objects should call 386msocstate uStateID, 406/// via <see cref="IMsoComponent.OnEnterState(msocstate, BOOL)"/> (see "Comments on State Contexts", above). 428msocstate uStateID, 441msocstate uStateID,
Microsoft\Office\IMsoComponentManager.NativeAdapter.cs (3)
66msocstate uStateID, 78msocstate uStateID, 87BOOL Interface.FInState(msocstate uStateID, void* pvoid)
Microsoft\Office\msocadvf.cs (1)
7/// MSO Component registration advise flags <see cref="msocstate" />
Microsoft\Office\msoccontext.cs (1)
9/// <see cref="msocstate"/> states. These contexts are referred to as 'state contexts'
Microsoft\Office\msocstate.cs (1)
7/// State IDs passed to <see cref="IMsoComponent.OnEnterState(msocstate, BOOL)" /> and
System.Windows.Forms.Tests (20)
System\Windows\Forms\Application.ComponentManagerTests.cs (20)
186mock.Setup(m => m.OnEnterState(msocstate.Modal, true)); 193manager.OnComponentEnterState(default, msocstate.Modal, msoccontext.Others, 0, null, 0); 194mock.Verify(m => m.OnEnterState(msocstate.Modal, true), Times.Never); 196manager.OnComponentEnterState(default, msocstate.Modal, msoccontext.All, 0, null, 0); 197mock.Verify(m => m.OnEnterState(msocstate.Modal, true), Times.Once); 199manager.OnComponentEnterState(default, msocstate.Modal, msoccontext.Mine, 0, null, 0); 200mock.Verify(m => m.OnEnterState(msocstate.Modal, true), Times.Exactly(2)); 217mock.Setup(m => m.OnEnterState(msocstate.Modal, false)); 224manager.FOnComponentExitState(default, msocstate.Modal, msoccontext.Others, 0, null); 225mock.Verify(m => m.OnEnterState(msocstate.Modal, false), Times.Never); 227manager.FOnComponentExitState(default, msocstate.Modal, msoccontext.All, 0, null); 228mock.Verify(m => m.OnEnterState(msocstate.Modal, false), Times.Once); 230manager.FOnComponentExitState(default, msocstate.Modal, msoccontext.Mine, 0, null); 231mock.Verify(m => m.OnEnterState(msocstate.Modal, false), Times.Exactly(2)); 239manager.OnComponentEnterState(default, msocstate.Modal, default, 0, null, 0); 241Assert.True(manager.FInState(msocstate.Modal, null)); 242manager.OnComponentEnterState(default, msocstate.Recording, default, 0, null, 0); 243Assert.True(manager.FInState(msocstate.Recording, null)); 244manager.FOnComponentExitState(default, msocstate.RedrawOff, default, 0, null); 353void IMsoComponent.Interface.OnEnterState(msocstate uStateID, BOOL fEnter)