| |

VerySource

 Forgot password?
 Register
Search
View: 844|Reply: 5

How to make the children of ListView can be selected and support editing and copying?

[Copy link]

5

Threads

23

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-1-6 09:10:01
| Show all posts |Read mode
As the title
Reply

Use magic Report

0

Threads

30

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-1-6 10:00:01
| Show all posts
SetItemState (nItem, LVIS_SELECTED, LVIF_STATE);

Edit and copy can process itemdata as required (if your information for each item is stored in a structure and stored in itemdata).
Reply

Use magic Report

5

Threads

23

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

 Author| Post time: 2020-1-19 07:18:02
| Show all posts
According to the upstairs, only the table items can be selected, but the sub-items still cannot be selected.
Reply

Use magic Report

5

Threads

23

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

 Author| Post time: 2020-1-19 12:27:02
| Show all posts
PS: I am talking about a list control in report form
Reply

Use magic Report

0

Threads

9

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-27 09:54:01
| Show all posts
http://blog.csdn.net/uuzhang/archive/2006/05/05/708697.aspx

http://topic.csdn.net/t/20030210/14/1414185.html

http://www.codeproject.com/listctrl/listcheckbox.asp
Reply

Use magic Report

2

Threads

19

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-1-31 00:27:02
| Show all posts
Add the following line of code to the initialization function of the object parent class (such as CDialog :: OnInitDialog ())
[List box object name] .SendMessage (LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_FULLROWSELECT, LVS_EX_FULLROWSELECT);
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list