Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize


Retrieves the current user-control flag.

BOOL AFXAPI AfxOleGetUserCtrl( );

Nonzero if the user is in control of the application; otherwise 0.

The user is in control of the application when the user has explicitly opened or created a new document. The user is also in control if the application was not launched by the OLE system DLLs — in other words, if the user launched the application with the system shell.

Header: <afxdisp.h>

Community Additions

© 2015 Microsoft