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