{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Common_Dialog_boxes - L p trnh Windows(Windows Programming...

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

View Full Document Right Arrow Icon
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: [email protected] 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
Background image of page 1

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

View Full Document Right Arrow Icon
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
Background image of page 2
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
Background image of page 3

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

View Full Document Right Arrow Icon
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
Background image of page 4
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…
Background image of page 5

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

View Full Document Right Arrow Icon
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 i ph bi ế n GetSaveFileName OPENFILENAME Save As ReplaceText FINDREPLACE Replace PrintDlgEx PRINTDLGEX
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}