47 references to MSOCM
System.Windows.Forms (47)
winforms\Managed\System\WinForms\Application.cs (40)
1023
ThreadContext.FromCurrent().RunMessageLoop(NativeMethods.
MSOCM
.msoloopDoEvents, null);
1029
ThreadContext.FromCurrent().RunMessageLoop(NativeMethods.
MSOCM
.msoloopDoEventsModal, null);
1486
ThreadContext.FromCurrent().RunMessageLoop(NativeMethods.
MSOCM
.msoloopMain, new ApplicationContext());
1495
ThreadContext.FromCurrent().RunMessageLoop(NativeMethods.
MSOCM
.msoloopMain, new ApplicationContext(mainForm));
1506
ThreadContext.FromCurrent().RunMessageLoop(NativeMethods.
MSOCM
.msoloopMain, context);
1517
ThreadContext.FromCurrent().RunMessageLoop(NativeMethods.
MSOCM
.msoloopModalForm, new ModalApplicationContext(form));
1932
if (uContext == NativeMethods.
MSOCM
.msoccontextAll || uContext == NativeMethods.
MSOCM
.msoccontextMine) {
1982
if (uContext == NativeMethods.
MSOCM
.msoccontextAll || uContext == NativeMethods.
MSOCM
.msoccontextMine) {
2124
if (reason != NativeMethods.
MSOCM
.msoloopMain) {
2154
if (reason == NativeMethods.
MSOCM
.msoloopDoEvents ||
2155
reason == NativeMethods.
MSOCM
.msoloopDoEventsModal) {
2274
if (dwgac == NativeMethods.
MSOCM
.msogacActive) {
2277
else if (dwgac == NativeMethods.
MSOCM
.msogacTracking) {
2280
else if (dwgac == NativeMethods.
MSOCM
.msogacTrackingOrActive) {
2547
info.grfcrf = NativeMethods.
MSOCM
.msocrfPreTranslateAll | NativeMethods.
MSOCM
.msocrfNeedIdleTime;
2548
info.grfcadvf = NativeMethods.
MSOCM
.msocadvfModal;
2730
cm.OnComponentEnterState((IntPtr)componentID, NativeMethods.
MSOCM
.msocstateModal, NativeMethods.
MSOCM
.msoccontextAll, 0, 0, 0);
2942
cm.FOnComponentExitState((IntPtr)componentID, NativeMethods.
MSOCM
.msocstateModal, NativeMethods.
MSOCM
.msoccontextAll, 0, 0);
3076
return totalMessageLoopCount > 0 && baseLoopReason == NativeMethods.
MSOCM
.msoloopMain;
3141
if (ComponentManager.FGetActiveComponent(NativeMethods.
MSOCM
.msogacActive, activeComponents, null, 0) &&
3360
if (reason == NativeMethods.
MSOCM
.msoloopModalForm && !SystemInformation.UserInteractive) {
3368
if (reason == NativeMethods.
MSOCM
.msoloopMain) {
3378
if (reason == NativeMethods.
MSOCM
.msoloopMain) {
3407
if (reason == NativeMethods.
MSOCM
.msoloopDoEventsModal) {
3411
if (reason == NativeMethods.
MSOCM
.msoloopModalForm || reason == NativeMethods.
MSOCM
.msoloopModalAlert) {
3470
else if (reason == NativeMethods.
MSOCM
.msoloopDoEvents ||
3471
reason == NativeMethods.
MSOCM
.msoloopDoEventsModal) {
3503
if (reason == NativeMethods.
MSOCM
.msoloopMain) {
3834
if (uStateID == NativeMethods.
MSOCM
.msocstateModal) {
3963
case NativeMethods.
MSOCM
.msoloopFocusWait:
3974
case NativeMethods.
MSOCM
.msoloopModalAlert:
3975
case NativeMethods.
MSOCM
.msoloopModalForm:
3986
case NativeMethods.
MSOCM
.msoloopDoEvents:
3987
case NativeMethods.
MSOCM
.msoloopDoEventsModal:
winforms\Managed\System\WinForms\ComponentManagerBroker.cs (7)
554
if (uContext == NativeMethods.
MSOCM
.msoccontextAll || uContext == NativeMethods.
MSOCM
.msoccontextMine) {
567
if (uContext == NativeMethods.
MSOCM
.msoccontextAll || uContext == NativeMethods.
MSOCM
.msoccontextMine) {
611
if (dwgac == NativeMethods.
MSOCM
.msogacActive) {
614
else if (dwgac == NativeMethods.
MSOCM
.msogacTracking) {
617
else if (dwgac == NativeMethods.
MSOCM
.msogacTrackingOrActive) {