32 references to GetOcState
System.Windows.Forms (32)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
545
if (hostControl.
GetOcState
() >= OC_RUNNING && hostControl.IsUserMode() && hostControl.AwaitingDefreezing())
System\Windows\Forms\ActiveX\AxHost.cs (28)
379
int ocState =
GetOcState
();
427
else if (!containingControl.Visible && Visible && IsHandleCreated &&
GetOcState
() >= OC_INPLACE)
431
else if (containingControl.Visible && !GetState(States.Visible) && IsHandleCreated &&
GetOcState
() >= OC_INPLACE)
920
if (value is not null && !newuMode && olduMode != newuMode &&
GetOcState
() > OC_LOADED)
976
if (
GetOcState
() >= OC_UIACTIVE && !selectionService.GetComponentSelected(this))
1159
if (
GetOcState
() < OC_INPLACE)
1212
if (
GetOcState
() > OC_RUNNING)
1299
while (state <
GetOcState
())
1301
switch (
GetOcState
())
1327
Debug.Assert(
GetOcState
() == OC_LOADED, " failed transition");
1332
Debug.Assert(
GetOcState
() == OC_PASSIVE, " failed transition");
1337
SetOcState(
GetOcState
() - 1);
1359
while (state >
GetOcState
())
1361
switch (
GetOcState
())
1366
Debug.Assert(
GetOcState
() == OC_LOADED, " failed transition");
1371
Debug.Assert(
GetOcState
() == OC_RUNNING, " failed transition");
1423
if (
GetOcState
() < OC_INPLACE)
1432
Debug.Assert(
GetOcState
() == OC_UIACTIVE, " failed transition");
1437
SetOcState(
GetOcState
() + 1);
1623
Debug.Assert(
GetOcState
() >= OC_INPLACE, "have to be in place in order to hide.");
1626
if (
GetOcState
() < OC_INPLACE)
1855
if (
GetOcState
() >= OC_RUNNING)
1868
if (
GetOcState
() < OC_RUNNING)
2011
if (
GetOcState
() < OC_RUNNING)
2920
if (
GetOcState
() < OC_RUNNING)
2931
if (
GetOcState
() < OC_RUNNING)
3136
if (
GetOcState
() >= OC_INPLACE)
3417
if (
GetOcState
() == OC_RUNNING)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (3)
297
if (_host.
GetOcState
() < OC_INPLACE)
410
if (_host.
GetOcState
() > OC_INPLACE)
420
if (_host.
GetOcState
() == OC_UIACTIVE)