Commit graph

54 commits

Author SHA1 Message Date
Timo Kreuzer
9ea495ba33 Create a branch for header work.
svn path=/branches/header-work/; revision=45691
2010-02-26 22:57:55 +00:00
James Tabor
21032e02d1 [Win32k]
- Add back removed window dce support routine. Fixed list handling and implemented thread cleanup for dces.

svn path=/trunk/; revision=45305
2010-01-28 23:34:57 +00:00
James Tabor
890497afd7 [Win32k]
- Fixes to region support code. See bug 5124. 

svn path=/trunk/; revision=45181
2010-01-21 13:18:33 +00:00
James Tabor
1e2a5d67cd [Win32k]
- Updated headers and related files.

svn path=/trunk/; revision=45070
2010-01-14 02:52:12 +00:00
James Tabor
66c33fe237 [Win32k]
- More movement to WND with updates to related files. Removed unused code rewritten others. Review patch.

svn path=/trunk/; revision=45051
2010-01-12 05:25:22 +00:00
James Tabor
24533102e6 [Win32k]
- More movement to WND with updates to related files. Added new scroll and get/post message routines. In the mix we did moved to the MONITOR structure.

svn path=/trunk/; revision=45042
2010-01-11 07:36:48 +00:00
James Tabor
3d60e751ce [Win32k]
- Removed NtUserGetScrollInfo and replaced it, move more type names in window object to WND.

svn path=/trunk/; revision=45021
2010-01-10 07:50:57 +00:00
James Tabor
9b791c7be9 [Win32k]
- Setting up for region attribute support.
- Removed old code and use GreDeleteObject for dc and region types.

svn path=/trunk/; revision=44806
2009-12-29 21:07:04 +00:00
Giannis Adamopoulos
196021c276 [win32k]
- Don't store LastChild in WINDOW_OBJECT

svn path=/trunk/; revision=44591
2009-12-14 22:58:03 +00:00
James Tabor
f755214f06 [Win32k]
- Continuing the moving into WND structure with minor desktop structure changes.
- Tested: wine user32 tests, AbiWord 2.6.8, FF 3.5, OOo 2.4.3 and Seamonkey 2.0.

svn path=/trunk/; revision=44576
2009-12-14 06:48:40 +00:00
James Tabor
d51b4d5202 [Win32k]
- Michael Martin found a create window and crash exit issue by testing programs from http://www.magma.ca/~wjr/ PEview. Fixed by replacing UserFreeWindowInfo with co_UserDestroyWindow at cleanup exit.
- Added more window death and thread checks.
- Started the morphing into WND structure from window object.
- Tested: wine user32 tests, AbiWord 2.6.8, Seamonkey 2.0, FF 3.5 and OOo 2.4.3.

svn path=/trunk/; revision=44575
2009-12-14 05:02:56 +00:00
Dmitry Gorbachev
145fbbd116 - Update address of Free Software Foundation.
- Update obsolete LGPL v2 to LGPL v2.1.

svn path=/trunk/; revision=43790
2009-10-27 10:34:16 +00:00
Matthias Kupfer
1abc5e10f8 - revert change from revision 41251, because it introduce more problems then it fixes
- basic problem still unsolved, window z-ordering doesn't work properly

svn path=/trunk/; revision=42956
2009-08-27 14:55:54 +00:00
James Tabor
e3ef0343ba - [Win32k] Rename class and window structures.
svn path=/trunk/; revision=42130
2009-07-22 05:23:08 +00:00
James Tabor
928ed84e9f - [Win32k] Update window structure.
svn path=/trunk/; revision=42108
2009-07-20 23:18:16 +00:00
James Tabor
b96f3f2222 - Implement support for HWND_MESSAGE. Need full testing!
svn path=/trunk/; revision=41963
2009-07-15 05:33:21 +00:00
Dmitry Gorbachev
52f4e2b161 Add an assertion. Bug #4670.
svn path=/trunk/; revision=41831
2009-07-09 14:56:59 +00:00
James Tabor
775000286f - Check window is still alive.
svn path=/trunk/; revision=41793
2009-07-07 00:06:54 +00:00
James Tabor
86fe4eade9 - More Window Threads issues. Need to finish the window object rewrite!
svn path=/trunk/; revision=41753
2009-07-03 08:03:56 +00:00
James Tabor
25e75aa265 - Add more hooks, where wine has them placed. Fixed user32 hooks for win32k.
svn path=/trunk/; revision=41656
2009-06-28 03:02:15 +00:00
Matthias Kupfer
9389bb01b8 - fixes the problem of unsetting the HWND_TOPMOST property (e.g. taskmgr)
- review recommended, but i think it's sufficient to limit topmost property to desktop windows only (otherwise we can remove this part of condition)

