Mobile 5 Smartphone fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2006-03-16 11:03:26 +00:00
parent 3ea19afd1f
commit c1dfa9eb8e
4 changed files with 17 additions and 4 deletions

View File

@ -112,8 +112,8 @@ use the same directory and library names, so for the moment
these builds cannot co-exist simultaneously.
To use Visual Studio 2005, you need to allow VS to convert the projects
first, and then you need to adjust the library settings of
each wxWidgets and sample project.
first (but install all the SDKs you need to _before_ converting), and then
you need to adjust the library settings of each wxWidgets and sample project.
Edit the configuration properties for each configuration and in the Librarian,
add a relative path ..\..\lib to each library path. For example:

View File

@ -22,9 +22,13 @@
// including libraries in project files.
#if defined(__VISUALC__) && defined(__WXWINCE__)
#if (_WIN32_WCE >= 400) || defined(__POCKETPC__)
// No commdlg.lib in Mobile 5.0 Smartphone
#if !(defined(__SMARTPHONE__) && _WIN32_WCE >= 1200)
#pragma comment(lib,"commdlg.lib")
#endif
#endif
#if (_WIN32_WCE >= 400) && !defined(wxNO_RTTI)
#pragma comment(lib,"ccrtrtti.lib")

View File

@ -297,9 +297,14 @@ bool wxDragImage::BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullS
#else
if (!m_hCursorImageList)
{
#ifndef SM_CXCURSOR
// Smartphone may not have these metric symbol
int cxCursor = 16;
int cyCursor = 16;
#else
int cxCursor = ::GetSystemMetrics(SM_CXCURSOR);
int cyCursor = ::GetSystemMetrics(SM_CYCURSOR);
#endif
m_hCursorImageList = (WXHIMAGELIST) ImageList_Create(cxCursor, cyCursor, ILC_MASK, 1, 1);
}

View File

@ -309,8 +309,12 @@ static const int gs_metricsMap[] =
SM_CXBORDER,
SM_CYBORDER,
SM_CXCURSOR,
#ifdef SM_CXCURSOR
SM_CXCURSOR,
SM_CYCURSOR,
#else
-1, -1,
#endif
SM_CXDOUBLECLK,
SM_CYDOUBLECLK,
#if defined(__WIN32__) && defined(SM_CXDRAG)