Click here to Skip to main content
15,926,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can i Get Hard Drive Modal details? Pin
_AnsHUMAN_ 12-Nov-08 22:26
_AnsHUMAN_ 12-Nov-08 22:26 
AnswerRe: How can i Get Hard Drive Modal details? [modified] Pin
User 21559712-Nov-08 22:26
User 21559712-Nov-08 22:26 
QuestionHow to get disk's capacitance of remote computer with ip? Pin
ZhiLiangLin12-Nov-08 20:00
ZhiLiangLin12-Nov-08 20:00 
AnswerRe: How to get disk's capacitance of remote computer with ip? [modified] Pin
User 21559712-Nov-08 22:18
User 21559712-Nov-08 22:18 
QuestionRe: How to get disk's capacitance of remote computer with ip? Pin
David Crow13-Nov-08 3:13
David Crow13-Nov-08 3:13 
QuestionOnDragOver/OnDropEx cannot used in CStatic? [modified] Pin
kaviniswell12-Nov-08 19:44
kaviniswell12-Nov-08 19:44 
AnswerRe: OnDragOver/OnDropEx cannot used in CStatic? Pin
kaviniswell12-Nov-08 20:35
kaviniswell12-Nov-08 20:35 
Questionhow do i create shortcut for my application through coding Pin
puppya12-Nov-08 19:22
puppya12-Nov-08 19:22 
AnswerRe: how do i create shortcut for my application through coding Pin
Hamid_RT12-Nov-08 20:27
Hamid_RT12-Nov-08 20:27 
QuestionGet FolderSize Pin
NewVC++12-Nov-08 18:59
NewVC++12-Nov-08 18:59 
AnswerRe: Get FolderSize Pin
Hamid_RT12-Nov-08 19:10
Hamid_RT12-Nov-08 19:10 
AnswerRe: Get FolderSize Pin
ShilpiP12-Nov-08 19:11
ShilpiP12-Nov-08 19:11 
AnswerRe: Get FolderSize Pin
_AnsHUMAN_ 12-Nov-08 19:17
_AnsHUMAN_ 12-Nov-08 19:17 
AnswerRe: Get FolderSize Pin
Iain Clarke, Warrior Programmer13-Nov-08 3:10
Iain Clarke, Warrior Programmer13-Nov-08 3:10 
GeneralRe: Get FolderSize Pin
Hamid_RT13-Nov-08 9:00
Hamid_RT13-Nov-08 9:00 
QuestionDecrypt string Pin
cpvc++12-Nov-08 18:53
cpvc++12-Nov-08 18:53 
AnswerRe: Decrypt string Pin
enhzflep12-Nov-08 20:34
enhzflep12-Nov-08 20:34 
AnswerRe: Decrypt string Pin
ShilpiP12-Nov-08 20:38
ShilpiP12-Nov-08 20:38 
QuestionHow to create a setup for an mfc application Pin
Dhiraj kumar Saini12-Nov-08 18:26
Dhiraj kumar Saini12-Nov-08 18:26 
AnswerRe: How to create a setup for an mfc application Pin
_AnsHUMAN_ 12-Nov-08 18:29
_AnsHUMAN_ 12-Nov-08 18:29 
GeneralRe: How to create a setup for an mfc application Pin
Dhiraj kumar Saini12-Nov-08 18:47
Dhiraj kumar Saini12-Nov-08 18:47 
AnswerRe: How to create a setup for an mfc application Pin
Hamid_RT12-Nov-08 19:12
Hamid_RT12-Nov-08 19:12 
AnswerRe: How to create a setup for an mfc application Pin
Cedric Moonen12-Nov-08 20:04
Cedric Moonen12-Nov-08 20:04 
Questionlsit view item movement Pin
trioum12-Nov-08 18:26
trioum12-Nov-08 18:26 
AnswerRe: lsit view item movement Pin
Iain Clarke, Warrior Programmer13-Nov-08 3:20
Iain Clarke, Warrior Programmer13-Nov-08 3:20 
To the best of my knowledge, there is no LVM_MOVEITEMTOANOTHERPLACE message, so you'll have to write some code.

We'll assume that the item you want to move is as position N.

1/
Make a new item as position (up: N-2, down: N+2);

2/
Copy all the information from OldItem to NewItem.

3/
Delete the old item.

That's it really! Whether you read the OldItem information from the list view, or you can just regenerate it from the original data is up to you.

You also have to be careful about moving the top item up, or bottom item down. But this is a good time to add a selection handler for your list view, and disable the up and down buttons when appropriate.

Iain.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.