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