fix build with gcc 4.3.0

svn path=/trunk/; revision=31986
This commit is contained in:
Christoph von Wittich 2008-01-25 12:13:24 +00:00
parent 89da0c1216
commit 6b4b28c977
3 changed files with 9 additions and 2 deletions

View file

@ -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"

View file

@ -28,6 +28,7 @@
#include "../utility/treedroptarget.h"
#include "../utility/shellbrowserimpl.h"
#include <memory>
/// information structure to hold current shell folder information
struct ShellPathInfo

View file

@ -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);
}