TAILIEUCHUNG - programming windows phần 5

coi là rất có thể đọc được. Arial là một bản sao của Helvetica, sans serif phông chữ. Các font chữ Symbol chứa một bộ sưu tập các ký hiệu tiện dụng. | Simpo PDFTMerge andSplit .Unregistered Version - http Allocate memory for possibly converted string. pConv malloc 2 iFileLength 2 If the edit control is Unicode convert ASCII text. ifdef UNICODE MultiByteToWideChar CP_ACP 0 pText -1 PTSTR pConv iFileLength 1 If not just copy buffer else lstrcpy PTSTR pConv PTSTR pText endif SetWindowText hwndEdit PTSTR pConv free pBuffer free pConv return TRUE BOOL PopFileWrite HWND hwndEdit PTSTR pstrFileName DWORD dwBytesWritten HANDLE hFile int iLength PTSTR pstrBuffer WORD wByteOrderMark OxFEFF Open the file creating it if necessary if INVALID_HANDLE_VALUE hFile CreateFile pstrFileName GENERIC_WRITE 0 Null create_always 0 NULL return FALSE Get the number of characters in the edit control and allocate memory for them. iLength GetWindowTextLength hwndEdit pstrBuffer PTSTR malloc iLength 1 sizeof TCHAR if IpstrBuffer CloseHandle hFile return FALSE If the edit control will return Unicode text write the byte order mark to the file. ifdef UNICODE WriteFile hFile wByteOrderMark 2 dwBytesWritten NULL endif Get the edit buffer and write that out to the file. GetWindowText hwndEdit pstrBuffer iLength 1 WriteFile hFile pstrBuffer iLength sizeof TCHAR dwBytesWritten NULL Simpo PDF Merge and Split Unregistered Version - http if iLength sizeof TCHAR int dwBytesWritten CloseHandle hFile free pstrBuffer return FALSE CloseHandle hFile free pstrBuffer return TRUE This document is created with the unregistered version of CHM2PDF Pilot Simpo PDF Merge and Split Unregistered Version - http --------------------------------------------------------- -- Popup Editor Search and Replace Functions ----------------L- --------------------- --------------- include include include for _tcsstr strstr for Unicode non-Unicode define MAX_STRING_LEN 256 static TCHAR szFindText MAX_STRING_LEN static TCHAR szReplText MAX_STRING_LEN HWND PopFindFindDlg HWND hwnd static

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.