Common_Dialog_boxes - 1 L ậ p trình Windows (Windows...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 L ậ p trình Windows (Windows Programming) Các h ộ p tho ạ i chu ẩ n (Common Dialog Boxes) Nguy ễ n Tri Tu ấ n Khoa CNTT – ĐH .KHTN.Tp.HCM Email: nttuan@ fit.hcmuns.edu.vn Sprint 2009 Common Dialog Boxes - Nguyen Tri Tuan - DH.KHTN Tp.HCM 2 N ộ i dung rhombus5 Th ư vi ệ n các d ạ ng h ộ p tho ạ i ph ổ bi ế n (Common Dialog Box Library) rhombus5 Các ph ươ ng pháp tùy bi ế n (Customizing Common Dialog Boxes) rhombus5 K ế t lu ậ n 2 Sprint 2009 Common Dialog Boxes - Nguyen Tri Tuan - DH.KHTN Tp.HCM 3 Common Dialog Box Library rhombus5 Gi ớ i thi ệ u rhombus5 Các Hàm g ọ i và C ấ u trúc kh ở i t ạ o rhombus5 Ví d ụ minh h ọ a Sprint 2009 Common Dialog Boxes - Nguyen Tri Tuan - DH.KHTN Tp.HCM 4 Common Dialog Box – Gi ớ i thi ệ u rhombus5 H ộ p tho ạ i ph ổ bi ế n là các d ạ ng h ộ p tho ạ i th ườ ng đượ c s ử d ụ ng trong các Application Font Dialog Open/Save as Dialog 3 Sprint 2009 Common Dialog Boxes - Nguyen Tri Tuan - DH.KHTN Tp.HCM 5 Common Dialog Box – Gi ớ i thi ệ u…(tt) rhombus5 Th ư vi ệ n Common Dialog Box Library cung c ấ p t ậ p h ợ p g ồ m 9 h ộ p tho ạ i ph ổ bi ế n, bao g ồ m: square4 Open, Save as square4 Find, Replace square4 Color, Font square4 Print, Page Setup, Print Property Sheet rhombus5 Th ư vi ệ n đượ c t ổ ch ứ c thành 2 file DLLs: COMMDLG.DLL, COMDLG32.DLL (Windows\System32\...) rhombus5 Header file COMMDLG.H ( #include <commdlg.h>) Sprint 2009 Common Dialog Boxes - Nguyen Tri Tuan - DH.KHTN Tp.HCM 6 Common Dialog Box – Gi ớ i thi ệ u…(tt) Color Dialog Find Dialog Replace Dialog 4 Sprint 2009 Common Dialog Boxes - Nguyen Tri Tuan - DH.KHTN Tp.HCM 7 Common Dialog Box – Gi ớ i thi ệ u…(tt) Font Dialog Open/Save as Dialog Sprint 2009 Common Dialog Boxes - Nguyen Tri Tuan - DH.KHTN Tp.HCM 8 Common Dialog Box – Gi ớ i thi ệ u…(tt) Print Dialog Page Setup Dialog 5 Sprint 2009 Common Dialog Boxes - Nguyen Tri Tuan - DH.KHTN Tp.HCM 9 Common Dialog Box – Gi ớ i thi ệ u…(tt) Print Property sheet Dialog Sprint 2009 Common Dialog Boxes - Nguyen Tri Tuan - DH.KHTN Tp.HCM 10 Common Dialog Box Library rhombus5 Hàm g ọ i và C ấ u trúc kh ở i t ạ o: square4 C ấ u trúc kh ở i t ạ o : là c ấ u trúc d ữ li ệ u ( đị nh ngh ĩ a s ẵ n) để kh ở i t ạ o các giá tr ị ban đ ầ u cho h ộ p tho ạ i. C ấ u trúc này c ũ ng dùng để lưu k ế t qu ả th ự c hi ệ n c ủ a h ộ p tho ạ i (sau khi k ế t thúc) square4 Hàm g ọ i : là hàm t ạ o và hi ể n th ị h ộ p tho ạ i. Hàm có 2 giá tr ị tr ả v ề : rhombus5 = 0: khi user nh ấ n CANCEL rhombus5 Khác 0: khi user nh ấ n OK / OPEN / SAVE… 6 Sprint 2009 Common Dialog Boxes - Nguyen Tri Tuan - DH.KHTN Tp.HCM 11 Common Dialog Box Library B ả ng tham kh ả o C ấ u trúc kh ở i t ạ o và Hàm g ọ i c ủ a t ừ ng lo ạ i h ộ p tho ạ...
View Full Document

This note was uploaded on 05/09/2010 for the course BACXT 9983 taught by Professor Domany during the Spring '08 term at Webster University Geneva.

Page1 / 26

Common_Dialog_boxes - 1 L ậ p trình Windows (Windows...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online