svn path=/trunk/; revision=41251
2009-06-02 10:13:30 +00:00
Timo Kreuzer
ea055dde70 Rename NtGdiDeleteObject to GreDeleteObject
svn path=/trunk/; revision=40240
2009-03-25 20:24:34 +00:00
Timo Kreuzer
8d620098f5 win32k RECT/RECTL issues:
- Although RECT and RECTL are defined equal, the compiler treats them as incompatible. MS has created a lot of definitions with RECT and a lot with RECTL. So far we had to typecast them. Now with adding some defines into a win32k header file, we can finally treat them as equal inside win32k and get rid of a lot of type casts. Also use RECTL in favour of RECT internally, as this is the type that MS uses for the DDI and seems to be the more appropriate type.
- We had a lot of "const PRECT" stuff inside win32k. Note: there's difference between "const RECT *" (what you currently want) and "CONST PRECT" (which you proabably don't want). Despite the fact that CONST is not an official modifier (please stick to const) the main difference is that the former describes a pointer to a constant structure, while the latter describes a constant pointer to a modifyable structure.
- In an attempt to clean up the overpolluted IntGdi namespace, "objectify" the rect functions, moving them into their own namespace RECTL_Xxx.

svn path=/trunk/; revision=40100
2009-03-19 01:42:34 +00:00
Art Yerkes
26a6195563 Prevent a null access when the first show-desktop is called. Hidden by low-memory mapped in csrss.
svn path=/trunk/; revision=38886
2009-01-18 12:11:32 +00:00
James Tabor
15381523f2 - Total commander crashes after pressing any key, see bug 2292.
svn path=/trunk/; revision=38363
2008-12-26 23:00:03 +00:00
Dmitry Gorbachev
b3597def85 Silence compiler warnings (9/11).
svn path=/trunk/; revision=37831
2008-12-03 17:36:23 +00:00
Stefan Ginsberg
ef394b196f - Less STDCALL, more WINAPI/NTAPI/APIENTRY
svn path=/trunk/; revision=37752
2008-11-29 22:48:58 +00:00
Timo Kreuzer
65e82782c9 Win32 structure cleanup part 3 / x:
- rename DESKTOP_OBJECT to DESKTOP

svn path=/trunk/; revision=36789
2008-10-17 13:09:56 +00:00
Timo Kreuzer
d13301ae65 Win32 structure cleanup part 1 / x:
- replace W32THREAD with THREADINFO, define W32THREAD like it's on Windows and make it part of THREADINFO.

svn path=/trunk/; revision=36769
2008-10-16 17:52:38 +00:00
Timo Kreuzer
5a9f88c144 remove a RETURN() macro
svn path=/trunk/; revision=36696
2008-10-08 15:41:52 +00:00
James Tabor
900b6e2e6a Sorry for commit my test tree,,,, good for testing Bug 2451.
svn path=/trunk/; revision=34541
2008-07-16 02:06:05 +00:00
James Tabor
702a9bb706 make does like tabs, right? Fix build.
svn path=/trunk/; revision=34540
2008-07-16 01:22:26 +00:00
Christoph von Wittich
9c5c81eba2 don't deref NULL pointer
svn path=/trunk/; revision=34412
2008-07-10 14:00:50 +00:00
Timo Kreuzer
2fcc1cf78f PatchPatch by Stefan Ginsberg (stefan__100__ AT hotmail DOT com):
- remove NtUserGetWindowRect, use GetWindowRect instead
- remove NtUserGetClientOrigin and NtUserGetClientRect (unused)
- remove NtUserManualGuiCheck, use NtUserCallOneParam like other private CSRSS functions do

svn path=/trunk/; revision=32935
2008-04-12 23:22:58 +00:00
Timo Kreuzer
4e4095383f - Set the BaseObject.hHmgr field in GDIOBJ_AllocObj
- rename RGNDATA_ functions to REGION_ to have a consistent naming.
- move REGION prototypes to region.h
- rename REGION_AllocRgn to REGION_AllocRgnWithHandle and make it return a pointer to a locked region.
- rename UnsafeIntGetRgnBox to REGION_GetRgnBox
- rename UnsafeIntRectInRegion to REGION_RectInRegion
- remove UnsafeIntUnionRectWithRgn maco
- implement REGION_SetRectRgn and call it from NtGdiSetRectRgn
- reorder some parameters
- remove REGION_CropRgn, use REGION_CropAndOffsetRegion instead
- Implement UserShowCursor based on the code from NtUserCallOneParam and call it from inside the switch statement.

