Katayama Hirofumi MZ
03adec8141
[WIN32SS][NTUSER] Fix popup menu freezing
2019-08-10 15:40:32 +09:00
Katayama Hirofumi MZ
0749a868fc
[WIN32SS][NTUSER] Fix popup menu window styles ( #1814 )
...
Fix the class style, the window style and the extended style of the popup menu window. CORE-16244
2019-08-10 08:33:25 +09:00
Mark Jansen
6948764b21
[WIN32SS] Ensure the last menu item is not accidentally selected when a system menu is off-screen
...
CORE-16297
2019-08-08 19:51:28 +02:00
Mark Jansen
84e263ceb2
[WIN32SS] Do not propagate TPM_VERTICAL to sub-menus
...
With this change we can remove the workaround from the off-screen
menus dropping below their parent.
Many thanks to Joachim for his help debugging / testing this.
CORE-16297
2019-08-08 19:51:28 +02:00
Mark Jansen
1c8cdaa470
[WIN32SS] Fix tray popup menus stuck to the bottom of the screen
...
Dedicated to Joachim
CORE-16297
2019-08-08 19:51:28 +02:00
Mark Jansen
33f77af348
[WIN32SS] Fix off-screen menu's dropping below their parent
2019-08-08 19:51:28 +02:00
Mark Jansen
3cbdcc6363
[WIN32SS] For application menu's, only exclude the menu item,
...
not the entire window.
Because the application menu is part of the application window,
this would lead to bad results.
2019-08-08 19:51:15 +02:00
Katayama Hirofumi MZ
65e4efd475
[WIN32SS][NTUSER] Fix MENU_DrawScrollArrows ( #1753 )
...
Fix drawing the menu scrolling arrows. CORE-13211
2019-08-08 13:56:23 +09:00
Mark Jansen
b5c6af459c
[WIN32SS] Exclude the entire menu from overlapping, not just the menu item
...
CORE-15863
2019-08-06 21:17:47 +02:00
Mark Jansen
7c45a646e9
[WIN32SS] Iteratively mutate menu flags until we find a 'best fit'
...
CORE-15863
2019-08-06 21:17:47 +02:00
Mark Jansen
a59df3858c
[WIN32SS] Rewrite MENU_ShowPopup to take the exclude rectangle into account
...
CORE-15863
2019-08-06 21:17:35 +02:00
Katayama Hirofumi MZ
4414f45cc0
[WIN32SS][NTUSER] Fix default menu item font weight ( #1804 )
...
CORE-16294
We had added "Arial Black" font, so a request for heavy weight font will be realized as it is. This PR will fix font weight (FW_*) calculation of default menu items.
2019-08-05 23:16:01 +09:00
Katayama Hirofumi MZ
6642dbc470
[WIN32SS][NTGDI][NTUSER] Make gusLanguageID USHORT ( #1776 )
...
Every language ID is an unsigned integer.
- Make gusLanguageID unsigned.
- Make the return value type of UserGetLanguageID unsigned.
2019-07-31 22:24:01 +09:00
Timo Kreuzer
08c6d21e1f
[REACTOS] Fix warning C4146: unary minus operator applied to unsigned type, result still unsigned
2019-07-27 11:21:28 +02:00
Katayama Hirofumi MZ
1e91a1690d
[USER32][NTUSER] Fix menu arrow drawing (of DrawFrameControl) ( #1752 )
...
CORE-13211
user32!DrawFrameControl drawed invalid menu arrow when the width is shorter than the height.
- Use the squared rectangle.
- Draw it in the transparent background mode.
- Save the old background mode of HDC.
This PR will fix UltraISO's bug.
2019-07-25 01:40:33 +09:00
Hermès Bélusca-Maïto
78d20a9b3a
[WIN32K] Fix spelling typo.
2019-06-23 02:12:23 +02:00
Joachim Henze
1158c24194
[WIN32SS] Fix multiple scrollbar redraw issues
...
This fixes:
- CORE-15911 "Scrollbars do not dissapear when Maximizing and not needed"
- CORE-10617 "ListView corrupt scrollbar upon resizing the column-header"
and will appease regression:
- CORE-15429 "Uninitialized scrollbars in 'My Computer'"
By applying clientFix.patch from CORE-15911 contributed by JIRA-user 'I_Kill_Bugs'.
https://reactos.org/testman/compare.php?ids=66723,66729
Earlier I already committed this fix into 0.4.12-RC-9-g
5ac548544f
2019-06-22 22:27:23 +02:00
jimtabor
8c7705eb5d
[Win32SS] Complete Print Driver Callbacks
...
This callback works. Haven't commit the rest yet. Still thinking about
the data packets types and shapes. Using wordpad to test this. It works,
loads and unloads due to incomplete driver support and no PDEV. It
crashes in ComCtl32 while loading a text file. When this gets committed
without a solution, the code will be commented out.
2019-06-22 12:02:51 -05:00
James Tabor
40c42305c3
[Win32SS] Add Driver Callback
...
Add user driver callback to be used later on.
2019-06-21 13:10:03 -05:00
Mark Jansen
04712d418c
[WIN32K] Use KeStackAttachProcess
2019-06-15 21:26:41 +02:00
Mark Jansen
97d1590914
[WIN32K] Attach to the target process before unhooking
...
CORE-16083
2019-06-15 21:26:41 +02:00
Mark Jansen
7a3937ddaf
[WIN32K] Fix indenting in IntRemoveHook
2019-06-15 21:26:35 +02:00
Joachim Henze
3cc50cedaf
[WIN32SS][NTUSER] Addendum to 0.4.12-dev-956-g0197c4f CORE-15893
...
Aims PixelPerfection for a regression that was introduced by
0.4.12-dev-954-g
1f619b2781
and then improved already by
0.4.12-dev-956-g
0197c4f875
The tweaking got ack of Jim Tabor. Test results:
https://reactos.org/testman/compare.php?ids=68026,68029
2019-06-10 15:33:31 +02:00
James Tabor
931c72fde5
[NtUser] Fix Clipboard Synthesized Returns
...
Add supported for Meta file synthesized renderings.
See CORE-12143.
2019-06-01 07:23:58 -05:00
jimtabor
da264743e1
[Win32SS] Support Clipboard Metafile
...
Major fix ups and plugging in missing code changes. Handle code is from
another project currently being developed for ReactOS.
See CORE-12143
2019-05-31 21:44:17 -05:00
Katayama Hirofumi MZ
cba1a2f742
[WIN32SS][NTUSER] Fix msvc-x64 build
2019-05-23 08:32:41 +09:00
jimtabor
0f29b3faa7
[NtUser] Fix setting screen size.
...
Back set change size to the server information metrics.
Fixes CORE-15477. Still more work is required.
Patch based on reactosfanboy original patch.
2019-05-21 16:24:52 -05:00
jimtabor
2161dd85dc
[NtUser] Fix Paint Messages
...
This is a HACK for forcing painting of non client areas. Paint code
seems very restricted.
See CORE-7166 & CORE-15934.
2019-05-13 11:31:58 -05:00
Serge Gautherie
cf48f8bf8a
[REACTOS] Replace remnant legacy SPIF_SENDWININICHANGE by SPIF_SENDCHANGE ( #1526 )
...
No functional change otherwise.
2019-04-28 21:19:42 +02:00
Andrew Boyarshin
458a26ab76
[WIN32SS:NTUSER] Use the 2nd parameter of NtUserGetThreadDesktop() as fallback. ( #1065 )
...
- The 2nd parameter is already passed in user-mode by GetThreadDesktop().
It is then used by NtUserGetThreadDesktop() as a fallback for console
threads.
- Lookup and validate the thread by using the IntTID2PTI() helper.
- Don't reference the desktop with too many access rights.
- Get rid of the old-school DECLARE_RETURN() & co. macros.
Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
2019-04-28 19:27:45 +02:00
jimtabor
feb9c045cf
[NtGDI] Update Region code
...
Wine Sync/Port and update for Regions. See CORE-15906.
2019-04-17 14:43:24 -05:00
Katayama Hirofumi MZ
94a42d43b5
[WIN32SS][NTUSER] Fix message time ( #1259 )
...
Fix CORE-15565 and make #1245 GetMessageTime testcase successful. CORE-15565
- Erase MsqCalculateMessageTime function.
- Use (DWORD)EngGetTickCount() instead.
- Ghosting is temporarily disabled.
2019-04-12 07:56:04 +09:00
jimtabor
cfdf36e442
[NtUser] Fix Theme Non Client Painting.
...
See CORE-7166 & CORE-15934.
2019-04-10 20:52:01 -05:00
Maxim Smirnov
ffb4b674c7
[FONT] Fix FontSmoothing
2019-04-07 01:42:29 +02:00
jimtabor
0197c4f875
[NtUser] Fix maximizing to window edge
...
Cover up the edge of the frame while maximizing the window to desktop.
Fixes CORE-15893.
2019-03-27 17:39:04 -05:00
jimtabor
1f619b2781
[Win32SS] Fix maximized window positioning.
...
Fix CORE-5177 TaskMgr and ProcExp possionong when maximized.
2019-03-26 15:56:57 -05:00
jimtabor
68df5a50e6
[NtUser] Support SWP_FRAMECHANGED
...
Implement SWP_FRAMECHANGED support for non-changing window to force a
redraw.
Patch dedicated to Katayama Hirofumi MZ.
2019-03-18 17:28:33 -05:00
Timo Kreuzer
ba893e1172
[WIN32K] Keep a reference on an ETHREAD while THREADINFO exists
2019-03-10 11:14:40 +01:00
Mark Jansen
d7ae8690ab
[WIN32K:NTUSER] Do not try to reposition an off-screen menu as if it were a popup menu
...
CORE-15733
2019-02-16 15:45:46 +01:00
Hermès Bélusca-Maïto
7bbf8ae688
[WIN32SS:NTUSER] Bugcheck in case two mandatory initialization steps are not fulfilled.
...
- Bugcheck VIDEO_DRIVER_INIT_FAILURE in case initializing video fails.
- Bugcheck WIN32K_INIT_OR_RIT_FAILURE (Windows-compatible) in case
the USER subsystem version does not match.
2019-02-10 22:44:24 +01:00
Mark Jansen
e022d8d7cb
[WIN32SS] Require at least the amount of extra memory, not the exact amount
...
This fixes Civ II trying to create scrollbars based on 'native' scrollbars.
2019-01-21 22:25:29 +01:00
Katayama Hirofumi MZ
efe4605177
[WIN32SS][NTUSER] Fix caret position of Ghostscript ( #1271 )
...
CORE-13934, CORE-15656
2019-01-20 23:11:54 +09:00
Denis Malikov
37af78775d
[WIN32SS:NTUSER] Fix Window-snap madness ( #1246 )
...
Desktop window was treated as possible to resize.
Fix for 7e396787
CORE-15624
2019-01-19 23:05:19 +01:00
Katayama Hirofumi MZ
d0d909245f
[WIN32SS][NTUSER] Refactor PR #1226 ( #1266 )
...
Refactoring of #1226 . CORE-12845
2019-01-19 23:56:33 +09:00
Katayama Hirofumi MZ
87bfbb3ec7
[WIN32SS][NTUSER] Fix PostTimeMessage message time
2019-01-16 22:59:36 +02:00
Denis Malikov
7e396787ed
[WIN32SS:NTUSER] Implement "Window Snap" feature ( #1226 )
...
Implemented the following actions: stick the window on the left/right or maximize it,
with the following shortcuts:
- Win key + Arrows;
- drag to left/right screen border;
- double-click on top/bottom.
CORE-12845
2019-01-15 14:36:41 +01:00
Mark Jansen
007ec0310c
[WIN32K:NTUSER] Fix a case where the menu was off-screen on the other side
...
Found by Denis Malikov
CORE-15001
CORE-9037
2019-01-15 14:34:53 +02:00
Katayama Hirofumi MZ
8ca854251a
[WIN32SS][NTUSER] Don't freeze Task Bar in switching the app ( #1243 )
...
This avoids taskbar hung up.
2019-01-15 13:45:28 +09:00
Mark Jansen
d2626f0c2a
[WIN32K:NTUSER] Find a better position for a menu that is off-screen
...
Previously, we would just stick the menu on the edge of the screen.
We should actually try to flip the menu around the point of origin,
and only when that fails move it to the edge of the screen.
CORE-15001
CORE-9037
2019-01-10 19:55:39 +01:00
Thomas Faber
b2dcb8e0d8
[WIN32K:NTUSER] Avoid dereferencing a null pointer in NC_DoNCPaint. CORE-15569
2019-01-08 11:27:33 +01:00