mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 09:24:11 +00:00
fix build with gcc 4.3.0
svn path=/trunk/; revision=31986
This commit is contained in:
parent
89da0c1216
commit
6b4b28c977
|
@ -28,6 +28,8 @@
|
|||
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
|
||||
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT 1
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#include "utility/utility.h"
|
||||
|
||||
#include "explorer.h"
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
#include "../utility/treedroptarget.h"
|
||||
#include "../utility/shellbrowserimpl.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
/// information structure to hold current shell folder information
|
||||
struct ShellPathInfo
|
||||
|
|
|
@ -677,12 +677,16 @@ struct PopupMenu
|
|||
}
|
||||
|
||||
int PopupContextMenu(HWND hwnd, POINTS pos, UINT flags=TPM_LEFTBUTTON|TPM_RIGHTBUTTON) {
|
||||
POINT pt; POINTSTOPOINT(pt, pos);
|
||||
POINT pt;
|
||||
pt.x = pos.x;
|
||||
pt.y = pos.y;
|
||||
return TrackPopupMenuEx(_hmenu, flags, pt.x, pt.y, hwnd, NULL);
|
||||
}
|
||||
|
||||
int TrackPopupMenu(HWND hwnd, POINTS pos, UINT flags=TPM_LEFTBUTTON|TPM_RIGHTBUTTON) {
|
||||
POINT pt; POINTSTOPOINT(pt, pos);
|
||||
POINT pt;
|
||||
pt.x = pos.x;
|
||||
pt.y = pos.y;
|
||||
ClientToScreen(hwnd, &pt);
|
||||
return TrackPopupMenuEx(_hmenu, flags, pt.x, pt.y, hwnd, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue