m_nWidth = 32;
m_nHeight = 32;
m_hCursor = 0 ;
- m_bDestroyCursor = FALSE;
+ m_bDestroyCursor = false;
}
void wxCursorRefData::Free()
{
}
-wxCursor::wxCursor(
- const char WXUNUSED(bits)[]
-, int WXUNUSED(width)
-, int WXUNUSED(height)
-, int WXUNUSED(hotSpotX)
-, int WXUNUSED(hotSpotY)
-, const char WXUNUSED(maskBits)[]
-)
+wxCursor::wxCursor(const char WXUNUSED(bits)[],
+ int WXUNUSED(width),
+ int WXUNUSED(height),
+ int WXUNUSED(hotSpotX),
+ int WXUNUSED(hotSpotY),
+ const char WXUNUSED(maskBits)[])
{
}
-wxCursor::wxCursor(
- const wxImage& rImage
-)
+wxCursor::wxCursor(const wxImage& rImage)
{
- wxImage vImage32 = rImage.Scale(32,32);
- int nWidth = vImage32.GetWidth();
- int nHeight = vImage32.GetHeight();
+ wxImage vImage32 = rImage.Scale(32,32);
+ int nWidth = vImage32.GetWidth();
+ int nHeight = vImage32.GetHeight();
//
// Need a bitmap handle somehow
//
- HBITMAP hBitmap = wxBitmap(vImage32).GetHBITMAP();
- int nHotSpotX = vImage32.GetOptionInt(wxCUR_HOTSPOT_X);
- int nHotSpotY = vImage32.GetOptionInt(wxCUR_HOTSPOT_Y);
+ HBITMAP hBitmap = wxBitmap(vImage32).GetHBITMAP();
+ int nHotSpotX = vImage32.GetOptionInt(wxIMAGE_OPTION_CUR_HOTSPOT_X);
+ int nHotSpotY = vImage32.GetOptionInt(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
if (nHotSpotX < 0 || nHotSpotX >= nWidth)
- nHotSpotX = 0;
+ nHotSpotX = 0;
if (nHotSpotY < 0 || nHotSpotY >= nHeight)
- nHotSpotY = 0;
+ nHotSpotY = 0;
- wxCursorRefData* pRefData = new wxCursorRefData;
+ wxCursorRefData* pRefData = new wxCursorRefData;
m_refData = pRefData;
pRefData->m_hCursor = (WXHCURSOR) ::WinCreatePointer( HWND_DESKTOP
pRefData = new wxCursorRefData;
m_refData = pRefData;
- pRefData->m_bDestroyCursor = FALSE;
+ pRefData->m_bDestroyCursor = false;
if (lFlags == wxBITMAP_TYPE_CUR_RESOURCE)
{
pRefData->m_hCursor = (WXHCURSOR) ::WinLoadPointer( HWND_DESKTOP
} // end of wxCursor::wxCursor
// Cursors by stock number
-wxCursor::wxCursor(
- int nCursorType
-)
+wxCursor::wxCursor(int nCursorType)
{
wxCursorRefData* pRefData = new wxCursorRefData;
//
// No need to destroy the stock cursors
//
- ((wxCursorRefData *)m_refData)->m_bDestroyCursor = FALSE;
+ ((wxCursorRefData *)m_refData)->m_bDestroyCursor = false;
} // end of wxCursor::wxCursor
// Global cursor setting
pParent->AddChild(this);
hParent = GetWinHwnd(pParent);
- if ( pParent->IsKindOf(CLASSINFO(wxGenericScrolledWindow)) ||
- pParent->IsKindOf(CLASSINFO(wxScrolledWindow))
- )
+ if (pParent->IsKindOf(CLASSINFO(wxScrolledWindow)))
ulCreateFlags |= WS_CLIPSIBLINGS;
}
// which will cause the scrollbars to be displayed via the SetScrollbar
// call in CWindow.
//
- if ( IsKindOf(CLASSINFO(wxGenericScrolledWindow)) ||
- IsKindOf(CLASSINFO(wxScrolledWindow))
- )
+ if (IsKindOf(CLASSINFO(wxScrolledWindow)))
{
int nAdjustWidth = 0;
int nAdjustHeight = 0;
return true;
} // end of wxWindowOS2::HandleEraseBkgnd
-void wxWindowOS2::OnEraseBackground(
- wxEraseEvent& rEvent
-)
+void wxWindowOS2::OnEraseBackground(wxEraseEvent& rEvent)
{
- RECTL vRect;
- HPS hPS = rEvent.m_dc->m_hPS;
- APIRET rc;
- LONG lColor = m_backgroundColour.GetPixel();
+ RECTL vRect;
+ HPS hPS = rEvent.GetDC()->GetHPS();
+ APIRET rc;
+ LONG lColor = m_backgroundColour.GetPixel();
rc = ::WinQueryWindowRect(GetHwnd(), &vRect);
rc = ::WinFillRect(hPS, &vRect, lColor);
// Find the wxWindow at the current mouse position, returning the mouse
// position.
-wxWindow* wxFindWindowAtPointer(
- wxPoint& WXUNUSED(rPt)
-)
+wxWindow* wxFindWindowAtPointer(wxPoint& WXUNUSED(rPt))
{
return wxFindWindowAtPoint(wxGetMousePosition());
}
-wxWindow* wxFindWindowAtPoint(
- const wxPoint& rPt
-)
+wxWindow* wxFindWindowAtPoint(const wxPoint& rPt)
{
POINTL vPt2;