Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to set the multi selection property of a list box as TRUE through the code Pin
Amrit Agr12-Jul-11 0:34
Amrit Agr12-Jul-11 0:34 
AnswerRe: How to set the multi selection property of a list box as TRUE through the code Pin
Richard MacCutchan12-Jul-11 0:37
mveRichard MacCutchan12-Jul-11 0:37 
AnswerRe: How to set the multi selection property of a list box as TRUE through the code Pin
Eugen Podsypalnikov13-Jul-11 0:16
Eugen Podsypalnikov13-Jul-11 0:16 
QuestionHow to catch TVM_DELETE or TVN_DELTEITEM from a custom tree control. Pin
Amrit Agr11-Jul-11 20:29
Amrit Agr11-Jul-11 20:29 
AnswerRe: How to catch TVM_DELETE or TVN_DELTEITEM from a custom tree control. Pin
Code-o-mat11-Jul-11 21:50
Code-o-mat11-Jul-11 21:50 
GeneralRe: How to catch TVM_DELETE or TVN_DELTEITEM from a custom tree control. Pin
Amrit Agr11-Jul-11 23:21
Amrit Agr11-Jul-11 23:21 
GeneralRe: How to catch TVM_DELETE or TVN_DELTEITEM from a custom tree control. Pin
Code-o-mat11-Jul-11 23:30
Code-o-mat11-Jul-11 23:30 
AnswerRe: How to catch TVM_DELETE or TVN_DELTEITEM from a custom tree control. Pin
Richard MacCutchan11-Jul-11 23:44
mveRichard MacCutchan11-Jul-11 23:44 
From what you are saying here you are mis-using this message. You should capture the TVN_DELETEITEM notification in your TreeView control and use the information passed to you to decide what action to take. You should then call your alternative function directly to perform whatever actions are necessary; there is no need to use (and you probably should not use) SendMessage() for that purpose. Something like:
ON_NOTIFY(TVN_DELETEITEM, id, DoTvnDelete)
...
LRESULT DoTvnDelete(...)
{
    // do some work here
    LRESULT lrc = DoDeleteAction(parameters ...);
    // do some more work here
    return someResult;
}

The best things in life are not things.

GeneralRe: How to catch TVM_DELETE or TVN_DELTEITEM from a custom tree control. Pin
Amrit Agr12-Jul-11 0:35
Amrit Agr12-Jul-11 0:35 
QuestionNeed to verify my RIFF file header construction - sample code wanted Pin
Vaclav_11-Jul-11 8:02
Vaclav_11-Jul-11 8:02 
AnswerRe: Need to verify my RIFF file header construction - sample code wanted Pin
Vaclav_11-Jul-11 8:42
Vaclav_11-Jul-11 8:42 
AnswerRe: Need to verify my RIFF file header construction - sample code wanted Pin
enhzflep11-Jul-11 16:09
enhzflep11-Jul-11 16:09 
GeneralRe: Need to verify my RIFF file header construction - sample code wanted Pin
Vaclav_11-Jul-11 17:28
Vaclav_11-Jul-11 17:28 
AnswerPARTIALLY SOLVED Need to verify my RIFF file header construction - sample code wanted Pin
Vaclav_12-Jul-11 16:23
Vaclav_12-Jul-11 16:23 
QuestionObtaining a list of what exceptions code can throw Pin
bob1697211-Jul-11 4:26
bob1697211-Jul-11 4:26 
AnswerRe: Obtaining a list of what exceptions code can throw Pin
Albert Holguin11-Jul-11 5:44
professionalAlbert Holguin11-Jul-11 5:44 
GeneralRe: Obtaining a list of what exceptions code can throw Pin
bob1697211-Jul-11 6:39
bob1697211-Jul-11 6:39 
GeneralRe: Obtaining a list of what exceptions code can throw Pin
Albert Holguin11-Jul-11 7:46
professionalAlbert Holguin11-Jul-11 7:46 
GeneralRe: Obtaining a list of what exceptions code can throw Pin
MicroVirus12-Jul-11 6:02
MicroVirus12-Jul-11 6:02 
QuestionHow to send TVN_BEGINLABELEDIT from a custom tree control Pin
Amrit Agr10-Jul-11 21:50
Amrit Agr10-Jul-11 21:50 
AnswerRe: How to send TVN_BEGINLABELEDIT from a custom tree control Pin
Richard MacCutchan10-Jul-11 22:13
mveRichard MacCutchan10-Jul-11 22:13 
AnswerRe: How to send TVN_BEGINLABELEDIT from a custom tree control Pin
User 742933810-Jul-11 22:21
professionalUser 742933810-Jul-11 22:21 
GeneralRe: How to send TVN_BEGINLABELEDIT from a custom tree control Pin
Amrit Agr10-Jul-11 22:59
Amrit Agr10-Jul-11 22:59 
QuestionHow can use Proxy Settings in VC++? Pin
Le@rner10-Jul-11 19:29
Le@rner10-Jul-11 19:29 
AnswerRe: How can use Proxy Settings in VC++? Pin
Cool_Dev10-Jul-11 20:50
Cool_Dev10-Jul-11 20:50 

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.