상황에 맞는 도움말 표시

여기에서 설명하는 상황에 맞는 도움말은 대화 상자의 컨트롤에 대한 도움말을 말하며, 다음 방법으로 액세스할 수 있습니다.

  • F1 키를 누릅니다.
  • 컨트롤을 마우스 오른쪽 단추로 클릭하여 설명 도움말을 표시합니다.
  • 물음표 포인터를 사용하여 설명 도움말 포인터를 표시합니다.

상황에 맞는 도움말을 제공할 각 컨트롤에 대해 HelpID 속성을 True로 설정합니다.

필요하면 프로젝트의 속성 페이지 대화 상자, 링커 폴더의 입력 속성 페이지에 있는 추가 종속성 속성에 hhctrl.lib를 추가합니다.

상황에 맞는 도움말에 대한 소스 정보는 HTML Help 프로젝트에 포함한 .txt 파일에 저장됩니다.

상황에 맞는 도움말 텍스트 파일을 만들려면

  1. 텍스트 편집기를 사용하여 .txt 파일을 만듭니다.
  2. 다음과 같이 항목의 형식을 지정합니다.
    .topic 1
    help text for control 1
    .topic 2
    help text for control 2
    

참고   자세한 내용은 HTML Help 온라인 도움말의 “Designing context-sensitive help”를 참조하십시오. HTML Help Workshop의 Help메뉴에서 Help Topics을 선택하면 됩니다.

.txt 파일을 만든 다음 .hhp 파일의 [Files] 구역에 추가합니다.

대화 상자의 리소스에 도움말을 제공하려면 컨트롤 ID를 도움말 ID(항목 번호)로 매핑하는 2차원 배열을 만들어야 합니다.

2차원 배열을 만들려면

  • .cpp 파일에서 대화 상자를 나타내는 모든 클래스의 끝에 2차원 배열을 추가합니다. 예를 들면 다음과 같습니다.
    static DWORD myarray[] = {
       IDC_CHECK1, 1,
       IDC_CHECK2, 2,
       IDC_CHECK3, -1,
       0,0
    };
    

2차원 배열의 각 항목에서 대화 상자 컨트롤의 리소스 ID는 상황에 맞는 도움말 텍스트 파일의 항목 번호와 쌍을 이룹니다. 특정 리소스에 대한 설명 도움말을 제공하지 않으려면 –1을 사용합니다. 이 배열의 마지막 쌍은 0,0이 되어야 합니다.

F1 키를 눌러 상황에 맞는 도움말에 액세스한다는 것은 컨트롤에 포커스를 놓은 다음 F1 키를 눌러 도움말에 액세스할 수 있다는 의미입니다.

F1 키를 눌러 상황에 맞는 도움말에 액세스할 수 있도록 하려면

  • F1 키를 눌러 상황에 맞는 도움말에 액세스할 수 있도록 하려는 각 대화 상자 클래스에서 WM_HELPINFO 메시지에 대한 처리기를 구현하고 처리기에 다음 코드를 구현합니다.
    BOOL CMyDialog::OnHelpInfo(HELPINFO* pHelpInfo)
    {
       if (pHelpInfo->iContextType == HELPINFO_WINDOW)
       {
          return ::HtmlHelp(
             (HWND)pHelpInfo->hItemHandle,
             "\\my_chm.chm::/ctrlhlp.txt",
             HH_TP_HELP_WM_HELP,
             (DWORD)(LPVOID)myarray)
             != NULL;
    }
    return TRUE;
    }
    

설명 도움말은 사용자가 컨트롤을 마우스 오른쪽 단추로 클릭하면 컨트롤에 대한 도움말을 표시합니다.

