|
|
|
GetOrientation |
The GetOrientation function returns the current printer's page orientation.
C
int SftPrintPreview_GetOrientation(HWND hwndCtl);
C++
int CSftPrintPreview::GetOrientation() const;
Parameters
hwndCtl
The window handle of the Print Preview control.
Returns
The return value is DMORIENT_PORTRAIT (1) for portrait mode or DMORIENT_LANDSCAPE (2) for landscape mode.
Comments
The GetOrientation function returns the current printer's page orientation.
See Also C/C++ API | C++ Classes | Notifications