Adding Tooltip to any control in your Dialog (multiline)

This class helps the user in adding tooltip to any control in the dialog. Tooltip information can be more than one line.
  1. Add MFECToolTip.h and MFECToolTip.cpp in your project
  2. In OnInitDialog, call the Create function and add the tooltip information to any control you would like to have.

    For example:
    In SampleDlg.h add a variable

               MFECToolTip m_toolTip;
    

    In SampleDlg.cpp
           SampleDlg::OnInitDialog()
            {
                m_toolTip.Create( this );    // after creating, add the information
                m_toolTip.AddControlInfo( contol_ID, information, background_color, text_color );
                // control ID is of type UINT
                // information is of type CStringArray.
                // background_color and text_color are optional
            }
    
  3. Override the dialog's PreTranslateMessage to handle mouse movement.
    BOOL CToolTipExDlg::PreTranslateMessage( MSG *pMsg )
    {
            if( pMsg->message == WM_MOUSEMOVE )
            {
                    POINT pt = pMsg->pt;    
                    ScreenToClient( &pt );
    
                    // this is the only function to call
                    m_toolTip.ShowToolTip( (CPoint)pt );
            }
    
            return CDialog::PreTranslateMessage(pMsg);
    }
    
  4. explicitly show the tooltip in a particular control, call ShowToolTip( controlID ) with control ID as parameter. Make sure you call AddControlInfo() to add information for this control, otherwise no tooltip is displayed.
  5. Delete or remove the existing tooltip information, call RemoveControlInfo( controlID ) and pass the control ID. If not found nothing happens.
  6. So, you can add and remove tooltip at runtime. Try!

Download demo project - 58 KB

Download source - 3.4 KB



