mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
Remove some unnecessary uses of windowsx.h
This commit is contained in:
parent
417067bb0d
commit
d5816d2202
@ -20,7 +20,6 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
#include <commctrl.h>
|
||||
|
||||
#include "wine/test.h"
|
||||
@ -278,7 +277,9 @@ static void ET2_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify)
|
||||
static LRESULT CALLBACK ET2_WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch (iMsg) {
|
||||
HANDLE_MSG(hwnd, WM_COMMAND, ET2_OnCommand);
|
||||
case WM_COMMAND:
|
||||
ET2_OnCommand(hwnd, LOWORD(wParam), (HWND)lParam, HIWORD(wParam));
|
||||
break;
|
||||
}
|
||||
return DefWindowProc(hwnd, iMsg, wParam, lParam);
|
||||
}
|
||||
|
@ -23,7 +23,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "windows.h"
|
||||
#include "windowsx.h"
|
||||
#include "progman.h"
|
||||
|
||||
/***********************************************************************
|
||||
|
@ -22,7 +22,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "windows.h"
|
||||
#include "windowsx.h"
|
||||
#include "progman.h"
|
||||
|
||||
GLOBALS Globals;
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
#include <string.h>
|
||||
#include "windows.h"
|
||||
#include "windowsx.h"
|
||||
#include "progman.h"
|
||||
|
||||
/***********************************************************************
|
||||
|
@ -38,7 +38,6 @@
|
||||
#include <shlguid.h>
|
||||
#include <shlwapi.h>
|
||||
#include <shlobj.h>
|
||||
#include <windowsx.h>
|
||||
#include <mmsystem.h>
|
||||
#include <mmreg.h>
|
||||
#include <mmddk.h>
|
||||
@ -699,8 +698,8 @@ AudioDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
DWORD dwPos = GetMessagePos();
|
||||
HWND tree = ((LPNMHDR)lParam)->hwndFrom;
|
||||
ZeroMemory(&ht, sizeof(ht));
|
||||
ht.pt.x = GET_X_LPARAM(dwPos);
|
||||
ht.pt.y = GET_Y_LPARAM(dwPos);
|
||||
ht.pt.x = (short)LOWORD(dwPos);
|
||||
ht.pt.y = (short)HIWORD(dwPos);
|
||||
MapWindowPoints(HWND_DESKTOP, tree, &ht.pt, 1);
|
||||
SendMessageW( tree, TVM_HITTEST, 0, (LPARAM)&ht );
|
||||
if (TVHT_ONITEMSTATEICON & ht.flags)
|
||||
@ -735,8 +734,8 @@ AudioDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
HWND tree = ((LPNMHDR)lParam)->hwndFrom;
|
||||
POINT pt;
|
||||
ZeroMemory(&ht, sizeof(ht));
|
||||
pt.x = GET_X_LPARAM(dwPos);
|
||||
pt.y = GET_Y_LPARAM(dwPos);
|
||||
pt.x = (short)LOWORD(dwPos);
|
||||
pt.y = (short)HIWORD(dwPos);
|
||||
ht.pt = pt;
|
||||
MapWindowPoints(HWND_DESKTOP, tree, &ht.pt, 1);
|
||||
SendMessageW( tree, TVM_HITTEST, 0, (LPARAM)&ht );
|
||||
|
Loading…
Reference in New Issue
Block a user