git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34241
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
size_t ui = size() - 1; \
do { \
if ( (T*)base_array::operator[](ui) == &Item ) \
size_t ui = size() - 1; \
do { \
if ( (T*)base_array::operator[](ui) == &Item ) \
+ return wx_static_cast(int, ui); \
ui--; \
} \
while ( ui != 0 ); \
ui--; \
} \
while ( ui != 0 ); \
else { \
for( size_t ui = 0; ui < size(); ui++ ) { \
if( (T*)base_array::operator[](ui) == &Item ) \
else { \
for( size_t ui = 0; ui < size(); ui++ ) { \
if( (T*)base_array::operator[](ui) == &Item ) \
+ return wx_static_cast(int, ui); \
/* returns NULL if not found */ \
Node** GetNodePtr( const const_key_type& key ) const \
{ \
/* returns NULL if not found */ \
Node** GetNodePtr( const const_key_type& key ) const \
{ \
- unsigned long hash = m_hasher( key ); \
+ unsigned long hash = wx_static_cast(unsigned long, m_hasher( key )); \
Node** node = &m_table[hash % m_tableBuckets]; \
\
while( *node ) \
Node** node = &m_table[hash % m_tableBuckets]; \
\
while( *node ) \
/* expressing it in terms of GetNodePtr is 5-8% slower :-( */ \
Node* GetNode( const const_key_type& key ) const \
{ \
/* expressing it in terms of GetNodePtr is 5-8% slower :-( */ \
Node* GetNode( const const_key_type& key ) const \
{ \
- unsigned long hash = m_hasher( key ); \
+ unsigned long hash = wx_static_cast(unsigned long, m_hasher( key )); \
Node* node = m_table[hash % m_tableBuckets]; \
\
while( node ) \
Node* node = m_table[hash % m_tableBuckets]; \
\
while( node ) \
const wxString& GetLabel() const { return m_item.m_text; }
const wxString& GetText() const { return m_item.m_text; }
int GetImage() const { return m_item.m_image; }
const wxString& GetLabel() const { return m_item.m_text; }
const wxString& GetText() const { return m_item.m_text; }
int GetImage() const { return m_item.m_image; }
- long GetData() const { return m_item.m_data; }
+ long GetData() const { return wx_static_cast(long, m_item.m_data); }
long GetMask() const { return m_item.m_mask; }
const wxListItem& GetItem() const { return m_item; }
long GetMask() const { return m_item.m_mask; }
const wxListItem& GetItem() const { return m_item; }
- EnumModulesProc(PSTR name, DWORD base, ULONG size, void *data);
+ EnumModulesProc(PSTR name, DWORD64 base, ULONG size, void *data);
};
// ----------------------------------------------------------------------------
};
// ----------------------------------------------------------------------------
/* static */
BOOL CALLBACK
wxDynamicLibraryDetailsCreator::EnumModulesProc(PSTR name,
/* static */
BOOL CALLBACK
wxDynamicLibraryDetailsCreator::EnumModulesProc(PSTR name,
ULONG size,
void *data)
{
ULONG size,
void *data)
{
// hook function for moving the dialog
// ----------------------------------------------------------------------------
// hook function for moving the dialog
// ----------------------------------------------------------------------------
wxFileDialogHookFunction(HWND hDlg,
UINT iMsg,
WPARAM WXUNUSED(wParam),
wxFileDialogHookFunction(HWND hDlg,
UINT iMsg,
WPARAM WXUNUSED(wParam),
#if defined(_WIN32)
::SetWindowLong(m_hNotifyWnd, GWL_WNDPROC,
(LONG)wxAMMediaBackend::NotifyWndProc);
#if defined(_WIN32)
::SetWindowLong(m_hNotifyWnd, GWL_WNDPROC,
(LONG)wxAMMediaBackend::NotifyWndProc);
+ ::SetWindowLong(m_hNotifyWnd, GWL_USERDATA,
+ (LONG) this);
#else
::SetWindowLongPtr(m_hNotifyWnd, GWLP_WNDPROC,
(LONG_PTR)wxAMMediaBackend::NotifyWndProc);
#else
::SetWindowLongPtr(m_hNotifyWnd, GWLP_WNDPROC,
(LONG_PTR)wxAMMediaBackend::NotifyWndProc);
+ ::SetWindowLongPtr(m_hNotifyWnd, GWL_USERDATA,
+ (LONG) this);
- ::SetWindowLong(m_hNotifyWnd, GWL_USERDATA,
- (LONG) this);
wxAMVERIFY( m_pME->SetNotifyWindow((LONG_PTR)m_hNotifyWnd,
WM_GRAPHNOTIFY, 0) );
wxAMVERIFY( m_pME->SetNotifyWindow((LONG_PTR)m_hNotifyWnd,
WM_GRAPHNOTIFY, 0) );
LPARAM lParam)
{
wxMCIMediaBackend* backend = (wxMCIMediaBackend*)
LPARAM lParam)
{
wxMCIMediaBackend* backend = (wxMCIMediaBackend*)
::GetWindowLong(hWnd, GWL_USERDATA);
::GetWindowLong(hWnd, GWL_USERDATA);
+#else
+ ::GetWindowLongPtr(hWnd, GWLP_USERDATA);
+#endif
wxASSERT(backend);
return backend->OnNotifyWndProc(hWnd, nMsg, wParam, lParam);
wxASSERT(backend);
return backend->OnNotifyWndProc(hWnd, nMsg, wParam, lParam);
// ----------------------------------------------------------------------------
// timer callback used for all timers
// ----------------------------------------------------------------------------
// timer callback used for all timers
-void WINAPI wxTimerProc(HWND hwnd, UINT msg, UINT idTimer, DWORD dwTime);
+void WINAPI wxTimerProc(HWND hwnd, UINT msg, UINT_PTR idTimer, DWORD dwTime);
// ----------------------------------------------------------------------------
// macros
// ----------------------------------------------------------------------------
// macros
void WINAPI
wxTimerProc(HWND WXUNUSED(hwnd),
UINT WXUNUSED(msg),
void WINAPI
wxTimerProc(HWND WXUNUSED(hwnd),
UINT WXUNUSED(msg),
DWORD WXUNUSED(dwTime))
{
wxTimerMap::iterator node = TimerMap().find((unsigned long)idTimer);
DWORD WXUNUSED(dwTime))
{
wxTimerMap::iterator node = TimerMap().find((unsigned long)idTimer);
{
#if defined(__WIN64__)
MEMORYSTATUSEX memStatex;
{
#if defined(__WIN64__)
MEMORYSTATUSEX memStatex;
- statex.dwLength = sizeof (statex);
- ::GlobalMemoryStatusEx (&statex);
- return (wxMemorySize)memStatus.ullAvailPhys;
+ memStatex.dwLength = sizeof (memStatex);
+ ::GlobalMemoryStatusEx (&memStatex);
+ return (wxMemorySize)memStatex.ullAvailPhys;
#else /* if defined(__WIN32__) */
MEMORYSTATUS memStatus;
memStatus.dwLength = sizeof(MEMORYSTATUS);
#else /* if defined(__WIN32__) */
MEMORYSTATUS memStatus;
memStatus.dwLength = sizeof(MEMORYSTATUS);