svn path=/trunk/; revision=32713
2008-03-17 22:17:48 +00:00
Timo Kreuzer
a8c044b6cb Big ntuser fix:
- rename ObmXxx functions to UserXxx functions
- remove some macros
- move prototypes to object.h
- implement UserreferenceObjectByHandle creating a reference to the object, used for cursoricon stuff so far
- rewrite object manager functions to reasonably handle references
- dereference cursoricons correctly, so they will really get deleted -> fixes a cursoricon leak
- destroy submenus in NtUserDestroyMenu -> fixes a big menu leak
- free the buffer of the menu text -> fixes a mem leak
- delete old bitmaps in NtUserSetCursorContent -> fixes a bitmap leak
- delete monitor object on failure
Now taskmgr doesn't leak memory anymore. we still leak some user handles here and there even after terminating a process, but it's much better now.

svn path=/trunk/; revision=32336
2008-02-13 00:46:23 +00:00
Thomas Bluemel
2bc07496f3 Store the internal window placement directly inside the WINDOW structure
svn path=/trunk/; revision=30610
2007-11-21 05:35:33 +00:00
James Tabor
910520b648 This helps FF 1.5.03 Restore from Maximize. Anyone open to a full rewrite of winpos and support?
svn path=/trunk/; revision=30500
2007-11-16 12:57:01 +00:00
Thomas Bluemel
4fae2f5e49 Implement GetWindowLongA/W without having to call win32k for most cases
svn path=/trunk/; revision=30477
2007-11-15 22:08:13 +00:00
Thomas Bluemel
23c877364c - Fix desktop heaps handling and various bugs
- Begin superseding the WINDOW_OBJECT structure by WINDOW which is located on the desktop heap
- Implement GetClientRect() and GetWindowRect() to read the information from the desktop heap

svn path=/trunk/; revision=30467
2007-11-15 19:42:41 +00:00
Daniel Reimer
ae7da04787 Delete all Trailing spaces in code.
svn path=/trunk/; revision=29690
2007-10-19 23:21:45 +00:00
Timo Kreuzer
d0c7e3cf5e recommit part of previous patch: validate parent on moving windows. Fixes redraw problem when moving the slider of regedit etc.
svn path=/trunk/; revision=27763
2007-07-20 22:59:21 +00:00
Aleksey Bragin
3c7b25d58e - Revert vis.c and winpos.c changes from 27672, due to a bug 2409.
- Fix win32k compiling without compilation units.

See issue #2409 for more details.

svn path=/trunk/; revision=27726
2007-07-19 12:43:54 +00:00
Timo Kreuzer
5a95124349 - fix IntValidateParent
- validate Parent windows on moving pixels
(both was fine earlier, but has been messed up recently)
- move sending of WM_SIZE and WM_MOVE from co_WinPosShowWindow to co_WinPosSetWindowPos
co_WinPosSetWindowPos:
- instantly erase when drawing windows or exposing region
- Invalidate child windows on BeginPaint
This should fix most window redrawing bugs and also (hopefully) speed up the gui (less redrawing).

svn path=/trunk/; revision=27672
2007-07-15 03:30:03 +00:00
Magnus Olsen
e2651a0dbc Fixing a smaller bug was intrudes in rev 27394
----------------------------------------------
1. vmware driver child windows was not show right no button or text, in second boot
this change take care of that regress and does not intrudes any new regress what I can 
see. 

svn path=/trunk/; revision=27403
2007-07-05 09:46:57 +00:00
Timo Kreuzer
f1a7f30887 co_WinPosSetWindowPos: fix the redrawing (instead of simply removing some code, like my last commit, sorry). Now it works more like on windows and both the problem of a blank control panel and ugly wizard pages are gone. Fixes bug 735, see also bug 902, may fix bug 2141.
See issue #735 for more details.

svn path=/trunk/; revision=27394
2007-07-04 22:22:30 +00:00
Timo Kreuzer
129a800f3f co_WinPosSetWindowPos:
- use IntInvalidateWindows() instead of co_UserRedrawWindows()

svn path=/trunk/; revision=27318
2007-06-28 20:23:46 +00:00
Timo Kreuzer
8ec3b717ee - remove hack from co_WinPosSetWindowPos()
fixes bug 902
it doesn't reintroduce bug 735, wich seems to be fixed.
See issue #902,735 for more details.

svn path=/trunk/; revision=27313
2007-06-28 18:57:24 +00:00
Saveliy Tretiakov
59736af42b Merge clipboard branch to trunk
svn path=/trunk/; revision=26029
2007-03-08 13:31:33 +00:00
Aleksey Bragin
182fc37942 Revert r24430 changes (by Magnus Olsen) since they are incorrect (additionally confirmed by Filip Navara)
svn path=/trunk/; revision=24471
2006-10-09 15:02:33 +00:00