Commit Graph

68 Commits

Author SHA1 Message Date
Rein Klazes 62fb1919f8 - Add a bitmap resource with the font icons: TrueType, printer,
OpenType and Type 1. Modify the code so that they will be used if or
  when the needed bits are passed to the FontEnumProc.
- Use EnumFontFamiliesEx instead of EnumFontFamilies.
- Fix the fixme in the WM_MEASUREITEM message handler.
2003-12-30 22:08:17 +00:00
Marcus Meissner 04f96a864e DWL_USER might be used otherwise, so use an internal window property
for data storage.
2003-12-30 19:15:43 +00:00
Steven Edwards c49064a838 - The last of the major Win16/32 split for commdlg (for real this
time).
- Moved most of the 16bit stuff to cdlg16.h.
- A few small cleanups.
2003-12-12 06:09:13 +00:00
Rein Klazes 965b285238 Do conversions between the font size specified in points (or
decipoints) and height specified in logical units.
2003-12-11 05:17:05 +00:00
Rein Klazes c546462f65 Enable the display of a true type bitmap for true type fonts. 2003-12-11 04:26:56 +00:00
Dmitry Timoshkov 5882718eef Fix a font object leak in the font dialog's WM_PAINT handler. 2003-12-08 21:52:43 +00:00
Rein Klazes c69a522e3e Correct the test for the ODS_SELECTED bit in the WM_DRAWITEM message
handler.
2003-12-04 21:53:14 +00:00
Rein Klazes 42fc4bec2d Use the lfHeight field to initialize the font dialog's point size. Do
not forget to return some values in the choosefont structure in the 16
bit version of the ChooseFont function.
2003-12-04 01:43:01 +00:00
Rein Klazes 6f1a7da4b4 Implement combobox to select the font's character set.
Bug fixes: handle WM_MEASUREITEM message; handle the WM_PAINT message
in the 16bit font dialog, so it displays the sample string too.
2003-12-03 22:25:10 +00:00
Rein Klazes 2c142af1aa Add sample texts for all missing character sets (or explain why some
don't have it). Put the complete text in one place and remove the glue
code. Change the 2D array that holds the texts by a array of pointer
to 1D character arrays to save space.
2003-12-01 22:40:56 +00:00
Rein Klazes e94dad187a Remember (do not reset) font size and style parameters in the initial
dialog and when another font is selected.
2003-11-28 23:40:12 +00:00
Rein Klazes c9197aad4f Fix a bug in the test for italic font style property. 2003-11-28 23:38:51 +00:00
Rein Klazes e998d0e3cb Tidy up indentation. 2003-11-28 23:35:34 +00:00
Rein Klazes 801cb5a6f1 Fix "sample" box drawing by adding some needed coordinate and size
transformations.
2003-11-26 03:38:39 +00:00
Alexandre Julliard cf52644a1c Removed the A/W constants for builtin cursors, icons and resource
types since they don't exist on Windows, and added typecasts
everywhere instead.
2003-09-10 03:56:47 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Alexandre Julliard 864ca06832 winnls.h must not include winbase.h. 2003-08-20 18:22:31 +00:00
Francois Gouget 17afa80afd Some spelling fixes. 2003-07-30 03:42:26 +00:00
Steven Edwards 6b9c474d30 Separate Win16 and Win32 font dialog support. 2003-06-07 00:33:32 +00:00
Alexandre Julliard e3d681ba0a Get rid of the COMMDLG_hInstance variables. 2003-04-29 22:52:02 +00:00
Shachar Shemesh ee63d5ee4a - Implemented two lookup tables for the sample fonts. The first,
"CHARSET_ORDER", is for converting codepage to ordinal charset num,
  and the second, "SAMPLE_LANG_TEXT", is for giving the actual sample
  text.
- Removed all references to changing the font directly in stc5.
- Modified the "InvalidateRect" calls to invalidate the rect where
  stc5 is, rather than stc5 itself.
- Added handling of WM_PAINT that draws the sample text, properly
  truncated.
- Removed handling of WM_CTLCOLOR - no longer neccessary.
2003-02-15 00:02:24 +00:00
Shachar Shemesh 7ee13d8f3e - Defined IDs for string constants for font color names and for the
various charsets.
- Load the color names from the resources in the fonts dialog.
2003-01-28 00:18:31 +00:00
Andrew John Hughes d83d2d26f6 Make commdlg compile with -DSTRICT. 2002-11-21 23:55:10 +00:00
Shachar Shemesh b61fd42e4d - Added support for CF_ENABLETEMPLATEHANDLE.
- Revised the FIXME on unsupported flags to not reported the flags now
  turned supported.
2002-11-13 04:08:57 +00:00
Shachar Shemesh 9ce27aa325 - Changed all numeric resources in ChooseFont to labels for better
readability.
- Changed all handling of stc6 (1093) to atc5 (1092) so that will be
  compatible with Windows resource numbers.
- Added code to load the user's resources rather than our own if
  CF_ENABLETEMPLATE is passed in "flags".
2002-11-08 18:56:46 +00:00
Matthew Davison eb53c02579 Fixed some handle conversions for -DSTRICT. 2002-11-01 01:50:06 +00:00
Dmitry Timoshkov 601a3abec1 Fix some types and function prototypes according to Platform SDK
definitions.
2002-10-31 01:04:39 +00:00
Michael Stefaniuc 9d2b862883 Convert HRSRC to a void*. 2002-09-16 22:47:05 +00:00
Michael Stefaniuc e149b37f3a Finish the conversion of HWND to a void*. 2002-09-06 20:40:42 +00:00
Shachar Shemesh d386fa75bc - Fixed access to the lpTemplateName of ChooseFont in cases where the
flags don't specify to use it.
- Do not try to convert the resource name from ANSI to Wide if it is a
  result of MAKEINTRESOURCE (and therefore not a string).
2002-07-10 20:31:17 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Andreas Mohr 2295e87be8 Fixed some more missing parenthesis issues. 2002-02-02 18:06:03 +00:00
Gerard Patel 9dea5b3ac8 Fixed handling of -1 itemid in WM_DRAWITEM. 2001-11-12 15:48:20 +00:00
Patrik Stridvall 01d5e5b071 Documentation fixes. 2001-07-02 19:59:40 +00:00
Patrik Stridvall 6076729649 Documentation ordinal fixes. 2001-06-19 03:34:07 +00:00
Ian Pilcher b0f69948c6 Make ChooseFontW use ChooseFontA. 2001-06-13 20:06:42 +00:00
Marcus Meissner 645451c632 Drop flags during font enumeration for font chooser if we get no
matches.
2001-05-07 18:16:17 +00:00
Marcus Meissner 48a3f53afc Debug output for flags, select first available height and weight when
selecting a font.
2001-05-05 00:42:54 +00:00
Jon Griffiths 7a6bad8f10 - Fix a typo in TBSAVEPARAMS A/W declaration.
- Use 16 bit Unicode constants for wc strings.
- Make some string constants available as Unicode.
2001-01-22 02:13:58 +00:00
Alexandre Julliard 982a223f36 Replaced PTR_SEG_TO_LIN macro by exported MapSL function.
Fixed a few ptr/segptr mismatches.
Moved CONV_RECT/POINT macros to wingdi16.h.
2000-12-13 20:20:09 +00:00
Alexandre Julliard ef57e18f99 Removed some unnecessary includes. 2000-12-01 21:32:55 +00:00
Alexandre Julliard a8d1a7c52b Finished separation of comclt32 and comdlg32. 2000-11-30 19:07:09 +00:00
Alexandre Julliard 49556bcbf5 Cleaned up some more dependencies on Wine internal functions. 2000-11-29 18:38:24 +00:00
Alexandre Julliard 24a62ab9b0 Got rid of the Wine internal lstrcpy* functions and of winestring.h. 2000-11-28 22:40:56 +00:00
Alexandre Julliard ac7efef3b5 Changed GetProcAddress16 and 16-bit resource functions to take normal
pointers instead of SEGPTRs.
Removed WIN16_GetTempDrive.
2000-11-27 21:54:01 +00:00
Patrik Stridvall 024d6c50d6 Fixed some issues found by winapi_check. 2000-11-25 03:09:30 +00:00
Dmitry Timoshkov 77b2185e1c Remove redundant includes.
Eliminate use of USER internal structures.
2000-11-15 22:15:52 +00:00
Alexandre Julliard 072dfb57e3 Removed inclusion of wine/winestring.h from winbase.h and added it to
the C files that need it.
2000-09-25 23:30:56 +00:00
Alexandre Julliard c7e7df8b17 Replaced all lstr* calls from inside Wine code by their str* equivalent. 2000-08-14 14:41:19 +00:00