Comments

  • Où acheter pas cher lisseur ghd pink Onil en Norvège

    Posted by fpgfpk315 on 07/16/2013 02:57pm

    Les plaques noires scintillantes se détachent sur le rouge riche, avec la technologie céramique avancée, ils glissent doucement dans les cheveux fait coiffer sans effort tout en donnant à vos cheveux une finition parfaite. Certains style est obtenue à partir de droit et élégant aux grandes boucles bondissantes. Le look élégant et rationalisé GHD défrisage des cheveux Ruby Rich feront coiffer les cheveux long et de longueur moyenne à la maison un jeu d'enfant - obtenir cette finition salon pour vos cheveux quand et où vous voulez. [url=http://bbeatsinorge.cabanova.com/]ghd pas cher lisseur[/url] Le ressort de la boutique, il est beaucoup Cheap GHD Norge.Our lisseur ghd pas seulement pas cher mais la qualité est Veldig soutien-gorge, est la meilleure product.These ghd pas cher du monde a Flot différent versjoner av ghd stylers cheveux y hjelpe skjønnhet bevisst en y Öppna son Utseende de rêve . Ils sont conçus pour y do coiffure oppleve un grand, avec des résultats étonnants merkbart. Nous consacrons-nous ici å servir chaque client avec lisseur ghd produit beste et Best service.and ces ghd droit Rod Price mer tiltrekke you.We pense que vous nageoire vos lisseur ghd pas cher de favoris. [url=http://ghdpascherfer.webgarden.es/]ghd lisseur prix[/url] Les images sur les sites Web qui vendent ces lisseur GHD fausses ne sont pas toujours ce que vous obtenez en fait. Parfois, le site contient des images de vrais lisseur GHD, alors que vous vous retrouvez avec un imitation.Because pas cher, il ya tant de sites Web qui vendent lisseur GHD bon marché, il peut être difficile de dire quels sont ceux qui sont légitimes. Et il peut souvent être encore plus difficile de dire si redresseurs qui est vrai lorsque vous les avez reçus.

    Reply
  • where you can steal the cheapest clarisonic mia

    Posted by iouwanzi on 06/06/2013 08:49am

    [url=http://www.australiaclarisonic.com/]clarisonic australia[/url] peut-être mieux si vous profitez de cette fondation se bloque style pour le monde moderne. devenir une personne mystifié destinée à une bonne approche très bon pour faire la coiffure impressionnante? vous permet de le fait que c’est dans la terre soigneusement introduire une règle peut être limitée par un excellent instrument qui est connecté n’est pas vraiment efficace appréciation des résultats définitifs de ces cheveux crépus? et peut également demander le jaune est toujours dans vos propres besoins redressement de vos cheveux. Rose tout simplement charmant, le moment, en raison de la longue durée développer la gestion motif merveilleux et très important. En outre, ghd lisseur en céramique infrarouge critique couvre belle chevelure bouclée, et également la compression d’huiles naturelles, de l’eau et de serrures colorants alimentaires, bouclés cheveux sauvages éclatantes assurés reçoivent des produits de qualité supérieure qui va venir. [url=http://www.australiaclarisonic.com/clarisonic-classic]clarisonic classic[/url] Les producteurs primaires suivantes commencé pour sa bonne qualité merveilleuse de votre sèche-cheveux et fer à lisser est aujourd’hui célèbre également la distinction entre les femmes qui parfois vous avez besoin pour redresser votre chevelure afin d’éliminer ces types de problèmes ghd fer luxe Violet, à son tour, n’est pas un peu ne serait tout simplement pas seulement en possession du logiciel. un temps très long sur les compétences à l’aide de modèle MK4 GHD coiffer les cheveux bouclés, qui habituellement aurait certainement visiteurs parfaites un partage vraiment Thru la douceur, verrouille par exemple signifiait redresser ce n’est, en général, les lois de tension semi-automatique ou entièrement automatique et les règlements, vous pouvez acheter un bon cheveu sauvage style avec vous partout dans le monde grâce à une Botheration vitale tout autour. meilleurs d’entre eux à travers un endroit spécifique pour redresser redresseur GHD MK4 cheveux bouclés pourraient l’être. problème en effet, le fait qui se produit à l’aide d’un opérateur capable dvd, plus de points, le type choisi des méthodes simples pour vous aider à contrôler l’application correcte et [url=http://www.miaclarisonicaustralia.org/clarisonic-pro]clarisonic pro[/url] Notre coiffeur étranger encouragés plus tôt ghd Gold styler à mon avis, ainsi que maintenant nos U. s. salon de coiffure en outre leur préféré dans mon expérience – car il est ce que vos applications amant dans le salon, ainsi qu’à la maison (la dame s’avère en outre faire un copain, donc mon partenaire et j’ai confiance dans la jeune fille!). Votre nom de marque est en fait le meilleur et même fera un cheveux sentiment fantastique.Réveillé par le glamour unique dans les années folles, cutting edge styler généralement la méthode pour obtenir l’attraction en ajoutant une touche de paillettes. Tous l’écarlate s’engage dans seulement deux cas Craft Deco design et le style que vous pourriez choisir.

    Reply
  • Nye ghd glattejern, de seneste oplysninger

    Posted by motherdhmm on 05/30/2013 03:44pm

    [url=http://www.buy-beatsdrdre.com/category/new-beats-dr-dre-headphones]Beats By Dr Dre[/url] Nu enden af elementet er normalt fluorescerende, og jeg har brug for glat hår. Processen tager kun fem minutter, kan dit hår vende tilbage til den oprindelige Express. Brug derefter nogle hår spray ghd hår glat hår, især hår til at beskytte håret jern strøm af overhedet temperatur på fødevarer farer, og kan hjælpe med dit hår er uønskede ioner med høj teknik. Det er delikat og ren. GHD Danmark emballage er ofte særligt, plus de er nemme at håndtere. [url=http://www.buy-beatsdrdre.com/category/2012-dr-dre-beats-outlet]dr dre beats[/url] Den mest kendte er ghd IV Salon Styler som bliver brugt verden over på blandt andet modeshows og catwalk. Fordelen ved en IV Salon Styler er de brede plader. Det betyder at man kan glatte større områder af gangen og dermed bliver hurtigere færdige. Ulempen er at de brede plader f.eks. ikke er optimale til at style håret. Vi du både kunne glatte dit hår og samtidig bruge dit ghd glattejern til at lave f.eks. krøller, så er ghd IV styler et oplagt valg. Den kan det hele og glatter også dit hår perfekt. Men den er lidt langsommere end hvis man vælger den brede salon styler fra ghd. Endelig er der også den helt smalle ghd IV Mini Styler. [url=http://www.blog.cheapbeatsbydre.co.nz/beats-by-dre-headphones]beats by dre headphones[/url] Graviditet kan også forårsage hårtab, normalt tre måneder efter, at kvinden undfanget hendes barn. hårpleje er vigtigt at undgå disse hår betingelser. Ved at spise en velafbalanceret kost, er hår givet sin fulde sundhedsmæssige fordele. Vask håret forsigtigt med shampoo en gang om dagen, lathering blidt, og ikke gnide i håret for meget på håndklæde til at tørre viser sig at være effektive i at tage sig af ens kronen. Undgå brug af hårtørrer så meget som muligt, og stil hår, når det er tør eller fugtig, ikke når de stadig er våde. Vær omhyggelig med at bruge visse hårplejeprodukter, da der er kemikalier (især dem der findes i hår farve eller hår glatning behandlinger), kan der også beskadige hai

    Reply
  • Third party site shares Six completely new things regarding nike that no one is bringing up.

    Posted by BobHotgloff on 05/22/2013 08:01am

    An overview behind sneakers that it's possible to advantage from starting today. [url=http://www.shoesjp.biz/new-balance【ニューバランス】-c-670.html]newbalance[/url] Precisely why just about everything you've heard of shoes is entirely wrong and what you should understand. [url=http://www.shoesjp.biz/nike【ナイキ】-c-634.html]ナイキ[/url] Efficient review explains the cogs and wheels for sneakers and something you want to handle straight away. [url=http://www.kutujp.biz/]アディダス[/url] Cutting edge shoes Ebook Discloses Techniques To Rule The shoes Arena [url=http://www.kutujp.biz/アディダス-adidas-c-4.html]adidas originals[/url] Explanation why almost anything that you've discovered about sneakers is undoubtedly false and what you want to learn. [url=http://www.kutujp.biz/アシックス-asics-c-3.html]asics[/url] Incredible approach for the sneakers you are able to understand about right now. [url=http://www.kutujp.biz/ナイキ-nike-c-13.html]ナイキ ランニングシューズ[/url] Beginner posting shows the low down regarding shoes and as well , reasons why need to take action today. [url=http://www.kutujapan.org/]アディダス[/url] Upcoming shoes E-book Uncovers Guidelines On How To Dominate The shoes Scene [url=http://www.kutujapan.org/adidas-アディダス-c-74.html]adidas アディダス[/url] New shoes E-book Presents The Way To Rule The sneakers Market [url=http://www.kutujapan.org/new-balance-ニューバランス-c-13.html]ニューバランス キッズ[/url] Whatever the pro's usually aren't telling over shoes and ways it affects you. [url=http://www.kutujapan.org/nike-ナイキ-c-78.html]ナイキスニーカー[/url] This is why so many people are dead wrong regarding shoes and the reasons you really should check this out post. The Only Processes To Practice shoes Plus The Way One Might Become a part of The shoes Top dogs [url=http://www.shoesja.biz/]ベルーナ[/url] Items and production throughout Sin City : sneakers leaves without any regards [url=http://www.shoesja.biz/adidas-アディダス-c-64.html]adidas originals[/url] I would say the shoes Venture Meet : Those who loves next to nothing is declared the champ?! [url=http://www.shoesja.biz/new-balance-ニューバランス-c-21.html]new balance[/url] Most recent questions about sneakers have been answered and as a result reasons why you should really read in detail each and every term in this study. [url=http://www.shoesja.biz/nike-ナイキ-c-44.html]ナイキ ランニングシューズ[/url] Ways to comprehend all things there is to understand around shoes in Four easy ways. [url=http://www.kutuja.com/]アディダス[/url] Information about how to fully understand all the stuff there is to understand related to shoes in five easy ways. [url=http://www.kutuja.com/adidas【アディダス】-c-1.html]adidas originals[/url] Beginner queries about sneakers have been answered not to mention the reasons why you should certainly browse through each term of this study. [url=http://www.kutuja.com/new-balance【ニューバランス】-c-206.html]newbalance[/url] Further from the ultimate plan for the shoes that you should read about right now. [url=http://www.kutuja.com/nike【ナイキ】-c-215.html]ナイキ[/url] Wonderful double twist on shoes [url=http://www.shoesjp.biz/]ベルーナ[/url] A miracle Formula For shoes [url=http://www.shoesjp.biz/adidas【アディダス】-c-640.html]adidas[/url] The latest double take on sneakers

    Reply
  • Nike Zephyr Max 1 FB press, have on the agenda c trick a eager color grain, the unheard of shoes

    Posted by Geozyoceada on 04/25/2013 07:08am

    In the summer in a glass interior the imperturbable sprite seems to be a decorous choice, but if the sprite "feet"? Inclination also supply you a set off, get a invigorating! This summer, Nike and Sprite [url=http://markwarren.org.uk/goodbuy.cfm]nike free run[/url] and his sneakers to a graduate of exemplary snow spread of callow, unsullied and dejected color scheme in the undying Nike Superciliousness Max 1 shoes romp a like a breath of fresh air cool scent.[url=http://northernroofing.co.uk/roofins.cfm]nike free[/url] Summer is the metre to pick a moral shoe, shoes should be a creditable choice. Qualifying series Nike Quality Max HomeTurf city recently at the end of the day comes up, this series in the first-rate Melody Max shoes to London, Paris and Milan the three paid glorification to the iconic see of Europe, combined with the characteristics of the three cities, Air Max 1 HYP,Allied Max 90 HYP,Air Max 1 and shoes such as Air Max 95, combined [url=http://markwarren.org.uk/goodbuy.cfm]nike free uk[/url] with the Hyperfuse, as marvellously as a collection of materials, such as suede, Whether you want going or retro-everything.

    Reply
  • Lightweight bright – Nike Free TR Attack in jump 2013 3 series

    Posted by Tufffruntee on 04/22/2013 03:32am

    Nike Free TR Trim 3 prominent features is to exploit the brand-new design: Nike Self-ruling 5 soles improved bending Gouge; stylish tractor layout making training more focused when; lighter preponderance, the permeability is stronger, and more fashionable shoe designs not just order shoes [url=http://northernroofing.co.uk/roofins.cfm]nike free run uk[/url] more comfortable wearing, barefoot training have compassion for incline, but also more stylish appearance. Nike Manumitted TR Then 3 provides first-class lateral solidity, you can take the legs in the leg during training. Strong vamp majuscule letters breathable grating, demean sparkle's solitary map can be [url=http://fossilsdirect.co.uk/glossarey.cfm]nike huarache free[/url] seen through it. Lightweight, rugged, piddling soap up matter familiar by completely few seams, more amenable, support is stronger. Demand more support, factor of a training irritate, foam come in more parts of the need championing flexibility, foam loose. Use stand-in say nothing moisture wicking fake materials, tiresome on your feet, refrain from maintain feet sear and comfortable. Phylite [url=http://markwarren.org.uk/property-waet.cfm]air max 90 uk[/url] midsole offers lightweight shock sustained, famous durability and unbroken outsole can do to greatly lower the all-embracing weight of the shoe. Qianzhang pods on the outsole and heel-shaped Grassland rubber enhances the shoe multi-directional gripping power on odd surfaces.

    Reply
  • How we can Add MFECToolTip.h and MFECToolTip.cpp in our project ?

    Posted by Legacy on 01/02/2003 12:00am

    Originally posted by: ashkan

    How we can Add MFECToolTip.h and MFECToolTip.cpp in our project ?
    I have inserted this files to my project but I cant have
    an object from CMFECToolTip because visualc++6 make an error from command #include "MFECToolTip.h" in MyProjectView
    I guess my method of adding a file to project is incorrect
    please guide me how can i add MFECToolTip.h and MFECToolTip.cpp files in my project ?
    thanks in advance,

    Reply
  • Use the MFC Tooltip Control, it works much simpler.

    Posted by Legacy on 09/18/2002 12:00am

    Originally posted by: Conrad Braam

    Use the MFC Tooltip Control, it works much simpler.

    Reply
  • it swallows resources

    Posted by Legacy on 08/05/2002 12:00am

    Originally posted by: Michael Aumer

    Hi,

    I use your tooltip and found out, that it swallows resources when being painted. You can check this out, by using the Resource Monitor (Win95/98Me only).

    Until today, I haven't found out why this happens. Can anybody give me some hints ?

    Thanks in advance...

    Michael

    Reply
  • Well

    Posted by Legacy on 10/19/2001 12:00am

    Originally posted by: Victor

    The thank all works perfectly

    Reply
  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • On-demand Event Event Date: September 10, 2014 Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild." This loop of continuous delivery and continuous feedback is how the best mobile …

  • A modern mobile IT strategy is no longer an option, it is an absolute business necessity. Today's most productive employees are not tied to a desk, an office, or a location. They are mobile. And your company's IT strategy has to be ready to support them with easy, reliable, 24/7 access to the business information they need, from anywhere in the world, across a broad range of communication devices. Here's how some of the nation's most progressive corporations are meeting the many needs of their mobile workers …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds