Thread: generic printing preferences dialog box

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    222

    generic printing preferences dialog box

    I'm having some trouble looking up on how to use a generic printing preferences dialog box supplied by Windows on a custom printer driver. The closest article that I have found so far is http://msdn.microsoft.com/en-us/library/ms800847.aspx, which is still overcomplex to me. I tried "printing preferences dialog" and "generic printing preferences dialog" on Google and MSDN, but no luck either. Is there anything fundamental and maybe even sounds trivial that I'm missing to find out how I can use a generic printing preferences dialog box from Windows on my printer driver? Thanks.

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058
    The Windows DDK has an example entitled genprint which may be of some help to you.

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    222
    In other words, are you suggesting to use genprint instead of winprint print processor and see what happens with the printing settings dialog box?

  4. #4
    Registered User
    Join Date
    Jul 2004
    Posts
    222
    Sorry for not being clear earlier about what I'm trying to do. In other words, I'm trying to incorporate a dialog box that looks like http://support.esri.com/knowledgebas...&ImageType=gif with my custom printer driver. After going through the genprint example, I couldn't find anything that's much of a help to what I'm trying to do here. Should I still go through the Windows DDK examples or is there another example that I have possibly overlooked? Thanks.

  5. #5
    Registered User
    Join Date
    Jul 2004
    Posts
    222
    After going through the DDK examples, I found that CPSUISAM has exactly what I wanted in there.

  6. #6
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    oppps
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  7. #7
    Registered User
    Join Date
    Jul 2004
    Posts
    222
    Searching MSDN (or other sites like this) is almost as important skill as the logic or syntax in programming.

    You are not expected to know everything, but you are expected to be able to learn / find it.

    PrintDlg is one of the Common Dialogs.

    PrintDlg example (http://msdn.microsoft.com/en-us/libr...29(VS.85).aspx)
    I have searched on MSDN and its examples before I have asked my question. The whole reason of my question is b/c I wasn't so clear about what's being described in the documentation in the first place. I looked at PrintDlg (burned some time on it), but it pops up the printing dialog box in general, which isn't really what I'm looking for. I'm looking for how to get the treeview after I pressed "Properties" on the specific printer in the print dialog box.

  8. #8
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    I'm looking for how to get the treeview after I pressed "Properties" on the specific printer in the print dialog box.
    Sorry don't understand this, my printers do not have a treeview.

    Is the info not returned in the DEVMODE struct?
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  9. #9
    Registered User
    Join Date
    Jul 2004
    Posts
    222
    What I meant was I'm trying to make the printer settings dialog box with drop down settings in treeview mode. Anyhow, I found it in the CPSUI example of the DDK. Right now, I'm figuring out what's going on in terms of that example's integration with my current printer driver project.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 02-13-2008, 02:59 PM
  2. Parent of a BrowseForFolder dialog box
    By @nthony in forum Windows Programming
    Replies: 4
    Last Post: 01-08-2007, 02:54 PM
  3. Display Dialog Box Then Execute
    By stickman in forum C++ Programming
    Replies: 17
    Last Post: 05-10-2006, 11:02 AM
  4. New Theme
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 04-01-2004, 08:00 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM