bool Win32_Cursor::_create(chstr filename) { if (filename == "") { return false; } hstr path, archivePath = hresource::getArchive(); if (archivePath != "") { path = hdir::joinPath(archivePath, filename); } else { path = filename; } if (!Cursor::_create(path)) { return false; } this->cursor = LoadCursorFromFileW(path.wStr().c_str()); return true; }
HCURSOR ZLoadCursorFromFileW( LPCWSTR lpszFilename) { return LoadCursorFromFileW(lpszFilename) ; }