术语 | loadcursorfromfile |
释义 | LoadCursorFromFile 语法: HCURSOR LoadCursorFromFile( LPCTSTR lpFileName ); LoadCursorFromFile功能 函数的LoadCursorFromFile上创建一个文件中包含的数据基础上的光标。 参数 lpFileName [in]指定的文件数据源被用来创建光标。文件中的数据必须在任何。姜黄素或。阿尼格式。 如果高lpFileName字是非零,它是对一个字符串,它是一个包含指针数据文件的完全合格的名称的指针。 Windows 98/Me的:如果高lpFileName字是零,低字是一个系统光标标识符。该函数然后搜索[游标]在与该系统的游标名称相关联的文件WIN.INI文件部分。 返回值 如果函数成功,返回值是一个句柄到新的光标。 如果函数失败,返回值为NULL。为了获得更多错误信息,调用GetLastError。 GetLastError函数可能会返回以下值: ValueMeaning ERROR_FILE_NOT_FOUNDThe指定的文件无法找到。 备注 在Windows 95/98/Me:LoadCursorFromFileW是支持的Unicode(MSLU)微软层。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。 功能信息 最低DLL版本 user32.dll 在Winuser.h中HeaderDeclared,头文件:winuser.h import libraryUser32.lib 最低操作系统Windows 95,Windows NT 3.5 UnicodeImplemented为ANSI和Unicode版本。 参见 游标概述,LoadCursor,SetCursor,SetSystemCursor ==英文原文==LoadCursorFromFile Function The LoadCursorFromFile function creates a cursor based on data contained in a file. Syntax HCURSOR LoadCursorFromFile( LPCTSTR lpFileName ); Parameters lpFileName [in] Specifies the source of the file data to be used to create the cursor. The data in the file must be in either .CUR or .ANI format. If the high-order word of lpFileName is nonzero, it is a pointer to a string that is a fully qualified name of a file containing cursor data. Windows 98/ME: If the high-order word of lpFileName is zero, the low-order word is a system cursor identifier. The function then searches the [cursors] section in the WIN.INI file for the file associated with the name of that system cursor. Return Value If the function is successful, the return value is a handle to the new cursor. If the function fails, the return value is NULL. To get extended error information, call GetLastError . GetLastError may return the following value: ValueMeaning ERROR_FILE_NOT_FOUNDThe specified file cannot be found. Remarks Windows 95/98/Me: LoadCursorFromFileW is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems . Function Information Minimum DLL Versionuser32.dll HeaderDeclared in Winuser.h, include Windows.h Import libraryUser32.lib Minimum operating systemsWindows 95, Windows NT 3.5 UnicodeImplemented as ANSI and Unicode versions. See Also Cursors Overview , LoadCursor , SetCursor , SetSystemCursor ==原始网址==http://msdn.microsoft.com/en-us/library/ms648392(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。