Hi, I don't know anything about Windows programming but I need to show a print dialog and get the users selections. I'm using the PrintDlg function that takes a PRINTDLG struct as a parameter. When the PrintDlg function returns it will populate the PRINTDLG struct according to the user's choices. A field in the PRINTDLG struct is:
HANDLE hDevMode
It is defined as: Identifies a movable global memory object that contains a DEVMODE structure.
What I want to do is get the values from that field and plug them into a local DEVMODE variable.
Ex.
myDevMode.dmCopies = PRINTDLG.hDevMode.dmCopies;
Obviously the syntax isn't correct - that's what I need help with. Thanks.
HANDLE hDevMode
It is defined as: Identifies a movable global memory object that contains a DEVMODE structure.
What I want to do is get the values from that field and plug them into a local DEVMODE variable.
Ex.
myDevMode.dmCopies = PRINTDLG.hDevMode.dmCopies;
Obviously the syntax isn't correct - that's what I need help with. Thanks.