Hi,
In our applications, we have our own printer selection dialog box, due to the fact that we have to add a couple of custom destinations in our applications.
The file->print, preferences button in ie and the properties button in acrobat reader both bring up a full properties box, while the firefox one is limited
How would I call up this printer properties button for a specific printer name, and specify how much data to ask for?
Printer properties config
- AlexSchaft
- Posts: 172
- Joined: Fri Oct 07, 2005 1:29 pm
- Location: Edenvale, Gauteng, South Africa
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
The PrinterProperties function displays a printer-properties dialog box for the specified printer.
BOOL PrinterProperties(
HWND hWnd, // handle of parent window
HANDLE hPrinter // handle of printer object
);
Parameters
hWnd
Identifies the parent window of the dialog box.
hPrinter
Identifies a printer object.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
See Also
OpenPrinter
BOOL PrinterProperties(
HWND hWnd, // handle of parent window
HANDLE hPrinter // handle of printer object
);
Parameters
hWnd
Identifies the parent window of the dialog box.
hPrinter
Identifies a printer object.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
See Also
OpenPrinter
- AlexSchaft
- Posts: 172
- Joined: Fri Oct 07, 2005 1:29 pm
- Location: Edenvale, Gauteng, South Africa