Tooltip관련

특정 컨트롤 위에 마우스 커서가 위치하면 툴팁이 나오게 하는 방법에 대해서 알아보겠습니다.

// 해당 클래스의 헤더파일에 폰트객체를 선언한다.
private:
    CToolTipCtrl m_tip_ctrl;

// ClassWizard에서 PreTranslateMessage 메시지를 등록하고 해당 메시지 핸들러에
// 아래의 코드를 추가한다.
BOOL 클래스명::PreTranslateMessage(MSG* pMsg)
{
    m_tip_ctrl.RelayEvent(pMsg);

    return CDialog::PreTranslateMessage(pMsg);
}

// OnInitDialog()함수에 아래의 코드를 추가한다.
BOOL 클래스명::OnInitDialog()
{
    ………. 중간 생략 ……….

// 툴팁컨트롤을 생성한다.
    m_tip_ctrl.Create(this);

// 툴팁이 사용할 컨트롤의 ID가 IDC_TEST_BTN 이라고 하면 아래와 같이 사용할
    // 내용을 명시해야 한다.
   m_tip_ctrl.AddTool(GetDlgItem(IDC_TEST_BTN), “툴팁 테스트 첫번째!!”);

// (선택사항) 툴팁에 사용할 내용이 너무 긴 경우에 한줄로 표시되면 사용자가 불편할 수 있다.
    // 이런 경우에는 툴팁의 폭을 제한하여 여러줄로 출력하게 만들면 된다.
    // 명시한 툴팁 내용의 폭이 300을 넘어서면 다음줄로 넘겨서 출력한다.
    m_tip_ctrl.SetMaxTipWidth(300);

// (선택사항) 툴팁에 별다른 설정을 하지 않으면 툴팁이 출력되었다가 일정시간이 지나면
    // 사라져 버린다. 보통 이 시간이 너무 짧아서 사용자가 불편함을 느끼는 경우가 있는데
    // 이러한 경우에는 아래의 코드처럼 시간을 늘려주면 된다.
    // 툴팁의 출력지속 시간을 20초로 늘린다. ( 20000 -> 20초 )
    m_tip_ctrl.SetDelayTime(TTDT_AUTOPOP, 20000);

// (선택사항) 동일한 클래스에서 추가적인 컨트롤에 툴팁을 사용하고 싶다면 툴팁 컨트롤을
    // 추가할 필요없이 AddTool 함수만 추가로 호출하면 된다.
    // 추가적으로 툴팁을 사용할 컨트롤의 ID가 IDC_TEST2_BTN 이라고 하면 아래와 같이
    // 툴팁의 내용을 명시하면 된다.
    m_tip_ctrl.AddTool(GetDlgItem(IDC_TEST2_BTN), “툴팁 테스트 두번째!!”);

// (선택사항) 툴팁을 특정 컨트롤이 아닌 사용자 지정 영역을 이용해서 사용하려면 아래와 같이
    // AddTool 함수를 호출하면 된다.
    // this에 해당 하는 윈도우의 시작위치가 (20, 30)이고 끝위치가 (320, 230)인 영역에
    // 마우스 커서가 위치하면 툴팁을 출력한다. 그리고 마지막 인자는 해당영역의 ID로 사용되므로
// 추가적인 영역을 등록할때는 1이 아닌 다른 값으로 등록하면 된다.
    m_tip_ctrl.AddTool(this, “사용자 영역 툴팁 테스트”, CRect(20, 30, 320, 230), 1);

    return TRUE;
}

