git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28875
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
18 files changed:
}
WXHDC GetHDC() const { return m_hDC; }
}
WXHDC GetHDC() const { return m_hDC; }
- void SetHDC(WXHDC dc, bool bOwnsDC = FALSE)
+ void SetHDC(WXHDC dc, bool bOwnsDC = false)
{
m_hDC = dc;
m_bOwnsDC = bOwnsDC;
{
m_hDC = dc;
m_bOwnsDC = bOwnsDC;
virtual void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y);
virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
virtual void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y);
virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y);
virtual void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y,
virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y);
virtual void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y,
virtual bool DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
wxDC *source, wxCoord xsrc, wxCoord ysrc,
virtual bool DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
wxDC *source, wxCoord xsrc, wxCoord ysrc,
- int rop = wxCOPY, bool useMask = FALSE, wxCoord xsrcMask = -1, wxCoord ysrcMask = -1);
+ int rop = wxCOPY, bool useMask = false, wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord);
// this is gnarly - we can't even call this function DoSetClippingRegion()
// because of virtual function hiding
// this is gnarly - we can't even call this function DoSetClippingRegion()
// because of virtual function hiding
// (tell windows to translate pixel from other palettes to our custom one
// and vice versa)
// Realize tells it to also reset the system palette to this one.
// (tell windows to translate pixel from other palettes to our custom one
// and vice versa)
// Realize tells it to also reset the system palette to this one.
- void DoSelectPalette(bool realize = FALSE);
+ void DoSelectPalette(bool realize = false);
// Find out what palette our parent window has, then select it into the dc
void InitializePalette();
// Find out what palette our parent window has, then select it into the dc
void InitializePalette();
{
public:
// Create a printer DC (obsolete function: use wxPrintData version now)
{
public:
// Create a printer DC (obsolete function: use wxPrintData version now)
- wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = TRUE, int orientation = wxPORTRAIT);
+ wxPrinterDC(const wxString& driver, const wxString& device, const wxString& output, bool interactive = true, int orientation = wxPORTRAIT);
// Create from print data
wxPrinterDC(const wxPrintData& data);
// Create from print data
wxPrinterDC(const wxPrintData& data);
protected:
virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
protected:
virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
virtual bool DoBlit(wxCoord xdest, wxCoord ydest,
wxCoord width, wxCoord height,
wxDC *source, wxCoord xsrc, wxCoord ysrc,
virtual bool DoBlit(wxCoord xdest, wxCoord ydest,
wxCoord width, wxCoord height,
wxDC *source, wxCoord xsrc, wxCoord ysrc,
- int rop = wxCOPY, bool useMask = FALSE, wxCoord xsrcMask = -1, wxCoord ysrcMask = -1);
+ int rop = wxCOPY, bool useMask = false, wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord);
// init the dc
void Init();
// init the dc
void Init();
wxScreenDC();
// Compatibility with X's requirements for drawing on top of all windows
wxScreenDC();
// Compatibility with X's requirements for drawing on top of all windows
- static bool StartDrawingOnTop(wxWindow* WXUNUSED(window)) { return TRUE; }
- static bool StartDrawingOnTop(wxRect* WXUNUSED(rect) = NULL) { return TRUE; }
- static bool EndDrawingOnTop() { return TRUE; }
+ static bool StartDrawingOnTop(wxWindow* WXUNUSED(window)) { return true; }
+ static bool StartDrawingOnTop(wxRect* WXUNUSED(rect) = NULL) { return true; }
+ static bool EndDrawingOnTop() { return true; }
protected:
virtual void DoGetSize(int *width, int *height) const;
protected:
virtual void DoGetSize(int *width, int *height) const;
// Calls that both can make
virtual bool Disconnect(void);
// Calls that both can make
virtual bool Disconnect(void);
- // Default behaviour is to delete connection and return TRUE
+ // Default behaviour is to delete connection and return true
virtual bool OnDisconnect(void);
public:
virtual bool OnDisconnect(void);
public:
wxDDEServer(void);
~wxDDEServer(void);
wxDDEServer(void);
~wxDDEServer(void);
- bool Create(const wxString& server_name); // Returns FALSE if can't create server (e.g. port
+ bool Create(const wxString& server_name); // Returns false if can't create server (e.g. port
// number is already in use)
virtual wxConnectionBase *OnAcceptConnection(const wxString& topic);
// number is already in use)
virtual wxConnectionBase *OnAcceptConnection(const wxString& topic);
// -------------------------------
// override some base class virtuals
// -------------------------------
// override some base class virtuals
- virtual bool Show(bool show = TRUE);
+ virtual bool Show(bool show = true);
// use the other ctor
wxDEPRECATED( wxDialog(wxWindow *parent,
const wxString& title, bool modal,
// use the other ctor
wxDEPRECATED( wxDialog(wxWindow *parent,
const wxString& title, bool modal,
- int x = -1, int y= -1, int width = 500, int height = 500,
+ int x = wxDefaultCoord, int y = wxDefaultCoord, int width = 500, int height = 500,
long style = wxDEFAULT_DIALOG_STYLE,
const wxString& name = wxDialogNameStr) );
long style = wxDEFAULT_DIALOG_STYLE,
const wxString& name = wxDialogNameStr) );
// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_DIRDLG_H_
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_DIRDLG_H_
// Name: display.h
// Purpose: wxDisplay class customization for WXMSW
// Author: Royce Mitchell III
// Name: display.h
// Purpose: wxDisplay class customization for WXMSW
// Author: Royce Mitchell III
// Created: 06/21/02
// RCS-ID: $Id$
// Copyright: (c) wxWidgets team
// Created: 06/21/02
// RCS-ID: $Id$
// Copyright: (c) wxWidgets team
wxArrayVideoModes DoGetModesWindows(const wxVideoMode& modeMatch) const;
bool DoChangeModeWindows(const wxVideoMode& mode);
wxArrayVideoModes DoGetModesWindows(const wxVideoMode& modeMatch) const;
bool DoChangeModeWindows(const wxVideoMode& mode);
DECLARE_NO_COPY_CLASS(wxDisplay)
};
DECLARE_NO_COPY_CLASS(wxDisplay)
};
// Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image.
// Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image.
- bool BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen = FALSE, wxRect* rect = (wxRect*) NULL);
+ bool BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen = false, wxRect* rect = (wxRect*) NULL);
// Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image. This is full screen only. fullScreenRect gives the
// Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image. This is full screen only. fullScreenRect gives the
// TODO: don't duplicate wxPaintDC code here!!
wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0)
// TODO: don't duplicate wxPaintDC code here!!
wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0)
m_hDC = (WXHDC)::CreateCompatibleDC(dc ? GetHdcOf(*dc) : NULL);
// as we created the DC, we must delete it in the dtor
m_hDC = (WXHDC)::CreateCompatibleDC(dc ? GetHdcOf(*dc) : NULL);
// as we created the DC, we must delete it in the dtor
m_hDC = wxGetPrinterDC(printData);
}
m_hDC = wxGetPrinterDC(printData);
}
- m_ok = m_hDC ? TRUE: FALSE;
+ m_ok = m_hDC ? true: false;
// as we created it, we must delete it as well
// as we created it, we must delete it as well
{
m_printData = printData;
{
m_printData = printData;
- m_isInteractive = FALSE;
+ m_isInteractive = false;
m_hDC = wxGetPrinterDC(printData);
m_ok = m_hDC != 0;
m_hDC = wxGetPrinterDC(printData);
m_ok = m_hDC != 0;
wxPrinterDC::wxPrinterDC(WXHDC dc)
{
wxPrinterDC::wxPrinterDC(WXHDC dc)
{
- m_isInteractive = FALSE;
+ m_isInteractive = false;
- m_bOwnsDC = TRUE;
- m_ok = TRUE;
+ m_bOwnsDC = true;
+ m_ok = true;
}
void wxPrinterDC::Init()
}
void wxPrinterDC::Init()
int ret = ::StartDoc(GetHdc(), &docinfo);
int ret = ::StartDoc(GetHdc(), &docinfo);
if (pd.hDevNames)
GlobalFree(pd.hDevNames);
if (pd.hDevNames)
GlobalFree(pd.hDevNames);
wxDIB dib(bmp);
bool ok = dib.IsOk();
if ( !ok )
wxDIB dib(bmp);
bool ok = dib.IsOk();
if ( !ok )
DIBSECTION ds;
if ( !::GetObject(dib.GetHandle(), sizeof(ds), &ds) )
{
wxLogLastError(_T("GetObject(DIBSECTION)"));
DIBSECTION ds;
if ( !::GetObject(dib.GetHandle(), sizeof(ds), &ds) )
{
wxLogLastError(_T("GetObject(DIBSECTION)"));
}
// ok, we've got all data we need, do blit it
}
// ok, we've got all data we need, do blit it
{
wxLogLastError(wxT("StretchDIBits"));
{
wxLogLastError(wxT("StretchDIBits"));
wxDDEServer::~wxDDEServer()
{
wxDDEServer::~wxDDEServer()
{
+ if ( !m_serviceName.IsEmpty() )
{
HSZ hsz = DDEAtomFromString(m_serviceName);
{
HSZ hsz = DDEAtomFromString(m_serviceName);
size = wxStrlen(data) + 1;
}
size = wxStrlen(data) + 1;
}
- bool ok = DdeClientTransaction((LPBYTE)data,
+ bool ok = DdeClientTransaction((LPBYTE)data,
size * sizeof(wxChar),
GetHConv(),
NULL,
size * sizeof(wxChar),
GetHConv(),
NULL,
}
HSZ item_atom = DDEGetAtom(item);
}
HSZ item_atom = DDEGetAtom(item);
- bool ok = DdeClientTransaction((LPBYTE)data,
+ bool ok = DdeClientTransaction((LPBYTE)data,
size * sizeof(wxChar),
GetHConv(),
item_atom, format,
size * sizeof(wxChar),
GetHConv(),
item_atom, format,
- Create(parent, -1, title, wxPoint(x, y), wxSize(w, h), style, name);
+ Create(parent, wxID_ANY, title, wxPoint(x, y), wxSize(w, h), style, name);
}
void wxDialog::SetModal(bool WXUNUSED(flag))
}
void wxDialog::SetModal(bool WXUNUSED(flag))
virtual bool HangUp();
virtual bool IsAlwaysOnline() const;
virtual bool IsOnline() const;
virtual bool HangUp();
virtual bool IsAlwaysOnline() const;
virtual bool IsOnline() const;
- virtual void SetOnlineStatus(bool isOnline = TRUE);
+ virtual void SetOnlineStatus(bool isOnline = true);
virtual bool EnableAutoCheckOnlineStatus(size_t nSeconds);
virtual void DisableAutoCheckOnlineStatus();
virtual void SetWellKnownHost(const wxString& hostname, int port);
virtual bool EnableAutoCheckOnlineStatus(size_t nSeconds);
virtual void DisableAutoCheckOnlineStatus();
virtual void SetWellKnownHost(const wxString& hostname, int port);
static HRASCONN FindActiveConnection();
// notify the application about status change
static HRASCONN FindActiveConnection();
// notify the application about status change
- void NotifyApp(bool connected, bool fromOurselves = FALSE) const;
+ void NotifyApp(bool connected, bool fromOurselves = false) const;
// destroy the thread data and the thread itself
void CleanUpThreadData();
// destroy the thread data and the thread itself
void CleanUpThreadData();
- NotifyApp(FALSE /* !connected */, TRUE /* we dialed ourselves */);
+ NotifyApp(false /* !connected */, true /* we dialed ourselves */);
}
else if ( rasconnstate == RASCS_Connected )
{
}
else if ( rasconnstate == RASCS_Connected )
{
- NotifyApp(TRUE /* connected */, TRUE /* we dialed ourselves */);
+ NotifyApp(true /* connected */, true /* we dialed ourselves */);
bool async)
{
// check preconditions
bool async)
{
// check preconditions
- wxCHECK_MSG( IsOk(), FALSE, wxT("using uninitialized wxDialUpManager") );
+ wxCHECK_MSG( IsOk(), false, wxT("using uninitialized wxDialUpManager") );
if ( ms_hRasConnection )
{
wxFAIL_MSG(wxT("there is already an active connection"));
if ( ms_hRasConnection )
{
wxFAIL_MSG(wxT("there is already an active connection"));
}
// get the default ISP if none given
}
// get the default ISP if none given
// no known ISPs, abort
wxLogError(_("Failed to connect: no ISP to dial."));
// no known ISPs, abort
wxLogError(_("Failed to connect: no ISP to dial."));
case 1:
// only one ISP, choose it
case 1:
// only one ISP, choose it
if ( !entryName )
{
// cancelled by user
if ( !entryName )
{
// cancelled by user
{
wxLogError(_("Failed to connect: missing username/password."));
{
wxLogError(_("Failed to connect: missing username/password."));
}
// for async dialing, we're not yet connected
if ( !async )
{
}
// for async dialing, we're not yet connected
if ( !async )
{
}
bool wxDialUpManagerMSW::IsDialing() const
}
bool wxDialUpManagerMSW::IsDialing() const
if ( !GetDialer() )
{
// silently ignore
if ( !GetDialer() )
{
// silently ignore
}
wxASSERT_MSG( ms_hRasConnection, wxT("dialing but no connection?") );
}
wxASSERT_MSG( ms_hRasConnection, wxT("dialing but no connection?") );
bool wxDialUpManagerMSW::HangUp()
{
bool wxDialUpManagerMSW::HangUp()
{
- wxCHECK_MSG( IsOk(), FALSE, wxT("using uninitialized wxDialUpManager") );
+ wxCHECK_MSG( IsOk(), false, wxT("using uninitialized wxDialUpManager") );
// we may terminate either the connection we initiated or another one which
// is active now
// we may terminate either the connection we initiated or another one which
// is active now
{
wxLogError(_("Cannot hang up - no active dialup connection."));
{
wxLogError(_("Cannot hang up - no active dialup connection."));
}
DWORD dwRet = ms_pfnRasHangUp(hRasConn);
}
DWORD dwRet = ms_pfnRasHangUp(hRasConn);
GetErrorString(dwRet).c_str());
}
GetErrorString(dwRet).c_str());
}
- ms_isConnected = FALSE;
+ ms_isConnected = false;
}
bool wxDialUpManagerMSW::IsAlwaysOnline() const
{
// assume no permanent connection by default
}
bool wxDialUpManagerMSW::IsAlwaysOnline() const
{
// assume no permanent connection by default
- bool isAlwaysOnline = FALSE;
+ bool isAlwaysOnline = false;
// try to use WinInet functions
// try to use WinInet functions
bool wxDialUpManagerMSW::IsOnline() const
{
bool wxDialUpManagerMSW::IsOnline() const
{
- wxCHECK_MSG( IsOk(), FALSE, wxT("using uninitialized wxDialUpManager") );
+ wxCHECK_MSG( IsOk(), false, wxT("using uninitialized wxDialUpManager") );
if ( IsAlwaysOnline() )
{
if ( IsAlwaysOnline() )
{
- // return TRUE if there is at least one active connection
+ // return true if there is at least one active connection
return FindActiveConnection() != 0;
}
}
return FindActiveConnection() != 0;
}
}
bool wxDialUpManagerMSW::EnableAutoCheckOnlineStatus(size_t nSeconds)
{
bool wxDialUpManagerMSW::EnableAutoCheckOnlineStatus(size_t nSeconds)
{
- wxCHECK_MSG( IsOk(), FALSE, wxT("using uninitialized wxDialUpManager") );
+ wxCHECK_MSG( IsOk(), false, wxT("using uninitialized wxDialUpManager") );
if ( m_autoCheckLevel++ )
{
// already checking
if ( m_autoCheckLevel++ )
{
// already checking
}
bool ok = ms_pfnRasConnectionNotification != 0;
}
bool ok = ms_pfnRasConnectionNotification != 0;
if ( m_hThread != 0 )
{
if ( ::ResumeThread(m_hThread) != (DWORD)-1 )
if ( m_hThread != 0 )
{
if ( ::ResumeThread(m_hThread) != (DWORD)-1 )
// we're leaving a zombie thread... but what else can we do?
wxLogLastError(wxT("ResumeThread(RasThread)"));
// we're leaving a zombie thread... but what else can we do?
wxLogLastError(wxT("ResumeThread(RasThread)"));
if ( ok )
{
// first create an event to wait on
if ( ok )
{
// first create an event to wait on
- m_data->hEventRas = CreateEvent
+ m_data->hEventRas = ::CreateEvent
(
NULL, // security attribute (default)
FALSE, // manual reset (no, it is automatic)
(
NULL, // security attribute (default)
FALSE, // manual reset (no, it is automatic)
{
wxLogLastError(wxT("CreateEvent(RasStatus)"));
{
wxLogLastError(wxT("CreateEvent(RasStatus)"));
// here avoids problems with missing the event if wxDialUpManagerMSW
// is created and destroyed immediately, before wxRasStatusWindowProc
// starts waiting on the event
// here avoids problems with missing the event if wxDialUpManagerMSW
// is created and destroyed immediately, before wxRasStatusWindowProc
// starts waiting on the event
- m_data->hEventQuit = CreateEvent
+ m_data->hEventQuit = ::CreateEvent
(
NULL, // default security
TRUE, // manual event
(
NULL, // default security
TRUE, // manual event
}
m_timerStatusPolling.Start(nSeconds * 1000);
}
m_timerStatusPolling.Start(nSeconds * 1000);
}
void wxDialUpManagerMSW::DisableAutoCheckOnlineStatus()
}
void wxDialUpManagerMSW::DisableAutoCheckOnlineStatus()
handles[0] = data->hEventRas;
handles[1] = data->hEventQuit;
handles[0] = data->hEventRas;
handles[1] = data->hEventQuit;
- DWORD dwRet = WaitForMultipleObjects(2, handles, FALSE, INFINITE);
+ DWORD dwRet = ::WaitForMultipleObjects(2, handles, FALSE, INFINITE);
break;
case WAIT_OBJECT_0 + 1:
break;
case WAIT_OBJECT_0 + 1:
bool wxDirData::Read(wxString *filename)
{
bool wxDirData::Read(wxString *filename)
{
WIN32_FIND_DATA finddata;
#define PTR_TO_FINDDATA (&finddata)
WIN32_FIND_DATA finddata;
#define PTR_TO_FINDDATA (&finddata)
m_finddata = FindFirst(filespec, PTR_TO_FINDDATA);
m_finddata = FindFirst(filespec, PTR_TO_FINDDATA);
}
if ( !IsFindDataOk(m_finddata) )
}
if ( !IsFindDataOk(m_finddata) )
#endif // __WIN32__
//else: not an error, just no (such) files
#endif // __WIN32__
//else: not an error, just no (such) files
#endif // __WIN32__
//else: not an error, just no more (such) files
#endif // __WIN32__
//else: not an error, just no more (such) files
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
delete M_DIR;
m_data = new wxDirData(dirname);
delete M_DIR;
m_data = new wxDirData(dirname);
}
bool wxDir::IsOpened() const
}
bool wxDir::IsOpened() const
const wxString& filespec,
int flags) const
{
const wxString& filespec,
int flags) const
{
- wxCHECK_MSG( IsOpened(), FALSE, _T("must wxDir::Open() first") );
+ wxCHECK_MSG( IsOpened(), false, _T("must wxDir::Open() first") );
bool wxDir::GetNext(wxString *filename) const
{
bool wxDir::GetNext(wxString *filename) const
{
- wxCHECK_MSG( IsOpened(), FALSE, _T("must wxDir::Open() first") );
+ wxCHECK_MSG( IsOpened(), false, _T("must wxDir::Open() first") );
- wxCHECK_MSG( filename, FALSE, _T("bad pointer in wxDir::GetNext()") );
+ wxCHECK_MSG( filename, false, _T("bad pointer in wxDir::GetNext()") );
return M_DIR->Read(filename);
}
return M_DIR->Read(filename);
}
FIND_DATA fd = FindFirst(dirname, &fs);
if ( !IsFindDataOk(fd) )
{
FIND_DATA fd = FindFirst(dirname, &fs);
if ( !IsFindDataOk(fd) )
{
}
*ftAccess = fs.ftLastAccessTime;
}
*ftAccess = fs.ftLastAccessTime;
//
// wParam = TRUE => lParam is a string and not a PIDL
#ifndef __WXWINCE__
//
// wParam = TRUE => lParam is a string and not a PIDL
#ifndef __WXWINCE__
- SendMessage(hwnd, BFFM_SETSELECTION, TRUE, pData);
+ ::SendMessage(hwnd, BFFM_SETSELECTION, TRUE, pData);
-HRESULT WINAPI wxDDEnumModesCallback(LPDDSURFACEDESC lpDDSurfaceDesc,
+HRESULT WINAPI wxDDEnumModesCallback(LPDDSURFACEDESC lpDDSurfaceDesc,
LPVOID lpContext)
{
// we need at least the mode size
LPVOID lpContext)
{
// we need at least the mode size
m_hCursorImageList = 0;
#endif
m_window = (wxWindow*) NULL;
m_hCursorImageList = 0;
#endif
m_window = (wxWindow*) NULL;
else
flags = ILC_COLOR32;
#endif
else
flags = ILC_COLOR32;
#endif
if ( mask )
flags |= ILC_MASK;
if ( mask )
flags |= ILC_MASK;
POINT pt;
pt.x = 0; pt.y = 0;
m_hImageList = (WXHIMAGELIST) ListView_CreateDragImage((HWND) listCtrl.GetHWND(), id, & pt);
POINT pt;
pt.x = 0; pt.y = 0;
m_hImageList = (WXHIMAGELIST) ListView_CreateDragImage((HWND) listCtrl.GetHWND(), id, & pt);
{
wxFAIL_MSG( _T("BeginDrag failed.") );
{
wxFAIL_MSG( _T("BeginDrag failed.") );
}
if (m_cursor.Ok())
{
#if wxUSE_SIMPLER_DRAGIMAGE
}
if (m_cursor.Ok())
{
#if wxUSE_SIMPLER_DRAGIMAGE
- m_oldCursor = window->GetCursor();
- window->SetCursor(m_cursor);
+ m_oldCursor = window->GetCursor();
+ window->SetCursor(m_cursor);
#else
if (!m_hCursorImageList)
#else
if (!m_hCursorImageList)
- {
- int cxCursor = GetSystemMetrics(SM_CXCURSOR);
- int cyCursor = GetSystemMetrics(SM_CYCURSOR);
-
+ {
+ int cxCursor = GetSystemMetrics(SM_CXCURSOR);
+ int cyCursor = GetSystemMetrics(SM_CYCURSOR);
+
m_hCursorImageList = (WXHIMAGELIST) ImageList_Create(cxCursor, cyCursor, ILC_MASK, 1, 1);
}
m_hCursorImageList = (WXHIMAGELIST) ImageList_Create(cxCursor, cyCursor, ILC_MASK, 1, 1);
}
::SetCapture(GetHwndOf(window));
::SetCapture(GetHwndOf(window));
}
// Begin drag. hotspot is the location of the drag position relative to the upper-left
}
// Begin drag. hotspot is the location of the drag position relative to the upper-left
int x = fullScreenRect->GetPosition().x;
int y = fullScreenRect->GetPosition().y;
int x = fullScreenRect->GetPosition().x;
int y = fullScreenRect->GetPosition().y;
wxSize sz = fullScreenRect->GetSize();
if (fullScreenRect->GetParent() && !fullScreenRect->IsKindOf(CLASSINFO(wxFrame)))
wxSize sz = fullScreenRect->GetSize();
if (fullScreenRect->GetParent() && !fullScreenRect->IsKindOf(CLASSINFO(wxFrame)))
rect.x = x; rect.y = y;
rect.width = sz.x; rect.height = sz.y;
rect.x = x; rect.y = y;
rect.width = sz.x; rect.height = sz.y;
- return BeginDrag(hotspot, window, TRUE, & rect);
+ return BeginDrag(hotspot, window, true, & rect);
#if wxUSE_SIMPLER_DRAGIMAGE
if (m_cursor.Ok() && m_oldCursor.Ok())
#if wxUSE_SIMPLER_DRAGIMAGE
if (m_cursor.Ok() && m_oldCursor.Ok())
- m_window->SetCursor(m_oldCursor);
+ m_window->SetCursor(m_oldCursor);
#else
::ShowCursor(TRUE);
#endif
m_window = (wxWindow*) NULL;
#else
::ShowCursor(TRUE);
#endif
m_window = (wxWindow*) NULL;
}
// Move the image: call from OnMouseMove. Pt is in window client coordinates if window
}
// Move the image: call from OnMouseMove. Pt is in window client coordinates if window