プリンタ設定用ダイアログボックスを表示する
Declare Function AdvancedDocumentProperties Lib "winspool.drv" Alias "AdvancedDocumentPropertiesA" _
(ByVal hWnd As Long, ByVal hPrinter As Long, ByVal pDeviceName As String, _
pDevModeOutput As DEVMODE, pDevModeInput As DEVMODE) As Long
Declare Function AdvancedDocumentProperties Lib "winspool.drv" Alias "AdvancedDocumentPropertiesA" _
(ByVal hWnd As Integer, ByVal hPrinter As Integer, ByVal pDeviceName As String, _
pDevModeOutput As DEVMODE, pDevModeInput As DEVMODE) As Integer
LONG AdvancedDocumentProperties(
HWND hWnd,
HANDLE hPrinter,
LPTSTR pDeviceName,
PDEVMODE pDevModeOutput,
PDEVMODE pDevModeInput
);
引数
hWnd
ダイアログボックスの親ウィンドウのハンドルhPrinter
プリンタオブジェクトのハンドルpDeviceName
プリンタデバイス(Printer.DeviceName)pDevModeOutput
(戻り値)情報を受け取るDEVMODE構造体pDevModeInput
ダイアログを初期化するためのDEVMODE構造体戻り値
正常終了のとき 0以外
中止のとき 0