473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Extending Print Dialog

Hello,

Is it possible to modify the print dialog box that appears when a user
clicks File->Print?

Is it possible to make this modification so that all Windows programs
use the modified print dialog box?

What about just changing the print dialog box used by Internet
Explorer?

Is there an easy way to then easily port this to a Mac OS?

I have done some reading on extending the common dialog controls from
within a new program but I have not found anything about replacing a
common dialog box that all progams use. If this is doable then do you
have any thoughts on how hard this will be? Could this be something
that can be muddled through by someone with only a small amount of
Windows programming experience.

Thanks,
John
Nov 16 '05 #1
1 2509


John wrote:
Hello,

Is it possible to modify the print dialog box that appears when a user
clicks File->Print?

Is it possible to make this modification so that all Windows programs
use the modified print dialog box?

What about just changing the print dialog box used by Internet
Explorer?

Is there an easy way to then easily port this to a Mac OS?

I have done some reading on extending the common dialog controls from
within a new program but I have not found anything about replacing a
common dialog box that all progams use. If this is doable then do you
have any thoughts on how hard this will be? Could this be something
that can be muddled through by someone with only a small amount of
Windows programming experience.


Probably not. getting a single program to use a modified version of a
common dialog is fairly simple; just inject a DLL into its address space
that pirates the import table and points to a version that extends the
dialog. It gets a little harder when you figure you have to go through
all DLL's the program has loaded (or will in the future load) and patch
their import tables as well. And then you have to retroactively go back
and do this for all programs that were already running when you kick off
the process... and you have to have some method of monitoring program
starts to get the process to happen as new programs start. On the NT
platforms we are talking drivers and /or services to fulfill all these
needs, which makes it non-trivial.

I'm open to suggestions if there is an easier way to do this...

David
Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: William Gill | last post by:
I have created a widget that extends Frame() and contains labels, checkboxes, and entrys. I am trying to use tkSimpleDialog.Dialog to create a modal display of this widget, but am running into...
0
by: KohlerTommy | last post by:
In my application I need to give the user the ability to print duplex if the selected printer supports duplex printing. Many of the printer options do not make much sense in my application, and...
2
by: Stuart | last post by:
I'm looking to implement a Standard File Open Dialog, and put a little File Preview segment onto the dialog. Unfortunately it's not as straightforward as just inheriting a regular file open dialog...
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
3
by: John Peterson | last post by:
Hello all! I'm at my wits end trying to search for what I assumed to be a relatively straightforward task. I have a Web application written in C#, and I have a button on the form that I want to...
5
by: vbgunz | last post by:
Hello everyone. I own two books. Learning Python and Python in a nutshell. When cross referencing the two books to try and clarify the ideas behind extending methods and delegates, this is where...
2
by: Brad Pears | last post by:
I have some sample code that uses the print dialog, print preview and a print direct options. If I select print preview and then click the printer icon from that, the document prints. If I...
2
by: WP | last post by:
Hello, I making and Windows Forms program and I have a dialog with two buttons. I have set the DialogResult property for these buttons to DialogResult.OK and DialogResult.No, respectively (however,...
0
by: Tim Spens | last post by:
--- On Fri, 6/27/08, Tim Spens <t_spens@yahoo.comwrote: I think I know where the problem is but I'm unsure how to fix it. When I call Register_Handler(...) from python via...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.