CDC::GetLayout
Visual Studio 2012
Call this member function to determine the layout of the text and graphics for a device context, such as a printer or a metafile.
DWORD GetLayout( ) const;
If successful, the layout flags for the current device context. Otherwise, GDI_ERROR. For extended error information, call GetLastError. For a list of the layout flags, see CDC::SetLayout.