Alexandre Julliard
f874d20f54
user: Allow creating windows of the desktop class.
2006-03-06 12:44:38 +01:00
Alexandre Julliard
70d42f9d43
user: Allow some Wine internal messages to act on the desktop window.
2006-03-06 12:37:13 +01:00
Byeong-Sik Jeon
bd82e82993
user32: Fix the default height for CJK fonts.
2006-03-04 16:12:51 +01:00
Vitaly Lipatov
e96f03a1d7
user: Fix uninitialized rectangle in menu arrow painting.
2006-03-02 15:50:07 +01:00
Rein Klazes
cc5b5cea96
user32: Fix handling of '\b' right flush character in menus.
...
- do not add extra space; modify the tests to confirm this;
- right flush to the menu tab stop, not to the menu border;
- small fixes to the menu tab stop calculation.
2006-03-01 20:40:17 +01:00
Jason Edmeades
24dc3de4c9
user32: Ensure VK_UP displays the popup menu for the selected item if
...
the popup menu is not visible
2006-03-01 12:39:09 +01:00
Francois Gouget
4aa6418d51
Assorted spelling fixes.
2006-02-24 21:10:03 +01:00
Francois Gouget
29b5c987d5
user32: Handle WM_ENDSESSION in DefWinProc().
...
DefWinProc() should call PostQuitMessage() on WM_ENDSESSION if the
shutdown is proceeding.
2006-02-24 21:07:08 +01:00
Francois Gouget
feb153c649
user32: 0 vs. INFINITE timeout.
...
It is 0 that denotes an infinite timeout for the wine server now, not
-1 (INFINITE).
Document put_message_in_queue()'s check for INFINITE (done for
backwards compatibility with Windows 9x).
2006-02-24 21:06:50 +01:00
Francois Gouget
6edd77228d
user: Fix ExitWindows().
...
- Use 0 to get an infinite timeout with SendMessageTimeoutW().
- Use SendMessageTimeoutW() to send the WM_ENDSESSION messages too so
we don't get stuck if a process is hung.
- Only send WM_ENDSESSION to windows that received a
WM_QUERYENDSESSION message. Also better mimick the Windows behavior.
2006-02-24 21:06:23 +01:00
Francois Gouget
1f297893e5
user: Give meaningful names to the structures used to transfer
...
information to the test threads.
2006-02-24 11:22:28 +01:00
Rein Klazes
3a0b40fffb
menu: Take the MF_DEFAULT flag in to account in MENU_CalcItemSize.
2006-02-20 20:32:02 +01:00
Rein Klazes
1d0ec411d4
user: Add conformance tests for menu item drawing.
2006-02-20 12:00:39 +01:00
Rein Klazes
00ca259872
user: Menu drawing fixes.
...
- check mark is drawn left of a bitmap;
- if a MNS_CHECKORBMP-style menu has a checkmark, do no draw any bitmap;
- space for the popup arrow is also reserved for non popup items;
- implement the MNS_NOCHECK style.
2006-02-20 11:58:54 +01:00
Rein Klazes
885f217022
user: Menu string width calculation fixes.
...
- Use DrawText in stead of GetTextExtendPoint32, to properly measure
strings with ampersands like "&File";
- Fix mess with strings with an embedded tab;
- In case of a menu bar, two extra pixels are added if the item has
both a bitmap and string.
2006-02-20 11:58:03 +01:00
Rein Klazes
2757532fee
user: Menu drawing fixes.
...
Replace some #defined constants by values calculated from windows
metrics.
2006-02-20 11:57:07 +01:00
Rein Klazes
444a547135
user: Menu drawing fixes.
...
- Move sending WM_MEASUREITEM message for HBMMENU_CALLBACK bitmaps to
MENU_GetBitmapItemSize();
- Save the received bitmap size in the menu item structure as it will
need to be sent in the WM_DRAWITEM message;
- Move sending WM_DRAWITEM message for HBMMENU_CALLBACK bitmaps to
MENU_DrawBitmapItem();
- This also means that HBMMENU_CALLBACK bitmaps are now supported in
menu bars.
2006-02-20 11:56:21 +01:00
Rein Klazes
672a1e4e4e
user: Move drawing of pop menu arrows to a subroutine reduces nesting
...
level of some large if statements in the drawing code. Some updates to
the comments.
2006-02-20 11:54:28 +01:00
Michael Kaufmann
1f3afd4b47
user: Add the DS_NOIDLEMSG style to message boxes.
2006-02-20 11:12:26 +01:00
Phil Krylov
dafa5bf464
user: Implement scrolling in popup menus.
2006-02-17 18:34:31 +01:00
Troy Rollo
8818880b43
user: Fix argument type of IsDlgButtonChecked.
2006-02-14 11:38:15 +01:00
Troy Rollo
d07448dd3a
user: Fix argument type for EnableScrollBar.
2006-02-14 11:37:57 +01:00
Troy Rollo
0fbd861bdd
user: Fix argument types for CheckRadioButton.
2006-02-14 11:37:20 +01:00
Troy Rollo
99020f8001
user: Fix return type and argument type for GetDlgItemText{A,W}.
2006-02-14 11:36:49 +01:00
Petr Tesarik
3c4a0db3a5
user32: Czech language resources encoding fix.
2006-02-13 13:28:31 +01:00
Francois Gouget
379b62c04e
Assorted spelling fixes.
2006-02-06 20:58:36 +01:00
Eric Pouech
e66e227dbe
Fixes for missing prototypes warnings.
2006-02-06 13:13:28 +01:00
Fatih Aşıcı
f69c173983
user: Turkish translation.
2006-02-06 13:06:33 +01:00
Michael Kaufmann
fd71ef1bfa
user: Remove internal messages from the message queue before handling them.
2006-01-30 18:15:52 +01:00
Alexandre Julliard
6b76244bf4
Fixed creation of PS_ALTERNATE pens.
2006-01-30 15:02:53 +01:00
Vitaliy Margolen
70fcfa755c
user: Remove duplicate code.
2006-01-30 14:56:25 +01:00
Vitaliy Margolen
6c64b74a7c
user/tests: Add test for low level mouse hooks.
2006-01-30 14:56:17 +01:00
Rein Klazes
d4c62162e9
user: Fix SPI_{G|S}ETFONTSMOOTHING with tests.
2006-01-27 19:19:19 +01:00
Huw Davies
1b89fe4976
user: Don't automatically add a bunch of styles in create_editcontrol.
2006-01-27 15:47:32 +01:00
Rein Klazes
ec23fb3a92
user: Fix DrawTextExA/W on empty strings.
...
DrawTextExA/W should calculate a rectangle of zero height and width in
some cases of null or empty supplied strings. With conformance tests.
2006-01-27 15:47:15 +01:00
Dmitry Timoshkov
ac4de71f85
user: Postpone resetting SCROLL_TrackingWin untill all notifications are sent.
2006-01-27 12:10:40 +01:00
Vitaliy Margolen
dd57bbd1d2
user: Don't drop owned windows in WIN_EnumChildWindows.
...
Add a few tests for this.
2006-01-25 15:07:02 +01:00
Michael Kaufmann
1de825f746
static control: SS_CENTERIMAGE fixes.
...
- Stretch bitmaps and icons to the whole control size if
SS_CENTERIMAGE is absent
- Draw the background of centered bitmaps and icons with the
background brush (like Windows XP for applications with a manifest)
2006-01-25 13:14:44 +01:00
Dmitry Timoshkov
57a579ffcd
Make more arrays const.
2006-01-24 14:00:32 +01:00
Alexandre Julliard
b7b7f2b679
Avoid importing _strlwr/_strupr from ntdll.
2006-01-24 12:24:05 +01:00
Louis Lenders
d782abff6b
user32: Added stub for UpdateLayeredWindow.
2006-01-23 20:12:52 +01:00
Dmitry Timoshkov
9b1ea63bf9
user32: Make GetMenuItemInfo tests pass under Wine.
...
- Change menu item search algorithm to recurse into a submenu first.
- Fallback to a found submenu if nothing else was found.
2006-01-23 11:59:21 +01:00
Vitaliy Margolen
e383143f18
user: Add missing WIN_ReleasePtr.
2006-01-23 11:24:16 +01:00
Detlef Riekenberg
191d62e7f9
user/tests: Added \n to a few ok() calls.
2006-01-20 16:16:43 +01:00
Ken Thomases
d6865383a6
user: Fixed the lifetime of MDICREATESTRUCT variables.
2006-01-19 12:43:45 +01:00
Jason Edmeades
14889a618d
user: Tests for when the menu is incorrect because of duplication of a
...
menu id and an hMenu.
2006-01-19 11:56:20 +01:00
Michael Kaufmann
73a23606a9
static control: Immediately repaint the control.
2006-01-17 16:09:32 +01:00
Michael Kaufmann
6ca3e6365a
static control: Separate WM_NCCREATE and WM_SETTEXT.
...
- Separate WM_NCCREATE and WM_SETTEXT.
- WM_SETTEXT and WM_SETFONT are ignored for static controls that don't
display text.
- WM_SETTEXT must not be used to change the icon/bitmap/metafile.
- Immediately repaint the control on all occasions.
2006-01-17 16:08:59 +01:00
Michael Kaufmann
97be4fa91d
static control: Don't load OEM bitmaps.
2006-01-17 16:07:10 +01:00
Michael Kaufmann
2ddbc7b6e0
static control: STN_ENABLE and STN_DISABLE notifications.
2006-01-17 16:06:41 +01:00
Michael Kaufmann
2b8cda7162
static control: Better STM_GETIMAGE.
...
STM_GETIMAGE returns NULL if the given image type doesn't match the
control's style.
2006-01-17 16:05:25 +01:00
Michael Kaufmann
46d007cedb
static control: Support SS_REALSIZEIMAGE.
...
- Support SS_REALSIZEIMAGE (this flag means "it's not necessary to
load icons in the default icon size").
- SS_ICON: Ability to display cursors.
2006-01-17 16:04:40 +01:00
Michael Kaufmann
66b5020e02
static control: Support SS_REALSIZECONTROL.
...
- Support SS_REALSIZECONTROL (this flag means "don't resize the
control to the size of the bitmap/icon").
- Always call GlobalUnlock16 after GlobalLock16.
2006-01-17 16:03:44 +01:00
Michael Kaufmann
910f4bb50e
static control: Background of enhanced metafiles.
...
- Always paint the background of static controls displaying enhanced
metafiles.
- Also paint the background if there's no metafile to display.
2006-01-17 16:01:40 +01:00
Michael Kaufmann
7effdb0b23
static control: Support text style flags.
...
- Support DT_END_ELLIPSIS, DT_PATH_ELLIPSIS and DT_WORD_ELLIPSIS.
- Paint simple text without prefixes (SS_SIMPLE | SS_NOPREFIX) with
the ExtTextOut function like the native control does.
- Gray text color: Only for non-simple static controls.
2006-01-17 16:00:47 +01:00
Robert Shearman
a40ce39340
user: Fix WM_QUIT message ordering from PostQuitMessage.
...
Added a new server call as PostQuitMessage should set a flag in the
message queue to return the WM_QUIT message when there are no other
pending messages, rather than posting a message to the thread queue as
it does at the moment.
2006-01-17 13:14:31 +01:00
Rein Klazes
de9400262e
user: Avoid buffer overflow in sysparams.c.
...
Increase buffer size to 12 for getting and setting integer parameters
from/to the registry.
2006-01-16 20:41:57 +01:00
Troy Rollo
b7652d89db
user: Fix return type of EnableMenuItem.
2006-01-10 12:08:48 +01:00
Michael Kaufmann
7ff2a68459
user: Improve the ownerdraw support of the static control.
2006-01-10 12:07:57 +01:00
Michael Kaufmann
37c68b47f4
user: The LoadImage resource string may be a numeric string.
2006-01-10 12:07:32 +01:00
Phil Krylov
a2f883484f
user: Fix dropdown combo creation when there is no space for an edit control.
2006-01-09 18:41:33 +01:00
Mike McCormack
c83a5930b1
user32: Update the list of things to fix in the Combo control.
2006-01-09 17:16:14 +01:00
Rein Klazes
079912c679
user32: Prevent a crash in GetMenuStringA caused by calling strlenW on
...
a NULL pointer, with a test.
2006-01-09 17:13:44 +01:00
Raimonds Praude
860d682c2b
user32: Limit text in the edit field of a combo box.
2006-01-06 21:16:52 +01:00
Michael Kaufmann
e7322e5109
Static control: Support enhanced metafiles.
2006-01-06 21:07:07 +01:00
Rein Klazes
1d4b52c254
user32: Menu tracing improvements.
2006-01-04 14:48:07 +01:00
Rein Klazes
b34868dffa
user32: Separate menu bitmaps and strings.
...
Store bitmaps and bitmaps always in separate fields in the internal
menu structure. Get rid of a lot of assumptions in the code that the
menu can have strings only when it is not some other type and that
bitmaps come in two flavors.
Add a lot of conformance tests, including some submitted by Jason
Edmeades.
2006-01-03 13:23:28 +01:00
Francois Gouget
8ca1f3fc14
Assorted spelling fixes
2006-01-03 12:10:50 +01:00
Vitaliy Margolen
9561d6e29c
gdi: Device name returned from EnumDisplayDevices is valid for CreateDC.
2006-01-03 12:05:54 +01:00
Alexandre Julliard
0e6b4c43de
user/tests: Remove todo_wine from a few tests that (usually) succeed.
2005-12-22 17:15:54 +01:00
Dmitry Timoshkov
b61b82011e
user32/tests: Add a PeekMessage test.
2005-12-22 13:58:11 +01:00
Aric Stewart
314f45dcdb
user: Make the edit control IME aware and implement inline editing.
...
Makes for a significantly better user experience for CJK users.
2005-12-19 18:17:51 +01:00
Vitaliy Margolen
a80d93c5e9
user: Fix LB_GETTEXT unmapping for A<->W.
2005-12-19 18:16:18 +01:00
Rein Klazes
d076748e22
user: Fix hrgn leaks in win.c test.
2005-12-19 17:43:34 +01:00
Lauri Tulmin
86f45494b6
user32: Don't truncate text when creating edit control.
2005-12-19 09:53:19 +01:00
Rein Klazes
3df678a5af
x11drv: Do not use the scroll rectangle for clipping in ScrollDC.
...
With a conformance test.
2005-12-19 09:53:04 +01:00
Dmitry Timoshkov
8d9fb6331e
x11drv: ScrollDC should not clip output if a clipping rect is not specified.
...
Add a ScrollDC test with NULL clipping rect.
Add another set of ScrollDC tests written by Rein Klazes.
2005-12-17 12:24:37 +01:00
Alexandre Julliard
ae964ac801
Take advantage of the __EXCEPT_PAGE_FAULT macro.
2005-12-16 17:17:57 +01:00
Alexandre Julliard
db7920bb44
We no longer need to handle EXCEPTION_PRIV_INSTRUCTION on page faults.
2005-12-16 16:37:12 +01:00
Rein Klazes
13b9923165
user32: Implement saving and fix reading of nonclient metrics.
...
With conformance tests.
2005-12-16 12:38:06 +01:00
Rein Klazes
105450db4a
user: Read/save minimized metrics from/to registry.
2005-12-14 12:27:39 +01:00
Aric Stewart
c50fbab47f
user: GetClipboardFormatNameA fix.
...
In the W->A translation make sure we have characters to translate
before doing the WideCharToMultiByte with -1.
2005-12-14 10:49:54 +01:00
Eric Pouech
28442721fd
Const correctness fixes.
2005-12-12 11:55:49 +01:00
Vincent Béron
834385cad4
Add some missing includes which contain used prototypes.
2005-12-09 11:51:17 +01:00
Alexandre Julliard
ef4dfd4b7a
user: Fixed copy/paste bug in CURSORICON_GetResIconEntry.
2005-12-05 20:41:24 +01:00
Dmitry Timoshkov
b43afeef89
Add a test for LB_SELITEMRANGE, make it pass under Wine.
2005-12-01 11:12:34 +01:00
Dmitry Timoshkov
7d86789758
Add a test for RedrawWindow with an empty region/rectangle, make it
...
pass under Wine.
2005-11-30 19:46:00 +01:00
Vitaliy Margolen
93b63566a5
ShowWindows(SW_SHOWMAXIMIZED) should ignore WS_MAXIMIZE window
...
state. Change tests accordingly.
2005-11-30 12:43:50 +01:00
Vitaliy Margolen
b78784c3f2
New maximized visible window should be shown with
...
ShowWindow(SW_SHOW).
2005-11-30 12:37:47 +01:00
Vitaliy Margolen
aae7632409
CreateWindow should not activate invisible minimized or maximized
...
windows.
Add several tests to show the correct behavior.
2005-11-30 12:32:22 +01:00
Vitaliy Margolen
e95464a5cb
EnumChildWindows should return result from the callback.
2005-11-29 10:40:58 +01:00
Ge van Geldorp
1a1583a364
Match PSDK STATUS_* definitions.
2005-11-28 17:32:54 +01:00
Dmitry Timoshkov
b9212e2aba
set_menu_item_text handles converting an empty menu item to a
...
separator on its own, give it a chance to do its work in the
MIIM_FTYPE case.
2005-11-28 11:53:20 +01:00
Alexandre Julliard
0ec7e1a591
Renamed all .cvsignore files to .gitignore.
2005-11-26 13:10:33 +01:00
Francois Gouget
6d442aeb34
Assorted spelling fixes.
2005-11-23 20:14:43 +01:00
Alexandre Julliard
cc01e8ff05
Preserve 16-byte stack alignment in the various assembly
...
functions. Needed for MacOSX.
2005-11-23 19:55:06 +01:00
Rein Klazes
168e0db02c
Make test_SPI_SETBORDER less likely to permanently change visual
...
settings:
- use smaller border widths values for testing;
- provide a work around for a Windows XP feature that made the tests
change the caption width.
2005-11-23 15:19:04 +01:00
Rein Klazes
6154b46bef
GetSystemMetrics fixes with corresponding tests.
2005-11-22 14:56:11 +00:00
Dmitry Timoshkov
7bde557d8a
Choose what window styles to dump (WS_GROUP/WS_TABSTOP vs.
...
WS_MINIMIZEBOX/WS_MAXIMIZEBOX) based on the WS_CHILD style set.
2005-11-21 15:18:32 +00:00
Vitaliy Margolen
83ef91ce2d
Replace inherit flag with object attributes in winstation and desktop
...
create & open. Use OBJ_OPENIF flag to create winstation & desktop.
2005-11-21 12:05:38 +00:00