|
-
Mar 3rd, 2020, 04:54 PM
#11
Re: CommonControls (Replacement of the MS common controls)
Update released.
Internal improvement for ShowPrinter/ShowPrinterEx/ShowPageSetup dialog in the CommonDialog class.
The DevMode plays now by the rules. (https://support.microsoft.com/en-us/...rties-function)
Which means the long run:
1. Determine DevMode size (fMode = 0)
2. Prepare DevMode (fMode = DM_OUT_BUFFER)
3. Adjust DevMode for Orientation, PaperSize, ColorMode, and so on... (CommonDialog properties)
4. Finalize/Merge DevMode (fMode = DM_IN_BUFFER OR'ing DM_OUT_BUFFER)
 Originally Posted by Simos
1. Trim out not supported flags. e.e. CdlPDNoNetworkButton and cdlPDPrintSetup not supported in ShowPrinterEx and the error returned is generic
2. Maybe propFlags should be set to zero on exit of all Show functions. (After ShowPrinter I called ShowColor without setting any flags and I got an error)
1. CdlPDNoNetworkButton and cdlPDPrintSetup are supported in ShowPrinter. How should I trim them out for ShowPrinterEx ? An error is already returned by PrintDlgEx in such case with the error code E_FAIL.
2. No, sometimes propFlags are different after dialog return, which can be evaluated. So it makes no sense to cut this feature off. It's an easy thing to set .Flags = 0 yourself in your app. The MS CommonDialog control behaves the same. So no change here. 
 Originally Posted by Simos
1.200 should be sufficient enough to cover long Network Printer names and PortNames like OneNote. Just in case don't remove the last "& vbNullChar"
Done. CCHDEVNAMESEXTRA has been increased now from 100 to 200.
Last edited by Krool; Mar 3rd, 2020 at 05:04 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|