Slightly better wxStockCursor usage
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55875 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e58eaff761
commit
2399c87cce
@ -1470,13 +1470,14 @@ void wxCursorProperty::OnCustomPaint( wxDC& dc,
|
|||||||
|
|
||||||
if ( paintdata.m_choiceItem < NUM_CURSORS )
|
if ( paintdata.m_choiceItem < NUM_CURSORS )
|
||||||
{
|
{
|
||||||
int cursorindex = gs_cp_es_syscursors_values[paintdata.m_choiceItem];
|
wxStockCursor cursorIndex =
|
||||||
|
(wxStockCursor) gs_cp_es_syscursors_values[paintdata.m_choiceItem];
|
||||||
|
|
||||||
{
|
{
|
||||||
if ( cursorindex == wxCURSOR_NONE )
|
if ( cursorIndex == wxCURSOR_NONE )
|
||||||
cursorindex = wxCURSOR_ARROW;
|
cursorIndex = wxCURSOR_ARROW;
|
||||||
|
|
||||||
wxCursor cursor( (wxStockCursor)cursorindex );
|
wxCursor cursor( cursorIndex );
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
HDC hDc = (HDC)((const wxMSWDCImpl *)dc.GetImpl())->GetHDC();
|
HDC hDc = (HDC)((const wxMSWDCImpl *)dc.GetImpl())->GetHDC();
|
||||||
|
Loading…
Reference in New Issue
Block a user