mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[Win32k]
- Fix more set active window API tests. The window postion change message with fixed lparam is erroneous. How can the address be the same since it originates from kernel space? svn path=/trunk/; revision=54596
This commit is contained in:
parent
89a93a892d
commit
fc99fd13d2
3 changed files with 15 additions and 1 deletions
|
@ -815,6 +815,13 @@ typedef struct tagDPISERVERINFO
|
|||
UINT wMaxBtnSize; /* 014 */
|
||||
} DPISERVERINFO, *PDPISERVERINFO;
|
||||
|
||||
// PUSIFlags:
|
||||
#define PUSIF_PALETTEDISPLAY 0x01
|
||||
#define PUSIF_SNAPTO 0x02
|
||||
#define PUSIF_COMBOBOXANIMATION 0x04
|
||||
#define PUSIF_LISTBOXSMOOTHSCROLLING 0x08
|
||||
#define PUSIF_KEYBOARDCUES 0x20
|
||||
|
||||
typedef struct _PERUSERSERVERINFO
|
||||
{
|
||||
INT aiSysMet[SM_CMETRICS];
|
||||
|
|
|
@ -63,7 +63,8 @@ co_IntSendActivateMessages(HWND hWndPrev, HWND hWnd, BOOL MouseActivate)
|
|||
if (WindowPrev) UserRefObjectCo(WindowPrev, &RefPrev);
|
||||
|
||||
/* Send palette messages */
|
||||
if (co_IntPostOrSendMessage(hWnd, WM_QUERYNEWPALETTE, 0, 0))
|
||||
if (gpsi->PUSIFlags & PUSIF_PALETTEDISPLAY &&
|
||||
co_IntPostOrSendMessage(hWnd, WM_QUERYNEWPALETTE, 0, 0))
|
||||
{
|
||||
UserSendNotifyMessage( HWND_BROADCAST,
|
||||
WM_PALETTEISCHANGING,
|
||||
|
|
|
@ -306,6 +306,12 @@ co_IntInitializeDesktopGraphics(VOID)
|
|||
gpsi->BitsPixel = NtGdiGetDeviceCaps(ScreenDeviceContext, BITSPIXEL);
|
||||
gpsi->BitCount = gpsi->Planes * gpsi->BitsPixel;
|
||||
gpsi->dmLogPixels = NtGdiGetDeviceCaps(ScreenDeviceContext, LOGPIXELSY);
|
||||
if (NtGdiGetDeviceCaps(ScreenDeviceContext, RASTERCAPS) & RC_PALETTE)
|
||||
{
|
||||
gpsi->PUSIFlags |= PUSIF_PALETTEDISPLAY;
|
||||
}
|
||||
else
|
||||
gpsi->PUSIFlags &= ~PUSIF_PALETTEDISPLAY;
|
||||
// Font is realized and this dc was previously set to internal DC_ATTR.
|
||||
gpsi->cxSysFontChar = IntGetCharDimensions(hSystemBM, &tmw, (DWORD*)&gpsi->cySysFontChar);
|
||||
gpsi->tmSysFont = tmw;
|
||||
|
|
Loading…
Reference in a new issue