Andreas Mohr
8578f01960
Make sure we clear the owning window's hMenu in DestroyMenu().
2002-08-28 23:31:56 +00:00
Aric Stewart
acb308af67
If we have no dropdown height give ourselves a minimum height of 5
...
items or max items (whichever is less).
2002-08-28 00:53:23 +00:00
Alexandre Julliard
0393d43c8e
Fixed WM_GETTEXT handling to avoid strncpy and return correct lengths.
2002-08-28 00:40:17 +00:00
Michael Stefaniuc
4a75c5c6ea
Convert HACCEL to a void*.
2002-08-28 00:39:39 +00:00
Zoltan Nagy
5b809fd6d7
Move caret when selecting a text area with the mouse.
2002-08-27 18:15:26 +00:00
Aric Stewart
2e0d8cfc76
Don't set EN_CHANGE at creation time.
2002-08-20 00:24:17 +00:00
Patrik Stridvall
d016f819f1
Added include protection for unistd.h and sys/time.h.
2002-08-17 00:43:16 +00:00
Alexandre Julliard
d376e64c35
Erase background when invalidating the selected text.
2002-08-16 23:21:51 +00:00
Aric Stewart
08e693965d
Support large edit buffers for richedit control.
2002-08-16 01:41:32 +00:00
Alexandre Julliard
331bf3d77c
Avoid trouble in WM_GETTEXT if specified length is larger than the
...
buffer (found by Carl Sopchak).
2002-08-15 23:28:45 +00:00
Duane Clark
ff42c0174d
On mouse down in thumb, issue SB_THUMBTRACK with current position.
...
On mouse up in thumb, issue SB_THUMBPOSITION followed by
SB_ENDSCROLL.
2002-08-03 00:13:48 +00:00
Alexandre Julliard
526531eb6c
Create at most one glue file for a single dll.
...
Avoid the intermediate .tmp.o file when building programs.
2002-08-01 18:36:58 +00:00
Carl Sopchak
e833248d58
Return empty string on error in WM_GETTEXT.
2002-07-19 03:13:10 +00:00
Uwe Bonnes
72d827010c
CBUpdateEdit: LB_GETTEXTLEN returns LB_ERR on error, not 0.
2002-07-10 23:11:28 +00:00
Alexandre Julliard
ebed1b8745
ComboLBWndProc: fall through to ListBoxWndProc if the listbox is not a
...
ComboLBox.
2002-07-05 00:30:05 +00:00
Vincent Béron
e35580f4c9
Fixed some various comparisons wrt signedness.
2002-06-21 22:25:17 +00:00
Alexandre Julliard
741325b86a
Make sure edit and listbox controls are of same ASCII/Unicode style as
...
the combo box. Fixed a few MBCS issues with WM_GETTEXTLENGTH handling.
2002-06-13 19:20:43 +00:00
Andreas Mohr
957f1f98ef
Only allow tabs in popup menus, and make sure to never display them.
2002-06-04 23:08:16 +00:00
Vincent Béron
9a62491660
Removed trailing whitespace.
2002-05-31 23:06:46 +00:00
Dmitry Timoshkov
a081e2380f
Clear an old button text in WM_SETTEXT as Windows does.
2002-05-20 18:21:29 +00:00
Alexandre Julliard
4344c368cb
Got rid of GetSysColorPen.
2002-05-20 18:15:28 +00:00
Alexandre Julliard
0aa28b5b8d
Export the debugging API from libwine instead of ntdll.
...
Removed debugres_[aw].
2002-05-17 02:55:48 +00:00
Alexandre Julliard
9bb05fc48e
Specify the complete source file list for a dll inside the main
...
makefile and get rid of the subdirectories makefiles.
2002-05-14 18:36:54 +00:00
Rizsanyi Zsolt
0026d78ed8
Disabled catching of mouse move events when not over menu.
...
Changed MENU_SelectItem allow EndMenu to deselect the selected menu.
2002-05-09 01:14:35 +00:00
Chuck Crayne
ce2024ce42
- Recognize "\n" as an alternative soft line break in function
...
EDIT_BuildLineDefs_ML of edit.c.
- Major restructuring of richedit.c to provide bug fixes, enhanced
function, and improved debug support.
2002-04-22 23:08:19 +00:00
Rizsanyi Zsolt
83d6efb761
Sending EN_UPDATE notification in the EDIT_WM_SetText - the comment
...
already says, that the message is sent, but it is not...
2002-04-11 17:30:22 +00:00
Dmitry Timoshkov
aba60df415
Always erase background.
2002-04-09 01:34:48 +00:00
Dmitry Timoshkov
51cf0e34cf
Added CS_PARENTDC style.
2002-04-08 23:46:32 +00:00
Dmitry Timoshkov
5076dbaabc
Convert NULL menu items to separators.
2002-04-02 02:36:44 +00:00
Uwe Bonnes
6815f3a6fd
MenuItemFromPoint: rough implementation.
2002-03-28 22:04:45 +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
Eric Pouech
ed792972d9
Fixed WM_SETFONT handling (no redraw made in some cases).
2002-02-26 00:37:28 +00:00
Phillip Ezolt
76198ce262
Fixed the scrollbar position overflows using MulDiv.
2002-02-19 18:36:55 +00:00
Alexandre Julliard
c72a9aa83e
CodeWeavers
...
Minor fixes.
2002-01-31 21:05:05 +00:00
Guy Albertelli
bde5cf0bc2
Paint control immediately on WM_SETTEXT.
2002-01-31 21:02:17 +00:00
Dimitrie O. Paun
693cca5d4d
Make FIXMEs more grep-able.
2002-01-29 03:12:19 +00:00
Rein Klazes
0e4cf6c083
Don't change button state on WM_MOUSEMOVE messages unless left mouse
...
button is pressed.
2002-01-15 20:27:30 +00:00
Rein Klazes
93ece68077
In CBPaintText use the text size as returned by LB_GETTEXT. The size
...
returned by LB_GETTEXTLEN may be too large.
2002-01-15 20:27:12 +00:00
Sander van Leeuwen
7ccd27a6d5
Check, Radio & 3State buttons send WM_CTLCOLORSTATIC instead of
...
WM_CTLCOLORBTN.
2002-01-04 21:26:20 +00:00
Alexandre Julliard
cc2d3826f1
Use DrawFrameControl instead of bitmaps in certain cases.
...
Moved remaining OEM bitmaps to user32 resources.
2002-01-03 02:35:23 +00:00
Andreas Mohr
6924967539
Fixed, added or implemented stubs:
...
- DrawMenuBarTemp(): corrected parameter count.
- CallCPLEntry16(): stub.
- SetSysColorsTemp(): fully implemented (hopefully) this undocumented
function.
2001-12-26 20:34:12 +00:00
Bill Medland
b153725988
For a radio button even if the initial style includes WS_TABSTOP the
...
first BM_SETCHECK 0 will clear it (even if the state was clear).
2001-12-11 00:16:23 +00:00
Andreas Mohr
9cef2d0b1d
- fix wrong hexadecimal GetLastError() output
...
- misc fixes
- changed my email address
2001-11-19 02:30:01 +00:00
Andreas Mohr
07216db627
EDIT_EM_LineLength called from within EDIT_EM_LineLength needs
...
starting line char index, not line index (== line number).
2001-11-13 21:29:38 +00:00
Francois Gouget
070e749cfb
Don't prefix %p with 0x.
...
Various English fixes.
2001-11-06 21:01:32 +00:00
François Gouget
1425941e29
Fix the #include order for config.h.
...
Add #include "config.h" directives where needed.
2001-11-06 20:57:11 +00:00
Alexandre Julliard
ddc3317b7a
Store in the server all the window information accessible with
...
Get/SetWindowLong.
2001-10-22 19:08:33 +00:00
Alexandre Julliard
fb0ff053c0
Added internal Wine messages to perform SetWindowPos, ShowWindow and
...
SetParent in the correct thread.
Replace QUEUE_IsExitingQueue by USER_IsExitingThread.
Store window rectangles in the server.
Prevent DestroyWindow on windows not belonging to the current thread.
2001-10-16 21:58:58 +00:00
Alexandre Julliard
b662e11a00
Moved scrollbar tracking code to scroll.c.
...
Avoid unnecessary coordinates conversion in NC_HandleSysCommand.
2001-10-16 21:52:26 +00:00
Alexandre Julliard
8fd26b9134
Renamed WIN_GetWndPtr into WIN_GetPtr and added corresponding
...
WIN_ReleasePtr. Started using it instead of WIN_FindWndPtr where we
don't need to access windows of other processes.
2001-10-15 17:56:45 +00:00
Francois Gouget
386cf6e342
When including 'wine/port.h', include it first.
...
Remove redundant 'config.h' includes.
2001-10-14 16:25:47 +00:00
Dmitry Timoshkov
b85a6e8c0a
Defer edit style correction until EDITSTATE is fully initialized.
2001-10-08 20:33:08 +00:00
Guy Albertelli
943e761db7
- Implement message loop on the client side of the scroll control.
...
- Move the mouse capture to after the SetFocus so that it stays
captured.
2001-09-21 21:43:38 +00:00
Alexandre Julliard
d23a82bc86
Made all 16<->32 HWND conversions use explicit functions instead of
...
implicit type casts.
Moved a lot of 16-bit functions to the new wnd16.c file.
Changed DIALOGINFO structure handling to support 32-bit handles.
2001-09-19 20:37:04 +00:00
Bobby Bingham
49c7aff248
When you hold the left mouse button inside the scrollbar, then move
...
the mouse off so it stops scrolling, and return the mouse, it should
continue scrolling.
2001-09-17 19:01:08 +00:00
Alexandre Julliard
f44bbb8d10
Make sure that HWND comparisons are always done with full 32-bit
...
handles.
2001-09-14 00:24:39 +00:00
Guy L. Albertelli
db9b54925d
Enhance SPY_GetMsgName to translate common control messages.
2001-09-07 18:38:57 +00:00
Alexandre Julliard
9d9dac0947
Added WIN_ListParents function and renamed WIN_BuildWinArray into
...
WIN_ListChildren. Made owner field in WND structure an HWND.
2001-08-24 19:28:21 +00:00
Alexandre Julliard
b3ec03092f
Added proper support for 32-bit WM_NEXTMENU.
2001-08-18 18:10:04 +00:00
Alexandre Julliard
de42428f23
Removed a number of direct accesses to the WND structure, replacing
...
them by API calls.
2001-08-10 22:51:42 +00:00
Alexandre Julliard
bfb4a23aa9
Replaced MSG_InternalGetMessage calls by equivalent exported APIs.
2001-08-06 18:05:47 +00:00
Alexandre Julliard
1922c72b8a
Removed unnecessary inclusion of heap.h.
2001-07-25 00:43:29 +00:00
Jukka Heinonen
186a79cb92
WNDPROC handlers now check whether HWND argument is valid.
2001-07-24 01:16:16 +00:00
Alexandre Julliard
ef06b4a694
Got rid of HEAP_strdupW.
2001-07-22 23:08:10 +00:00
Bill Medland
e79f0768e1
As for the edit control, the style of the borders on the list control
...
is modified in the dialog loading code, not in the control itself.
2001-07-17 00:55:23 +00:00
Gerard Patel
326b280efc
Draw MenuBar in proper place (some cases).
2001-07-17 00:43:22 +00:00
Bill Medland
137420a0f0
Correct the location of the style patching for the edit control.
2001-07-11 17:26:33 +00:00
Mike McCormack
34329cf58e
GetMenuItemID: return -1 for invalid menu items, not zero.
2001-07-10 19:06:12 +00:00
Marcus Meissner
05aeaf1568
Add some argument validation to SetMenuItemInfoA, so QT5 does not
...
corrupt its menus.
2001-07-08 20:31:41 +00:00
Bill Medland
31b15c6a86
Correct more colours so that DrawEdge works for more cases.
2001-07-08 20:30:10 +00:00
Patrik Stridvall
01d5e5b071
Documentation fixes.
2001-07-02 19:59:40 +00:00
Dmitry Timoshkov
56a19923e8
Replace some 16-bit calls by their 32-bit equivalents.
2001-07-02 01:21:26 +00:00
Patrik Stridvall
17fd4e3816
Documentation name fixes.
2001-06-28 18:04:41 +00:00
Bill Medland
86bfa4cbd1
Improved handling of styles in the edit control, including detecting
...
changes of style and correcting handling of inconsistant styles.
2001-06-28 18:01:00 +00:00
Andreas Mohr
99f2f396b5
Spelling fixes.
2001-06-22 23:21:47 +00:00
Patrik Stridvall
3ca9823941
Documentation ordinal fixes.
2001-06-20 23:03:14 +00:00
Susan Farley
63c06aa0b7
Changed the outer color of a push button frame from gray to white,
...
matching the Windows look; modified the paint routine for the
close button of a tool window to improve scalability.
2001-06-06 21:31:47 +00:00
Susan Farley
b6866d7f20
Disable the edit box when created with WS_DISABLED.
2001-05-31 21:39:21 +00:00
Bobby Bingham
aa5b6ce836
Fixed scrollbars return value to the SBM_SETRANGE and
...
SBM_SETRANGEREDRAW messages.
2001-05-31 21:30:06 +00:00
Ulrich Czekalla
18ce388db9
Fix menu behaviour when escape is pressed.
2001-05-18 23:20:20 +00:00
James Juran
75c525c16f
Make sure we set dwOSVersionInfoSize before calling GetVersionInfo().
2001-05-18 20:56:37 +00:00
Alexandre Julliard
4323004bf1
Create an X connection for each thread, and process X events in the
...
thread that created the corresponding X window.
Spawn a separate thread to run the desktop message loop in desktop
mode.
2001-05-16 19:52:29 +00:00
Gerard Patel
8f79fdc3fe
Test if the menu is destroyed before displaying a menu item.
2001-05-14 19:20:13 +00:00
Alexandre Julliard
e60ccd11d3
Create a new window for the top popup menu on every new menu tracking,
...
so that the window belongs to the right thread.
2001-05-11 20:05:42 +00:00
Francois Gouget
ee285b7ac8
Remove unnecessary single quoting of debugstr_xxx strings.
2001-05-11 20:03:40 +00:00
Francois Gouget
e76218dd61
Add '\n' at the end of traces.
2001-05-09 17:31:31 +00:00
Mike McCormack
75194d2853
Only draw the padding area of the combo box, don't erase the combo
...
selection text.
2001-05-09 17:13:41 +00:00
Ulrich Czekalla
2d382c6ca6
Fixed a paint problem reported by Mike McCormack.
2001-05-09 17:12:30 +00:00
Marcus Meissner
f05618bd00
Do not HeapFree() memory not allocated by us in COMBO_GetText.
...
Convert return value from LB_GETTEXT into COMBO_GetText.
2001-05-02 01:08:59 +00:00
Mike McCormack
ed90b185f2
Draw the padding area of a combo box.
2001-04-30 18:17:46 +00:00
Patrik Stridvall
15a3b74356
Documentation name fixes.
2001-04-27 18:03:51 +00:00
Gerard Patel
7a06d45fca
Do not send WM_MOUSEACTIVATE for children of desktop.
2001-04-17 17:57:20 +00:00
Dmitry Timoshkov
d62c3f16ac
Remove redundant sending of WM_DRAWITEM message to ownerdrawn
...
combobox.
2001-04-17 17:29:31 +00:00
Dmitry Timoshkov
e8ffcaa372
Slightly improve keyboard tracking in combobox.
2001-04-16 19:32:19 +00:00
Dan Engel
7c7a3571d4
Set the backgound mode to opaque to paint highlighted text.
2001-04-16 19:32:05 +00:00
Alexandre Julliard
3f03975f48
Added first/last message filters to MSG_InternalGetMessage to avoid
...
busy waits.
2001-04-12 21:09:03 +00:00
Alexandre Julliard
c9e11394a0
Added mappings for WM_CHARTOITEM and WM_MENUCHAR messages.
...
Removed mapping of 16-bit edit messages in the generic routines.
2001-04-10 21:46:27 +00:00
Dmitry Timoshkov
6df245dd68
Really do not roll up if selection is being tracked by arrow keys in
...
the dropdown listbox.
2001-04-09 18:30:25 +00:00
Alexandre Julliard
2ec34e48a3
Added TASK_GetPtr/TASK_GetCurrent functions to get the TDB for a task
...
handle.
2001-04-04 00:21:05 +00:00
Rein Klazes
9d4ae0eff9
Do not send the EN_CHANGE notification message until the selection
...
start and end values are filled in.
2001-04-02 19:13:24 +00:00
Ulrich Czekalla
f11ff2a448
Update format engine to reduce flicker.
2001-03-31 00:51:10 +00:00
Guy L. Albertelli
627aa4d772
Native version seems to always re-draw the selected text at the end of
...
a rollup.
2001-03-20 01:51:58 +00:00
Gerard Patel
2482ef3339
Fix system menu crash by ensuring that item->text is not null when
...
MF_TEXT set.
2001-03-19 19:16:21 +00:00
Gerard Patel
cf2ff27f5f
Recalculate menu sizes if WM_INITMENU has recreated/changed something.
2001-03-14 17:24:59 +00:00
Dmitry Timoshkov
a62f06d027
Yet another attempt on fixing notifications in the edit control.
2001-03-13 23:31:08 +00:00
Dmitry Timoshkov
87880c5e23
Fixed notifications of the edit control.
2001-03-10 19:16:46 +00:00
Gerard Patel
d36a3ef385
Call DefWindowProc for WM_CTLCOLORSTATIC message when the apps does
...
not.
2001-03-10 19:16:26 +00:00
Francois Gouget
3d0589ae7d
Fixed spelling/typos in comments.
2001-03-10 19:15:49 +00:00
Dmitry Timoshkov
fbc3619ca0
Make EDIT_UnlockBuffer cope with destroyed windows.
2001-03-05 19:29:47 +00:00
Eric Pouech
a862f68db5
Added a few missing stubs to KERNEL32 and USER32.
2001-02-26 22:33:29 +00:00
Dmitry Timoshkov
52ece0efef
Use GetSysColorBrush(COLOR_WINDOW) when there is no brush for drawing
...
background in listbox.
2001-02-26 22:31:55 +00:00
Dmitry Timoshkov
b32c00055c
Prepare background while drawing radio buttons and checkboxes.
2001-02-23 01:32:05 +00:00
Alexandre Julliard
da2892c0fb
Do not allocate any USER data on the system heap.
2001-02-23 01:13:42 +00:00
Guy L. Albertelli
79413eda91
- Restructure PaintText code to remove FillRect from owner-drawn path.
...
- Change SetFocus to indicate focus set only after Notify is sent to owner.
- Get more info in a trace.
2001-02-20 01:53:12 +00:00
François Gouget
b99367e20e
debugstr_xxx already does the quoting.
2001-02-14 21:42:10 +00:00
Dmitry Timoshkov
9316fa3db3
Convert menu item to seperator only when string is NULL.
2001-02-14 00:23:45 +00:00
Marcus Meissner
4a69939aa8
Don't crash on close from window manager.
2001-02-13 01:49:06 +00:00
Dmitry Timoshkov
bf60453c6a
Fix the behaviour of EM_GETLINE message.
2001-02-12 19:15:33 +00:00
James Abbatiello
8ac1acbb1a
Ownerdrawn combo boxes should use ODS_COMBOBOXEDIT in the itemState.
2001-02-12 01:17:16 +00:00
Guy L. Albertelli
4782b0e57f
- When painting the text, if the control is OWNERDRAWN the issue the
...
WM_DRAWITEM message.
- Set the focused status at the end of the end of the Setfocus routine.
- Flip the order of updating the list box and issuing the WM_NOTIFY
for CBN_EDITUPDATE to match native.
2001-01-26 20:59:51 +00:00
Dmitry Timoshkov
40fddf7c1b
Do not notify parent of the Edit control on WM_SETTEXT when Edit is
...
part of the ComboBox.
2001-01-26 20:37:18 +00:00
Patrik Stridvall
0c61028734
Documentation ordinal fixes.
2001-01-25 22:22:21 +00:00
Alexandre Julliard
c1d35ccd9b
Use DrawFrameControl() instead of OEM bitmaps to paint caption buttons
...
and menu check marks.
2001-01-24 19:47:57 +00:00
Dmitry Timoshkov
9c446a13cd
Protect read-only edit control from modification.
2001-01-22 19:28:27 +00:00
Francois Gouget
05fc3cdf9a
Typo fixes in comments.
2001-01-22 02:22:26 +00:00
Josh DuBois
d661dbdd6c
Specified 'signed' on chars compared to -1.
2001-01-19 20:51:44 +00:00
Dmitry Timoshkov
a234db82eb
Solve remaining problems with scroll bars in the edit control.
2001-01-19 20:49:54 +00:00
Dmitry Timoshkov
df793bcb68
Add one missing buffer size rounding in the edit control.
...
Make rounding code slightly more readable.
2001-01-15 20:20:31 +00:00
Alexandre Julliard
a41b2cfdd0
Moved tweak support to USER dll. Removed tweak.h and cache.h.
2001-01-15 20:12:55 +00:00
James Hatheway
f3ea345b2d
Guard against incoming string of NULL in WM_SETTEXT.
2001-01-12 23:01:41 +00:00
Dmitry Timoshkov
785203ced8
Fix the return value of WM_GETTEXT in the edit control.
2001-01-11 20:17:21 +00:00
Dmitry Timoshkov
376beadaaa
Various combobox fixes.
2001-01-11 20:17:07 +00:00
Dmitry Timoshkov
f77709ea19
Synchronize the sizes of the external and internal buffers at start
...
and end of message processing in the edit control.
2001-01-10 23:55:02 +00:00
Gerard Patel
db8fb6f387
Fixed returned length for LB_GETTEXT.
2001-01-10 23:54:46 +00:00
James Hatheway
ba9b96457d
es->buffer_size is not always the length of the text currently in the
...
editbox, so use -1 instead.
2001-01-10 22:54:33 +00:00
Dmitry Timoshkov
7462099847
Added unicode window proc for the listbox control.
...
Replaced all ansi calls by their unicode equivalents.
Removed use of the custom local heap.
2001-01-09 21:51:04 +00:00
Ulrich Czekalla
b3da1ac0cd
Ensure there is an edit control when we reset contents.
2001-01-09 20:49:53 +00:00
Dmitry Timoshkov
4866ac0859
Combobox should clear its current selection on response to
...
CB_SETCURSEL(-1) message.
2001-01-07 21:43:49 +00:00
François Gouget
75b278e9dd
Modify the look of bitmap menu items to match Win95 and Win98
...
Fix the sunken edge/bitmap overlap in the Win98 look
Introduce an IS_MAGIC_ITEM macro to test if the item is 'magic'
2001-01-06 01:45:51 +00:00
Andreas Mohr
85ba8798b5
Took a stab at implementing LBS_NOSEL.
2001-01-06 00:34:14 +00:00
Dmitry Timoshkov
f5f9f2cc51
Added unicode window proc for combobox control.
...
Replaced ansi calls by their unicode equivalents.
2001-01-05 22:21:18 +00:00
Dmitry Timoshkov
009c1f8005
Added unicode window proc for the static control.
...
Replaced ansi calls by their unicode equivalents.
2001-01-05 22:20:57 +00:00
Dmitry Timoshkov
11dbda6bf9
Fixed some problems with scrolling in the edit control.
2001-01-05 03:40:35 +00:00
Francois Gouget
5818240965
Fixed the alignment of the MF_RIGHTJUSTIFY menu items.
2001-01-04 20:56:43 +00:00
Aric Stewart
fe9a0f0977
Fixed a problem where when deleting an item using index -1 on an empty
...
listbox we would pass through an illegal negative index and cause
problems.
2001-01-04 19:27:03 +00:00
Andreas Mohr
a6d83ebae1
- clarify many error messages
...
- add data corruption warning to README file
2000-12-27 04:02:46 +00:00
Dmitry Timoshkov
366c0a16a5
Fix remaining signed/unsigned mismatches.
2000-12-22 20:28:05 +00:00
Alexandre Julliard
5801723b50
Replaced WIN16_GlobalLock16 by "official" function K32WOWGlobalLock16.
2000-12-22 01:09:26 +00:00
Dmitry Timoshkov
8058ead8ea
Don't write to buffer with zero length.
...
Removed some unused function parameters.
2000-12-21 20:19:21 +00:00
Dmitry Timoshkov
f8b96e272a
Make new edit control allocate its buffers with granularity 32 byte.
...
Ensure that all copied strings are 0 terminated.
2000-12-20 18:39:14 +00:00