마우스 오른쪽 단추로 클릭하면 나타나는 설명 도움말

  • 설명 도움말을 제공하려는 각 대화 상자 클래스에서 WM_HELPINFO 메시지에 대한 처리기를 구현합니다(함수에 메시지 매핑 참조). 개체 ID 목록에서 대화 상자의 ID를 선택한 다음 처리기에 다음 코드를 구현합니다.
    void CMyDialog::OnContextMenu(CWnd* pWnd, CPoint point)
    {
       ::HtmlHelp(
          pWnd->GetSafeHwnd(),
          "hlp\\my_chm.chm::/ctrlhlp.txt",
          HH_TP_HELP_CONTEXTMENU,
          (DWORD)(LPVOID)myarray);
    }
    

.chm 파일을 지정할 때 예상 위치는 프로젝트의 작업 디렉터리입니다. 작업 디렉터리의 위치를 보려면 속성 페이지 대화 상자의 디버그 탭을 보십시오. 기본적으로 작업 디렉터리는 프로젝트 디렉터리입니다. 상황에 맞는 도움말이 있는 .chm에 텍스트 파일을 지정하는 경우에는 .chm의 .hhp 파일에서 .txt 파일에 지정한 것과 같은 위치 정보를 지정해야 합니다.

F1 키를 눌러 상황에 맞는 도움말에 액세스할 수 있도록 구현한 경우에는 대화 상자 오른쪽 위의 제목 표시줄에 물음표가 나타나도록 하는 설명 포인터를 쉽게 구현할 수 있습니다.

설명 도움말의 물음표 포인터를 사용하려면

