virtual void OnExit()
{
- delete gs_globalCursor;
- gs_globalCursor = NULL;
+ wxDELETE(gs_globalCursor);
}
};
switch ( kind )
{
case wxBITMAP_TYPE_CUR_RESOURCE:
- hcursor = ::LoadCursor(wxGetInstance(), filename.fn_str());
+ hcursor = ::LoadCursor(wxGetInstance(), filename.t_str());
break;
#ifndef __WXWINCE__
case wxBITMAP_TYPE_CUR:
- hcursor = ::LoadCursorFromFile(filename.fn_str());
+ hcursor = ::LoadCursorFromFile(filename.t_str());
break;
#endif
{ false, wxT("WXCURSOR_RIGHT_ARROW") }, // wxCURSOR_RIGHT_ARROW
{ false, wxT("WXCURSOR_BULLSEYE") }, // wxCURSOR_BULLSEYE
{ true, IDC_ARROW }, // WXCURSOR_CHAR
-
- // Displays as an I-beam on XP, so use a cursor file
-// { true, IDC_CROSS }, // WXCURSOR_CROSS
- { false, wxT("WXCURSOR_CROSS") }, // WXCURSOR_CROSS
-
- // See special handling below for wxCURSOR_HAND
-// { false, wxT("WXCURSOR_HAND") }, // wxCURSOR_HAND
+ { true, IDC_CROSS }, // WXCURSOR_CROSS
{ true, IDC_HAND }, // wxCURSOR_HAND
-
{ true, IDC_IBEAM }, // WXCURSOR_IBEAM
{ true, IDC_ARROW }, // WXCURSOR_LEFT_BUTTON
{ false, wxT("WXCURSOR_MAGNIFIER") }, // wxCURSOR_MAGNIFIER
void wxSetCursor(const wxCursor& cursor)
{
- if ( cursor.Ok() )
+ if ( cursor.IsOk() )
{
::SetCursor(GetHcursorOf(cursor));