How to add a hyperlink to wtl development in Windows Mobile and Windows WinCE (Windows Embedded CE)

Source: Internet
Author: User
ArticleDirectory
    • 1. # include <atlctrlx. h>
    • 2. Add a static control in the dialog box.
    • 3. Modify the ID of the static control.
    • 4. Bind DDX.
    • 5. Add the processing code

This article describes how to add hyperlink support for wtl development in Windows Mobile and Windows Embedded ce.

The procedure is as follows:

1. # include <atlctrlx. h>
 
# Include<Atlctrlx. h>

 

2. Add a static control in the dialog box.

 

3. Modify the ID of the static control.

 

4. Bind DDX.

 

Note that you must manually enter chyperlink for member type.

DDX type must use control instead of Control Handler. Otherwise, the following error occurs during compilation.

Error 1 error c2679: Binary'=': NoOperatorFound which takes a right-hand operand of Type'Atl: cwindow'(Or there is no acceptable conversion)

 

5. Add to processing Code
 
M_wndwebsite.sethyperlinkextendedstyle (hlink_usetags );// Set Style
M_wndwebsite.setlabel (_ T ("Visit <A> www.cnblogs.com/procoder </a>"));// Set display label
M_wndwebsite.sethyperlink (_ T (Http://www.cnblogs.com/procoder"));// Set hyper link

The result is as follows:

 

 

 

 

 

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.