“상황에 맞는 도움말 표시”의 106개의 댓글

  1. First of all I want to say terrific blog! I had a quick question in which I’d like to ask if you do not mind.
    I was interested to find out how you center yourself and clear your thoughts prior to writing.
    I have had a difficult time clearing my mind in getting my thoughts out there.
    I do take pleasure in writing but it just seems like
    the first 10 to 15 minutes are usually lost
    simply just trying to figure out how to begin. Any ideas or tips?
    Cheers!

  2. Howdy great blog! Does running a blog like this require
    a massive amount work? I have no expertise in coding however
    I was hoping to start my own blog in the near future.
    Anyway, if you have any ideas or techniques for new blog owners
    please share. I understand this is off topic
    but I just had to ask. Thanks a lot!

  3. Having read this I believed it was extremely informative.
    I appreciate you taking the time and energy
    to put this content together. I once again find myself spending way too
    much time both reading and leaving comments. But so what,
    it was still worth it!

  4. I simply want to tell you that I am very new to blogging and truly liked you’re blog. Very likely I’m likely to bookmark your site . You definitely come with wonderful articles. Thanks a bunch for revealing your blog site.

  5. Aw, this was a truly wonderful article. In concept I want to place in creating such as this in addition? taking time and also actual initiative to make a great short article? yet what can I say? I postpone alot and never seem to obtain something done.

  6. Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your weblog? My blog site is in the very same area of interest as yours and my visitors would truly benefit from some of the information you provide here. Please let me know if this ok with you. Cheers!

  7. I uncovered your blog site on google and examine a few of your very early blog posts. Continue to maintain the excellent run. I simply extra up your RSS feed to my MSN News Viewers. Looking for onward to reading more from you later!?

  8. This is the appropriate blog for anyone who intends to discover this subject. You recognize so much its practically difficult to argue with you (not that I actually would want?HaHa). You certainly placed a brand-new spin on a subject thats been discussed for years. Terrific things, just fantastic!

  9. Youre so trendy! I don’t intend Ive check out anything similar to this prior to. So nice to discover somebody with some original thoughts on this subject. realy thank you for starting this up. this website is something that is needed on the web, someone with a little creativity. useful job for bringing something brand-new to the net!

  10. I was extremely pleased to locate this web-site. I intended to thanks for your time for this remarkable read!! I certainly appreciating every bit of it as well as I have you bookmarked to take a look at new things you post.

  11. There are some fascinating points in this write-up however I don?t understand if I see all of them center to heart. There is some credibility however I will take hold opinion till I consider it even more. Excellent short article, thanks and we want extra! Added to FeedBurner also

  12. I?m amazed, I have to claim. Actually hardly ever do I run into a blog site that?s both informative and also amusing, and let me inform you, you have actually struck the nail on the head. Your concept is superior; the concern is something that not nearly enough people are talking intelligently about. I am very pleased that I came across this in my search for something connecting to this.

  13. This web site is truly a walk-through for all of the information you desired regarding this and didn?t recognize that to ask. Glimpse below, and you?ll definitely discover it.

  14. I was curious if you ever thought of changing the structure of
    your site? Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of
    content so people could connect with it better.
    Youve got an awful lot of text for only having 1 or 2 images.

    Maybe you could space it out better? adreamoftrains best website hosting

  15. Woah! I’m really digging the template/theme of this site. It’s simple, yet effective. A lot of times it’s difficult to get that “perfect balance” between superb usability and appearance. I must say you have done a superb job with this. In addition, the blog loads very quick for me on Chrome. Exceptional Blog!

  16. Aw, this was an actually nice message. In suggestion I would love to place in creating like this additionally? taking time and also real effort to make a very good write-up? yet what can I say? I hesitate alot and by no means seem to get something done.

  17. There are certainly a lot of information like that to think about. That is an excellent point to bring up. I provide the ideas over as basic inspiration but clearly there are inquiries like the one you raise where one of the most essential point will certainly be working in honest good faith. I don?t understand if best techniques have actually arised around points like that, but I make sure that your job is plainly identified as a level playing field. Both children and girls feel the influence of just a moment?s pleasure, for the remainder of their lives.

  18. Wonderful message. I discover something extra tough on various blogs everyday. It will always be stimulating to read web content from other authors and practice a little something from their shop. I?d prefer to utilize some with the web content on my blog whether you don?t mind. Natually I?ll give you a web link on your web blog site. Many thanks for sharing.

  19. I just want to tell you that I am beginner to weblog and honestly liked this blog site. Most likely I’m going to bookmark your blog post . You certainly have good articles. Many thanks for sharing your web-site.

  20. Hey There. I found your blog using msn. This is an extremely well written article. I’ll make sure to bookmark it and return to read more of your useful info. Thanks for the post. I’ll certainly return.

  21. It’s really a cool and helpful piece of info. I am glad that you just shared this helpful info with us. Please keep us up to date like this. Thanks for sharing.

  22. I loved as much as you will receive carried out right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get bought an impatience over that you wish be delivering the following. unwell unquestionably come further formerly again since exactly the same nearly very often inside case you shield this hike.

  23. Hi there! This is my first visit to your blog! We are a team of volunteers and starting a new initiative in a community in the same niche. Your blog provided us beneficial information to work on. You have done a outstanding job!

  24. I am no longer sure where you’re getting your information, however good topic. I must spend some time studying much more or figuring out more. Thank you for magnificent information I was searching for this information for my mission.

  25. Whats up are using WordPress for your site platform? I’m new to the blog world but I’m trying to get started and create my own. Do you require any html coding knowledge to make your own blog? Any help would be greatly appreciated!

  26. I not to mention my guys happened to be reading through the great tactics located on the website while suddenly I got an awful feeling I never thanked the web blog owner for those strategies. The men ended up for that reason glad to see them and have now quite simply been tapping into these things. Appreciation for turning out to be really helpful and then for obtaining these kinds of remarkable topics millions of individuals are really eager to know about. Our honest apologies for not expressing appreciation to you sooner.

  27. Thanks for the sensible critique. Me & my neighbor were just preparing to do a little research about this. We got a grab a book from our area library but I think I learned more clear from this post. I’m very glad to see such wonderful information being shared freely out there.

  28. Thank you for some other informative site. The place else may just I am getting that kind of info written in such a perfect method? I’ve a challenge that I’m just now working on, and I’ve been on the glance out for such info.

  29. I’ve been absent for a while, but now I remember why I used to love this web site. Thanks, I will try and check back more often. How frequently you update your website?

  30. I just want to tell you that I’m all new to blogs and definitely liked you’re web site. Almost certainly I’m planning to bookmark your site . You surely come with great articles and reviews. Thank you for revealing your website.

  31. What i don’t understood is actually how you’re not actually much more well-liked than you may be now. You are very intelligent. You realize therefore significantly relating to this subject, produced me personally consider it from numerous varied angles. Its like men and women aren’t fascinated unless it’s one thing to do with Lady gaga! Your own stuffs outstanding. Always maintain it up!

  32. Thanks for your post made here. One thing I’d like to say is that most professional job areas consider the Bachelor’s Degree just as the entry level standard for an online diploma. Whilst Associate College diplomas are a great way to get started, completing your current Bachelors opens up many entrances to various occupations, there are numerous internet Bachelor Course Programs available by institutions like The University of Phoenix, Intercontinental University Online and Kaplan. Another issue is that many brick and mortar institutions offer Online versions of their diplomas but often for a considerably higher payment than the institutions that specialize in online degree plans.

  33. Spot i’ll carry on with this write-up, I actually think this site needs considerably more consideration. I’ll more likely be once more to see a great deal more, thanks for that information.

  34. I just want to mention I’m all new to blogging and certainly liked you’re web-site. More than likely I’m going to bookmark your blog post . You surely have fantastic well written articles. Regards for sharing with us your blog site.

  35. My brother recommended I might like this web site. He was totally right. This post actually made my day. You cann’t imagine simply how much time I had spent for this information! Thanks! xrumer

  36. hello there and thank you for your information – I have certainly picked up anything new from right here. I did however expertise some technical issues using this site, since I experienced to reload the site lots of times previous to I could get it to load correctly. I had been wondering if your hosting is OK? Not that I am complaining, but slow loading instances times will very frequently affect your placement in google and could damage your high-quality score if ads and marketing with Adwords. Well I am adding this RSS to my email and can look out for a lot more of your respective fascinating content. Ensure that you update this again soon..

  37. Howdy, I do believe your blog might be having browser compatibility issues. Whenever I take a look at your website in Safari, it looks fine however, if opening in I.E., it’s got some overlapping issues. I just wanted to provide you with a quick heads up! Aside from that, excellent site.

  38. Undeniably believe that that you stated. Your favourite reason seemed to be at the internet the simplest factor to remember of. I say to you, I certainly get annoyed whilst other people consider issues that they plainly do not recognise about. You controlled to hit the nail upon the top as neatly as outlined out the entire thing with no need side-effects , folks can take a signal. Will probably be back to get more. Thanks

  39. I love your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz answer back as I’m looking to construct my own blog and would like to find out where u got this from. thanks a lot

  40. Excellent weblog right here! Also your site lots up fast! What web host are you the usage of? Can I am getting your affiliate link in your host? I wish my site loaded up as quickly as yours lol

  41. Thank you for the sensible critique. Me & my neighbor were just preparing to do a little research about this. We got a grab a book from our local library but I think I learned more from this post. I am very glad to see such wonderful information being shared freely out there.

  42. You actually make it seem really easy along with your presentation however I to find this topic to be really one thing which I believe I’d never understand. It sort of feels too complicated and extremely wide for me. I am looking forward on your next submit, I’ll attempt to get the hold of it!

  43. Hmm it looks like your website ate my first comment (it was extremely long) so I guess I’ll just sum it up what I submitted and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog writer but I’m still new to the whole thing. Do you have any helpful hints for inexperienced blog writers? I’d really appreciate it.

  44. I am also writing to make you be aware of of the beneficial encounter our child developed reading your site. She discovered numerous details, which included what it’s like to have an amazing teaching style to get others without problems know just exactly some hard to do topics. You undoubtedly surpassed her desires. Thanks for coming up with these effective, trusted, informative and even fun guidance on your topic to Tanya.

  45. I think this website has got some real fantastic info for everyone. “Je veux que les paysans mettent la poule au pot tous les dimanches.” by King Henry IV of France.

  46. You actually make it appear so easy together with your presentation however I find this matter to be really something that I think I’d never understand. It sort of feels too complex and very large for me. I’m looking forward to your next put up, I’ll try to get the cling of it!

댓글 남기기