I was working on a bigger program (64bit) and could not get the printdlg box to appear. To simplify things I copied the "examples win64 template" and modified it so a left click on the mouse would call the dialog box.
I added 3 items to the data section
hinstance dq ?
hwnd_main dq ?
In addition comdlg32 was added to the library and includes
Following the windows 32bit example the data structure was loaded with data making sure the larger operands were used where required.
Here is the problem:
The first value in the data structure is the size of the structure. If I use sizeof.PRINTDLG to load pd.lStructureSize then this value is loaded with 74h and the printer dialog box fails to appear.
However, if pd.lStructureSize is set to 78h the dialog box appears.
What am I doing wrong? How should one fix this problem?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum