CFileDialog 사용법

아주 사소한 것인데도 문득 기억이 나지 않는다
자꾸만 기억을 읽는다 옛날 소스 뒤지는 것 지겨워 메모 해둔다.
CString GetPathName():             선택된 파일의 절대 경로
CString GetFileName():              선택된 파일의 이름과 확장자
CString GetFileExt():                  선택된 파일의 확장자
CString GetFileTitle():                선택된 파일의 파일명
BOOL GetReadOnlyPref():          읽기 전용 여부
POSITION GetStartPosition():      다중 선택의 경우 Point
CString GetNextPathName
특정 폴더에서 특정 파일을 기본값으로 지정해서 사용하기

char szFilter[] = {"SeQunce(*.SEQ)|*.SEQ|| All Files(*.*)|*.*||"};
CFileDialog dlg(FALSE,_T("*.SEQ"), _T(mPath+"\\"+"DEFAULT.SEQ"), OFN_HIDEREADONLY, szFilter);

하나의 확장자에 대해 하나의 파일만 선택할 경우

char szFilter[] = “Image (*.BMP, *.GIF, *.JPG) | *.BMP;*.GIF;*.JPG | All Files(*.*)|*.*||”;
CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY, szFilter);
if(IDOK == dlg.DoModal())
CString strPathName = dlg.GetPathName();

복수 선택할 경우

char szFilter[] = “All Files(*.*) | *.* ||”;
if(IDOK == dlg.DoModal())
for(POSITION pos=dlg.GetStartPosition(); pos != NULL;)

“CFileDialog 사용법”의 31개의 댓글

  1. I’ve learn some just right stuff here. Certainly price
    bookmarking for revisiting. I surprise how much attempt you set to make one of these fantastic informative web site.

  2. Wonderful goods from you, man. I have remember your stuff prior to and you’re simply too excellent.

    I actually like what you’ve got here, really like what you are stating and the way in which in which you say it.
    You’re making it entertaining and you continue to take care
    of to keep it sensible. I can not wait to read far more from you.
    This is really a tremendous site.

  3. I know this if off topic but I’m looking into starting my own blog and was wondering what all
    is required to get set up? I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web savvy so I’m not 100% sure. Any recommendations or advice would be greatly appreciated.

  4. I simply want to mention I’m beginner to blogging and site-building and certainly savored this web-site. Very likely I’m likely to bookmark your website . You definitely come with outstanding articles and reviews. Cheers for sharing your website page.

  5. There are definitely a great deal of information like that to take into consideration. That is a terrific indicate bring up. I supply the ideas above as general ideas but plainly there are questions like the one you raise where the most vital point will be working in sincere good faith. I don?t understand if best techniques have actually emerged around things like that, yet I make sure that your task is plainly determined as an up for grabs. Both children and also girls feel the effect of just a moment?s pleasure, for the remainder of their lives.

  6. Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  7. A remarkable share, I simply provided this onto a coworker who was doing a little evaluation on this. And also he actually got me morning meal since I discovered it for him. smile. So let me rephrase that: Thnx for the treat! But yeah Thnkx for investing the moment to review this, I really feel strongly concerning it as well as enjoy learning more on this topic. If possible, as you come to be experience, would you mind updating your blog with more details? It is highly practical for me. Huge thumb up for this blog post!

  8. It’s an extremely remarkable effective useful resource that you’re offering and you offer that aside cost-free!! My partner and i that can compare with finding internet sites in which observe the specific house worth offering you a great studying resource with regard to absolutely no price. All of us truly a lot cherished analyzing this short article. Love!

  9. I was very happy to locate this web-site. I intended to many thanks for your time for this fantastic read!! I most definitely enjoying every little of it and also I have you bookmarked to have a look at brand-new stuff you article.

  10. Good post. I discover something a lot more challenging on various blog sites daily. It will certainly always be stimulating to check out material from various other writers as well as exercise a something from their store. I?d like to utilize some with the content on my blog site whether you don?t mind. Natually I?ll give you a web link on your web blog. Many thanks for sharing.

  11. There are some interesting points in this short article however I don?t understand if I see every one of them center to heart. There is some validity yet I will hold viewpoint until I check out it additionally. Good article, thanks and also we desire much more! Contributed to FeedBurner also

  12. When I initially commented I clicked the -Inform me when new remarks are included- checkbox and currently each time a comment is added I get four e-mails with the same remark. Is there any way you can remove me from that solution? Thanks!

  13. Youre so trendy! I do not mean Ive check out anything like this prior to. So wonderful to discover someone with some initial ideas on this subject. realy thank you for beginning this up. this web site is something that is required online, a person with a little creativity. helpful job for bringing something new to the net!

  14. I was excited to uncover this great site. I need to to thank you for your time due to this fantastic read!! I definitely enjoyed every part of it and I have you saved to fav to check out new stuff in your website.

댓글 남기기