Programming Guide



sm_mw_PrintScreen

Prints a Panther screen

#include <smmwuser.h>
void sm_mw_PrintScreen(int region, int interactive, int reserved1, int reserved2);

region
The region to be printed. The following values are from smumisc.h:

Region Value

PS_CUR_SCREEN

0

Print the top screen only.

PS_MDI_FRAME

1

Print the MDI frame and contents.

PS_CUR_TITLE

2

Print the top screen with title bar.

PS_MDI_TITLE

3

Print the MDI frame and contents with title bar.

interactive
Specifies whether the default printer will be used or whether a dialog box for user interaction will be posted:

Interaction Value

PS_USE_DEFAULT

0

Use the default printer.

PS_USE_DIALOG

1

Display the printer selection dialog box.

reserved1
Reserved for future use; set to 0.

reserved2
Reserved for future use; set to 0.

Environment

Windows only.

Description

sm_mw_PrintScreen is a control function for printing Panther screens. It sends either the current Panther screen or all the screens in the MDI frame to the printer.