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
();
424
else if (!containingControl.Visible && Visible && IsHandleCreated &&
GetOcState
() >= OC_INPLACE)
428
else if (containingControl.Visible && !GetState(States.Visible) && IsHandleCreated &&
GetOcState
() >= OC_INPLACE)
917
if (value is not null && !newuMode && olduMode != newuMode &&
GetOcState
() > OC_LOADED)
973
if (
GetOcState
() >= OC_UIACTIVE && !selectionService.GetComponentSelected(this))
1156
if (
GetOcState
() < OC_INPLACE)
1209
if (
GetOcState
() > OC_RUNNING)
1296
while (state <
GetOcState
())
1298
switch (
GetOcState
())
1324
Debug.Assert(
GetOcState
() == OC_LOADED, " failed transition");
1329
Debug.Assert(
GetOcState
() == OC_PASSIVE, " failed transition");
1334
SetOcState(
GetOcState
() - 1);
1356
while (state >
GetOcState
())
1358
switch (
GetOcState
())
1363
Debug.Assert(
GetOcState
() == OC_LOADED, " failed transition");
1368
Debug.Assert(
GetOcState
() == OC_RUNNING, " failed transition");
1420
if (
GetOcState
() < OC_INPLACE)
1429
Debug.Assert(
GetOcState
() == OC_UIACTIVE, " failed transition");
1434
SetOcState(
GetOcState
() + 1);
1620
Debug.Assert(
GetOcState
() >= OC_INPLACE, "have to be in place in order to hide.");
1623
if (
GetOcState
() < OC_INPLACE)
1852
if (
GetOcState
() >= OC_RUNNING)
1865
if (
GetOcState
() < OC_RUNNING)
2008
if (
GetOcState
() < OC_RUNNING)
2917
if (
GetOcState
() < OC_RUNNING)
2928
if (
GetOcState
() < OC_RUNNING)
3133
if (
GetOcState
() >= OC_INPLACE)
3414
if (
GetOcState
() == OC_RUNNING)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (3)
300
if (_host.
GetOcState
() < OC_INPLACE)
413
if (_host.
GetOcState
() > OC_INPLACE)
423
if (_host.
GetOcState
() == OC_UIACTIVE)