-
November 13th, 2009, 02:55 AM
#1
Disable button for print setup of the CPrintDialog
Is there a way to disable the button that opens the printer setup? I just want to use default print settings so the printer setup is not necessary.
-
November 13th, 2009, 08:12 AM
#2
Re: Disable button for print setup of the CPrintDialog
I haven't done it, but I would think deriving a class from CPrintDialog and then disabling the setup button inside OnInitDialog should work.
-
November 13th, 2009, 09:03 AM
#3
Re: Disable button for print setup of the CPrintDialog
Thanks...
I created a class derived from CPrintDialog but do you know how to access the setup button? Is there an Control-ID?
-
November 14th, 2009, 09:25 AM
#4
Re: Disable button for print setup of the CPrintDialog
-
November 16th, 2009, 01:09 AM
#5
Re: Disable button for print setup of the CPrintDialog
It is not 1024. I used this ID with GetDlgItem(...) but the pointer returned is 0.
-
November 16th, 2009, 08:13 AM
#6
Re: Disable button for print setup of the CPrintDialog
Originally Posted by MrNyquist
It is not 1024. I used this ID with GetDlgItem(...) but the pointer returned is 0.
Then open the common DLL in your resource editor, find the dialog you're looking using and check the ID of the button you want.
-
November 18th, 2009, 03:21 AM
#7
Re: Disable button for print setup of the CPrintDialog
Thanks...I did it in that way now and all works! By the way the control id is 1025.
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
|