- UnRef();
-
- m_refData = new wxIconRefData;
-
- wxBitmapHandler *handler = FindHandler(type);
-
- if ( handler )
- return handler->LoadFile(this, filename, type, desiredWidth, desiredHeight);
- else
- return FALSE;
+ wxGDIImageHandler* pHandler = FindHandler(lType);
+ HPS hPs = NULLHANDLE;
+
+ UnRef();
+ m_refData = new wxIconRefData;
+
+ if (pHandler)
+ return(pHandler->Load( this
+ ,rFilename
+ ,hPs
+ ,lType
+ ,nDesiredWidth
+ ,nDesiredHeight
+ ));
+ else
+ return(FALSE);