Kevin Koltzau
95a173a52b
Fix warnings in 64bit.
2005-09-02 11:32:17 +00:00
Mike McCormack
60f8543362
gcc 4.0 -Wpointer-sign fixes.
2005-07-05 14:11:04 +00:00
Mike McCormack
52736b4743
Fix declarations.
2005-06-28 19:19:07 +00:00
Alexandre Julliard
d0b6308642
Don't convert the template name to Unicode, it's not used by the
...
dialog anyway. Clear the window property on WM_DESTROY.
2005-05-13 17:50:26 +00:00
Troy Rollo
9abbc913d2
Fix stack object overrun when an application calls ChooseFontA.
2005-02-25 14:00:38 +00:00
Mike Hearn
b4c4e755c4
Respect the flags member of the CHOOSEFONT structure, and don't
...
attempt to process bogus strings.
2005-02-14 11:00:37 +00:00
Jacek Caban
fe7fc51a92
Moved string to resources.
2005-01-06 19:43:43 +00:00
Michael Stefaniuc
5ad7d858e0
Do not check for non NULL pointer before HeapFree'ing it. It's
...
redundant.
2004-12-23 17:06:43 +00:00
Jacek Caban
417fde8d42
Unicodified fontdlg.
2004-12-22 17:17:06 +00:00
Jon Griffiths
ecd78d780e
Constify some statics and make them smaller.
2004-10-07 17:35:08 +00:00
Steven Edwards
a6f68b550a
Remove unneeded include statements.
2004-09-23 04:50:58 +00:00
Jacek Caban
45ae0c307b
Fix a bug in passing parameters to CFn_WMInitDialog and CFn_WMCommand
...
in FormatCharDlgProcW.
2004-08-14 00:42:35 +00:00
James Hawkins
1866dfbe16
Cleanup A->W cross calls.
2004-08-02 22:21:12 +00:00
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