Tips for VC using ctooltipctrl

Source: Internet
Author: User

Follow these steps to find information and test the information correctly.

1. Define ctooltipctrl m_tip; in

Bool cxxxdlg: oninitdialog ()

{

...

Enabletooltips (true );
M_tip.create (this );
M_tip.activate (true );
Crect RC; // RC is the Coordinate Position of a region. Note that the coordinates of non-customer regions are generally obtained and need to be converted to those of non-customer regions.
M_tip.addtool (this, "help", & rc, 1); // You can also add a prompt for a control to obtain its cwnd * pointer and region size.

}

2. Reload virtual bool pretranslatemessage (MSG * PMSG) of the DLG );

The implementation is as follows:

Bool cxxxdlg: pretranslatemessage (MSG * PMSG)
{
If (m_tip)
M_tip.relayevent (PMSG );
Return cdialog: pretranslatemessage (PMSG );

}

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.