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)
378
int ocState =
GetOcState
();
426
else if (!containingControl.Visible && Visible && IsHandleCreated &&
GetOcState
() >= OC_INPLACE)
430
else if (containingControl.Visible && !GetState(States.Visible) && IsHandleCreated &&
GetOcState
() >= OC_INPLACE)
919
if (value is not null && !newuMode && olduMode != newuMode &&
GetOcState
() > OC_LOADED)
975
if (
GetOcState
() >= OC_UIACTIVE && !selectionService.GetComponentSelected(this))
1158
if (
GetOcState
() < OC_INPLACE)
1211
if (
GetOcState
() > OC_RUNNING)
1298
while (state <
GetOcState
())
1300
switch (
GetOcState
())
1326
Debug.Assert(
GetOcState
() == OC_LOADED, " failed transition");
1331
Debug.Assert(
GetOcState
() == OC_PASSIVE, " failed transition");
1336
SetOcState(
GetOcState
() - 1);
1358
while (state >
GetOcState
())
1360
switch (
GetOcState
())
1365
Debug.Assert(
GetOcState
() == OC_LOADED, " failed transition");
1370
Debug.Assert(
GetOcState
() == OC_RUNNING, " failed transition");
1422
if (
GetOcState
() < OC_INPLACE)
1431
Debug.Assert(
GetOcState
() == OC_UIACTIVE, " failed transition");
1436
SetOcState(
GetOcState
() + 1);
1622
Debug.Assert(
GetOcState
() >= OC_INPLACE, "have to be in place in order to hide.");
1625
if (
GetOcState
() < OC_INPLACE)
1854
if (
GetOcState
() >= OC_RUNNING)
1867
if (
GetOcState
() < OC_RUNNING)
2010
if (
GetOcState
() < OC_RUNNING)
2919
if (
GetOcState
() < OC_RUNNING)
2930
if (
GetOcState
() < OC_RUNNING)
3135
if (
GetOcState
() >= OC_INPLACE)
3415
if (
GetOcState
() == OC_RUNNING)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (3)
298
if (_host.
GetOcState
() < OC_INPLACE)
411
if (_host.
GetOcState
() > OC_INPLACE)
421
if (_host.
GetOcState
() == OC_UIACTIVE)