// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
WXHICON wxIcon::GetHICON() const
{
- wxASSERT( Ok() ) ;
+ wxASSERT( IsOk() ) ;
return (WXHICON) ((wxIconRefData*)m_refData)->GetHICON() ;
}
int wxIcon::GetWidth() const
{
- wxCHECK_MSG( Ok(), -1, wxT("invalid icon") );
+ wxCHECK_MSG( IsOk(), -1, wxT("invalid icon") );
return M_ICONDATA->GetWidth();
}
int wxIcon::GetHeight() const
{
- wxCHECK_MSG( Ok(), -1, wxT("invalid icon") );
+ wxCHECK_MSG( IsOk(), -1, wxT("invalid icon") );
return M_ICONDATA->GetHeight();
}
if( err == noErr )
{
- // If everthing is OK, assign m_refData
+ // If everything is OK, assign m_refData
m_refData = new wxIconRefData( (WXHICON) iconRef, desiredWidth, desiredHeight );
result = true;
}
else
{
wxImage loadimage( filename, type );
- if (loadimage.Ok())
+ if (loadimage.IsOk())
{
if ( desiredWidth == -1 )
desiredWidth = loadimage.GetWidth() ;
if ( icon.LoadFile( name , wxBITMAP_TYPE_ICON_RESOURCE , desiredWidth , desiredHeight ) )
{
bitmap->CopyFromIcon( icon ) ;
- return bitmap->Ok() ;
+ return bitmap->IsOk() ;
}
return false;
}