TAILIEUCHUNG - .NET Framework Solution In Search of the Lost Win32 API phần 4

* bình thường có nghĩa là một số loại dữ liệu chuyển đổi sau trong tiến trình. Các khái niệm của một void * để đại diện cho một con trỏ của một loại không rõ. Tóm lại, IntPtr cho phép lưu mô tả bằng cách sử dụng một cuộc gọi như SetFileSecurity (). | Using Cursors and Fonts The code for the SetEnvironmentVariable function is surprisingly simple which is why it s a wonder that Microsoft didn t add it to the .NET Framework. As you can see the function requires a key value pair input. The first string contains the key while the second string contains the value. Figure shows the output from this example. Figure Setting environmental strings is easy just supply a key and a value. Using Cursors and Fonts Many people think that they re stuck with the cursor and font originally presented in the console window others simply don t think too much about the option of changing either item. However it pays to know about both cursor and font manipulation for those times when you want to emphasize something on screen. The GetConsoleCursorInfo and SetConsoleCursorInfo functions help you with the console cursor. The GetConsoleFontSize function enables you to work with the font. You can specify the index of the current font or ask for the dimensions of any font supported by the console window. This function can help you perform tasks like size the console window for a specific font. When you only want to know about the current font you can use the GetCurrentConsoleFont function. You also need to use the GetCurrentConsoleFont function to obtain a font index number for the GetConsoleFontSize function. The GetCurrentConsoleFont function can retrieve the current console font or the font for the maximum window supported by the current window settings and the machine. If you feel that the console needs a bit of color you can use the FillConsoleOutputAttribute or the SetConsoleTextAttribute functions. You ll use the cursor-related functions relatively often because the console offers little in the way of console control otherwise. The example in Listing shows you how to move the cursor around. The example in this section will show you how to obtain and change the cursor characteristics. Console applications can use these .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.