Archived

This topic is now archived and is closed to further replies.

How to read this (it comes from MSDN)

This topic is 5150 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How is a person supposed to be able to make anything out of this? Where does it even say what values you have to give to the function to do something to the cursor, like making it invisible?
quote:
SetConsoleCursorInfo The SetConsoleCursorInfo function sets the size and visibility of the cursor for the specified console screen buffer. BOOL SetConsoleCursorInfo( HANDLE hConsoleOutput, const CONSOLE_CURSOR_INFO* lpConsoleCursorInfo ); Parameters hConsoleOutput [in] Handle to a console screen buffer. The handle must have the GENERIC_READ access right. For more information, see Console Buffer Security and Access Rights. lpConsoleCursorInfo [in] Pointer to a CONSOLE_CURSOR_INFO structure that provides the new specifications for the console screen buffer''s cursor. Return Values If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError. Remarks When a screen buffer''s cursor is visible, its appearance can vary, ranging from completely filling a character cell to showing up as a horizontal line at the bottom of the cell. The dwSize member of the CONSOLE_CURSOR_INFO structure specifies the percentage of a character cell that is filled by the cursor. If this member is less than 1 or greater than 100, SetConsoleCursorInfo fails. Requirements Client: Included in Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, and Windows 95. Server: Included in Windows Server 2003, Windows 2000 Server, and Windows NT Server. Header: Declared in Wincon.h; include Windows.h. Library: Use Kernel32.lib. See Also Character-Mode Applications Overview, Console Functions, CONSOLE_CURSOR_INFO, GetConsoleCursorInfo, SetConsoleCursorPosition

Share this post


Link to post
Share on other sites
quote:
Original post by Boops
...

[in] Pointer to a CONSOLE_CURSOR_INFO structure that provides the new specifications for the console screen buffer''s cursor.

...

See Also Character-Mode Applications Overview, Console Functions, CONSOLE_CURSOR_INFO, GetConsoleCursorInfo, SetConsoleCursorPosition




typedef struct _CONSOLE_CURSOR_INFO {
DWORD dwSize;
BOOL bVisible;
} CONSOLE_CURSOR_INFO,
*PCONSOLE_CURSOR_INFO;
[code]

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/console_cursor_info_str.asp

Share this post


Link to post
Share on other sites