35 references to GetOcState
System.Windows.Forms (35)
winforms\Managed\System\WinForms\AxHost.cs (35)
566int ocState = GetOcState(); 613else if (!f.Visible && Visible && IsHandleCreated && GetOcState() >= OC_INPLACE) { 616else if (f.Visible && !GetState(STATE_VISIBLE) && IsHandleCreated && GetOcState() >= OC_INPLACE) { 1312if (value != null && !newuMode && olduMode != newuMode && GetOcState() > OC_LOADED) { 1364if (GetOcState() >= OC_UIACTIVE && !iss.GetComponentSelected(this)) { 1547if (GetOcState() < OC_INPLACE) return; 1587if (GetOcState() > OC_RUNNING) { 1672while (state < GetOcState()) { 1673switch (GetOcState()) { 1681Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose && GetOcState() == OC_INPLACE, "failed transition"); 1692Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose && GetOcState() == OC_RUNNING, "failed transition"); 1698Debug.Assert(GetOcState() == OC_LOADED," failed transition"); 1703Debug.Assert(GetOcState() == OC_PASSIVE," failed transition"); 1708SetOcState(GetOcState() - 1); 1727while (state > GetOcState()) { 1728Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose, "Transitioning up from: " + GetOcState().ToString(CultureInfo.InvariantCulture) + " to: " + state.ToString(CultureInfo.InvariantCulture)); 1729switch (GetOcState()) { 1733Debug.Assert(GetOcState() == OC_LOADED, " failed transition"); 1738Debug.Assert(GetOcState() == OC_RUNNING, " failed transition"); 1784if (GetOcState() < OC_INPLACE) { 1791Debug.Assert(GetOcState() == OC_UIACTIVE, " failed transition"); 1796SetOcState(GetOcState() + 1); 1845Debug.Assert(GetOcState() >= OC_INPLACE, "we have to be in place in order to ui activate..."); 1958Debug.Assert(GetOcState() >= OC_INPLACE, "have to be in place in order to hide."); 1961if (GetOcState() < OC_INPLACE) { 2200if (this.ocxState != null && GetOcState() >= OC_RUNNING) { 2210if (GetOcState() < OC_RUNNING) { 2347if (GetOcState() < OC_RUNNING) return false; 3275if (GetOcState() < OC_RUNNING) return false; 3497if (GetOcState() >= OC_INPLACE) { 4188if (host.GetOcState() < OC_INPLACE) 4296if (host.GetOcState() > OC_INPLACE) { 4304if (host.GetOcState() == OC_UIACTIVE) { 4539if (GetOcState() == OC_RUNNING) { 5907if (control.GetOcState() >= OC_RUNNING && control.IsUserMode() && control.AwaitingDefreezing()) {