Comments (66)

  1. Pingback: Green Mountain Energy plans

  2. 응답

    I seriously love your site.. Pleasant colors & theme.
    Did you make this site yourself? Please reply back as I’m looking to create my own personal blog and would like to펀초

    learn where you got this from or just what the theme is called.

    Cheers!

  3. Pingback: chiem bao thay di chua

  4. Pingback: cc fullz shop

  5. 응답

    Unquestionably believe that which you said. Your favorite justification appeared to be on the web the easiest thing to be aware of. I say to y

    부산키스방
    u, I definitely get annoyed while people consider worries that they just do not know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people could take a signal. Will probably be back to get more. Thanks|

  6. Pingback: pasar qq

  7. Pingback: mơ thấy sấm sét

  8. Pingback: nằm mơ thấy nhà đánh số mấy

  9. Pingback: free web hosting for students

  10. Pingback: mơ thấy chìa khóa

  11. Pingback: mơ cãi nhau đánh con gì

  12. Pingback: mơ cá sấu đánh con gì

  13. Pingback: mơ thấy bếp lửa cháy

  14. Pingback: 만화보는사이트

  15. Pingback: meja qq

  16. Pingback: leopard swimsuit

  17. Pingback: ตู้แปลภาษา

  18. Pingback: nằm mơ thấy hoa sen

  19. Pingback: người yêu không tôn trọng mình

  20. Pingback: https://www.pornachi.com/porn/https-www-pornhub-com/

  21. Pingback: wig

  22. Pingback: fish spatula yourfishguide.com

  23. Pingback: Where to buy Kimber Firearms

  24. Pingback: SA

  25. Pingback: little nightmares 2

  26. Pingback: Jacob Medwell

  27. Pingback: realtor

  28. Pingback: rolex daytona replica

  29. Pingback: Payson Cabins for sale

  30. Pingback: replica swiss watch shop

  31. Pingback: Top 3 Money Making Software’s In 2021

  32. Pingback: doughnut

  33. Pingback: site to buy cvv

  34. Pingback: gửi hàng đi mỹ

  35. Pingback: replica designer shoes

  36. Pingback: W88casino

  37. Pingback: W88casino

  38. Pingback: ทางเข้าสโบเบ็ต

  39. 응답

    canadian drugs without prescription
    drug canada prescription drugs canada brand viagra online canada pharmacy viagra jelly [url=http://moroccansoverseas.com/forum/member.php?action=profile&uid=110900]natural viagra alternatives[/url] order viagra online 44-466 green pill canadian drugs cheap viagra canadian [url=https://stackoverflow.com/users/story/16576188]www.onlinepharmaciescanada.com[/url]
    viagra purchase canada drugs online online drug viagra cheapest price [url=https://www.daoduytu.edu.vn/forum/links.php?url=https://www.pcb.its.dot.gov/PageRedirect.aspx?redirectedurl=https://gitlab.pagedmedia.org/jellygrade04]buy cialis online canada[/url]

  40. 응답

    canadian pharcharmy’s
    medication without prescription viagra tablet viagra purchase canadian pharmacy com [url=http://abroadsanjal.com/index.php?qa=user&qa_1=needpin23]is there a generic cialis[/url] online pharmacy usa prescription drugs without a prescription prescription drugs without a prescription canadadrugstoresonline.com [url=http://www.culturish.com/forums2/member.php?action=profile&uid=99723]brand viagra online[/url]
    my canadian pharmacies http://www.cialis.com medication prices online pharmacy without prescription [url=http://www.mikrei.com/canforum/member.php?action=profile&uid=116688]online drug[/url]

  41. 응답

    viagra for sale
    viagra for sale online price of cialis in canada cialis viagra best online canadian pharmacies [url=http://www.eqianke.com/home.php?mod=space&uid=208753]viagra purchase[/url] list of canada online pharmacies online pharmacy viagra buy viagra online canada pharmacy medications without prescription [url=https://anotepad.com/notes/j9aykgkk]cialis online in canada[/url]
    cialis without a prescription canadian pharmacy for cialis price of cialis in canada viagra pharmacy online [url=http://www.hgs99.com/home.php?mod=space&uid=177300]online canadian pharmacies[/url]

  42. 응답

    sildenafil viagra
    canadian pharcharmy’s cialis on canadian pharmacy discount tadalafil cheap viagra 100mg [url=https://tarifkchr.net/user/alarmbrush62/]canada drugstore[/url] cvs pharmacy cialis for sale cialis from canada pharmacy viagra online [url=https://www.adpost4u.com/user/profile/564969]cialis from.canada[/url]
    kamagra gel canada pharmacy cialis viagra canada with prescription viagra in india [url=https://lovebookmark.date/story.php?title=maximize-your-elegance-regimen-with-these-tips#discuss]viagra india[/url]

  43. 응답

    india generic viagra
    cialis without a prescription canadian pharmacy – viagra canadian cialis online pharmacy does viagra work [url=http://www.sg0536.com/home.php?mod=space&uid=669175]best price on cialis prescription[/url] buy drugs online viagra order online best online pharmacies do you need a prescription for viagra in canada [url=http://www.pvpvv.com/home.php?mod=space&uid=246956]viagra dose[/url]
    prescription cialis buy viagra without prescription canada canadian pharmacy store canadian pharmacy meds [url=https://securityholes.science/wiki/Stopping_The_Panic_Dealing_With_as_Well_As_managing_Panic_Attacks]viagra 100 mg[/url]

  44. 응답

    canadian cheap viagra
    cheapest viagra buy viagra from canada cost of viagra viagra patent expiration [url=https://ccm.net/profile/user/nationswiss70]cheap viagra canadian[/url] buy viagra without prescription genuine viagra viagra from canada pharmacy viagra [url=https://securityholes.science/wiki/Canada_Pharmacies_Can_Assist_People_Remain_Healthy_As_Well_As_Avoid_The_Prices_Of_Going_To_A_Pharmacist]drugstore canada[/url]
    generic cialis from canada canada pharmacy viagra viagra prescription from canada viamedic.com [url=http://parvona.net/user/hosedetail94/]canadian pharmaceuticals[/url]

  45. 응답

    canadian pharcharmy
    ed pills online cialis at canadian pharmacies viagra buy online online canadian pharcharmy [url=http://bbs.51pinzhi.cn/home.php?mod=space&uid=2434412]cost of cialis at walgreens[/url] canadian online pharmacy cilas viagra order canada drugs cialis [url=http://www.habotao.com/bbs/home.php?mod=space&uid=80601]best online canadian prescription companies[/url]
    ed drugs – canada canadian viagra online pharmacy reviews canadadrugstoresonline.com rx online [url=https://coub.com/incomecredit68]cialis[/url]

  46. Pingback: Temp EMail

  47. antift

    응답

    The gameplay might seem a touch familiar, but everything here is top-notch: chunky retro graphics; jaunty soundtrack; responsive controls and well-judged physics when jetpacking through the air; and tight level design that forces you to pay attention if you don’t want to keep getting impaled on spikes. If you want more fun games to play, here are some articles with additional recommendations on popular, good-quality browser games from the last few years: Returning to the sci-fi theme in this article, Mars Tomorrow is a game that sees you attempt to make the planet of Mars inhabitable. You will need to do your best to make this environment safe for human life. You have to do so while also exploring its vast entirety and building a colony. Additionally, you can also join forces with other settlers in the game too! This makes it a great game for endless hours of fun! https://johnathanndjx97643.bloggactivo.com/8851457/games-to-play-with-friends-on-laptop Truck Simulator 2 – Europe Try to safely drive your monster truck up and over all of the crazy roads. Avoid bombs on the road, avoid crashing and make sure not to land at an odd angle. Collect stars along the way to the finish line. Can you safely navigate to the end of all 8 levels? В© 2012 - 2021 Pacogames.com. All rights reserved. Categories in which Monster Truck VS Zombie is included: Copyright В© 2021 SPIL GAMES All rights reserved. Lagged is the best online games platform. Challenge your friends to thousands of different games that you can play on your pc, tablet or mobile device. Compete for high scores and achievements as you try to climb to the top of our global points leaderboard. Dinosaur Truck – Driving Simulator Games For Kids

  48. Embano

    응답

    Не стоит думать, что приготовление блюд, полезных для мужской силы, будет отнимать много сил и времени. Чаще всего, они довольно простые и не требуют навыков шеф-поваров. Если они прочно войдут в твое меню, то гармония в интимной сфере семейной жизни обеспечена. Оглавление Так получилось, что супругу был назначен Эроксин Экстра. Мы думали – лечение затянется на пару недель, но ошиблись и уже на третий день, после начала приема, почувствовали результат:) Это при том, что муж пил по одной капсуле один раз в день! Бывают проблемы на работе, устаешь вот тут и помогает Эроксин Экстра. Принимаю его не регулярно, а только при возникновении затруднения с эрекцией. Помогает замечательно и нет ни каких побочных эффектов, как у других похожих препаратов. Можно принимать и как профилактическое средство. Настурция используется как пряно-вкусовое растение аналогично крессу, как приправа к супам, овощам, ухе. https://wiki-global.win/index.php/Продукты_повышающие_потенцию Результативный диагностический поиск и выявление причины развития импотенции предопределяют успешность лечения заболевания. На сегодняшний день в терапии эректильной дисфункции эффективно сочетаются, как традиционные методы, так и ново разработанные способы лечения. Для того чтобы оформить заказ препараты для потенции после 60 лет необходимо оставить свои контактные данные на сайте. В течение 15 минут оператор свяжется с вами. Уточнит у вас все детали и мы отправим ваш заказ. Через 3-10 дней вы получите посылку и оплатите её при получении. Не следует совмещать прием Viagra Connect c грейпфрутом или грейпфрутовым соком, так как это может помешать нормальному действию лекарства. Преимущество всех этих общих лекарств от импотенции заключается в том, что они практически безвредны и не могут иметь существенных негативных последствий, осложнений.  Лечение импотенции у мужчин может иметь много направлений, и каждый клинический случай имеет свой алгоритм терапии. Так как все зависит от первопричины, спровоцировавшей нарушение эрекции, ослабление потенции, снижение полового влечения.

Leave a comment

이메일 주소는 공개되지 않습니다.