TAILIEUCHUNG - Programming Microsoft Windows with C# phần 10

sự kiện NameCustom_TextChanged. Hành vi này của nhà thiết kế là một trong nhiều lý do chúng tôi khuyên bạn nên gắn bó với mô hình thiết kế mô hình thực hiện sự kiện. NET. Như đã đề cập trước đây, dây mã xuất hiện trong trang aspx như một thuộc tính điều khiển máy chủ: | if iDataSize â 0 byte abyData new BytefiDataSize ipData abyData 0 iDataSize foreach byte by in abyData 0 X2 by return true void PanelOnPaint object obj PaintEventArgs pea Panel panel Panel obj Graphics grfx if mf null mage mf 0 0 Although this program mysteriously doesn t work with any of the metafiles created in this chapter or with metafiles created by programs from my book Programming Windows here s the program displaying one of the metafiles included with Visual studio .NET The metafile records are shown at the right. Following the record type the flag and the number of bytes of data are in parentheses. The hexadecimal bytes follow. No attempt has been made in this program to convert the bytes into meaningful information. As you can see the metafile records are of variable size. Each record type corresponds to a particular GDI function call or a Graphics method call. The data that accompanies each record corresponds to the arguments of the call. Obviously this data is dependent on the record type. The new metafile records that correspond to methods of the Graphics class are currently undocumented at the time I m writing this but will undoubtedly be documented sometime in the future. If you re interested in getting a head start on metafile enumeration you can begin by exploring the format of the older WMF and EMF records. Each record type corresponds to a structure beginning with the letters EMR enhanced metafile record defined in the Win32 header files. The EMR structure is part of every record. It contains the record type and a size typedef struct tagEMR DWORD iType DWORD nSize EMR Here s the st uctu e fo a polyline. It begins with an EMR structure. typedef struct tagEMRPOLYLINE EMR emr RECTL rclBounds DWORD cptl POINTL aptl l EMRPOLYLINE Everything following the EMR field corresponds to the data that accompanies the record in the Windows Forms enumeration. If you re not familiar with Win32

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.