Mercurial > hg > xemacs-beta
comparison src/device-msw.c @ 850:f915ad7befaf
[xemacs-hg @ 2002-05-21 23:47:38 by jhar]
Fix printer page setup to work on Win95
author | jhar |
---|---|
date | Tue, 21 May 2002 23:47:40 +0000 |
parents | 6728e641994e |
children | e7ee5f8bde58 |
comparison
equal
deleted
inserted
replaced
849:503b6a57cf47 | 850:f915ad7befaf |
---|---|
869 device = settings; | 869 device = settings; |
870 | 870 |
871 { | 871 { |
872 Lisp_Devmode *ldm = decode_devmode (device); | 872 Lisp_Devmode *ldm = decode_devmode (device); |
873 PAGESETUPDLGW pd; | 873 PAGESETUPDLGW pd; |
874 DWORD data; | 874 TCHAR measure[2*MAX_XETCHAR_SIZE]; |
875 | 875 int data; |
876 qxeGetLocaleInfo (LOCALE_USER_DEFAULT, | 876 |
877 LOCALE_IMEASURE | LOCALE_RETURN_NUMBER, | 877 qxeGetLocaleInfo (LOCALE_USER_DEFAULT, LOCALE_IMEASURE, |
878 (Extbyte *) &data, sizeof (data)); | 878 measure, sizeof (measure)/MAX_XETCHAR_SIZE); |
879 data = qxestrcmp (measure, XETEXT ("0")); | |
879 | 880 |
880 memset (&pd, 0, sizeof (pd)); | 881 memset (&pd, 0, sizeof (pd)); |
881 pd.lStructSize = sizeof (pd); | 882 pd.lStructSize = sizeof (pd); |
882 pd.hwndOwner = mswindows_get_selected_frame_hwnd (); | 883 pd.hwndOwner = mswindows_get_selected_frame_hwnd (); |
883 pd.Flags = PSD_MARGINS; | 884 pd.Flags = PSD_MARGINS; |