home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5243 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.5 KB  |  37 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!cs.utexas.edu!torn!watserv2.uwaterloo.ca!csg.uwaterloo.ca!wcruppel
  3. From: wcruppel@csg.uwaterloo.ca (Bill Ruppel)
  4. Subject: HELP! Custom PRINTDLG Problem!
  5. Message-ID: <C181It.2KF@watserv2.uwaterloo.ca>
  6. Sender: news@watserv2.uwaterloo.ca
  7. Organization: Computer Systems Group, University of Waterloo
  8. Date: Thu, 21 Jan 1993 20:42:28 GMT
  9. Lines: 26
  10.  
  11. Hi all.
  12.  
  13. I've written a custom dialog for use with the Common Dialog Routine 'PrintDlg'
  14. in Windows 3.1. The custom dialog just adds one extra button, below the
  15. "Setup..." button in the PRINT SETUP dialog. Now, the problem is, I want to
  16. be able to determine which printer has been selected in the dialog when the
  17. user presses this extra button. I've tried looking at the PRINTDLG structure
  18. at the time the user pushes the button, but the DEVNAMES structure is the
  19. same as it was when I called the 'PrintDlg' routine. (In other words,
  20. Windows does not seem to update the PRINTDLG structure until you press the
  21. 'OK' button)
  22.  
  23. I know that I can kludge my way around this problem by looking directly at
  24. the combo box in the PRINT SETUP dialog, and parsing the printer name out
  25. of the text, but this would be far from elegant.
  26.  
  27. Does anyone know a solution to this? Does Windows perhaps send a message
  28. to my Setup Hook routine informing me that the user has changed printers?
  29.  
  30. Any help would be appreciated, and please send replies via E-Mail, as I do
  31. not regularly read this newsgroup...
  32.  
  33. Thanks
  34.  
  35. - Bill
  36.  
  37.