Learning Remote Control Interface design five: Delete entries

Source: Internet
Author: User

Let's look at the Unistall in the last recorded article, and when we click on it, it will send a message to the controlled end to implement the uninstall function.

Because this will I have not learned to write server, so we have to pseudo-uninstall.

Came to the function unistall.

void Cghostdlg::onolistuninstall () {    CString StrIP;     int iselect=m_list_oline. Getselectionmark (); Get cursor position    StrIP=onlinelist_ip entry information,
M_list_oline. DeleteItem (iselect); Delete entry
StrIP+ =" disconnected ";
showmessage (true, StrIP); MessageBox ("unistall"//  todo:add your command handler code here}

Then look at the effect.

When we click on the unistall:

Entries are removed from the list, and the log information outputs the unload information.

Learning Remote Control Interface design five: Delete entries

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.