Click here to Skip to main content
15,921,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: How can use Proxy Settings in VC++? Pin
Le@rner11-Jul-11 0:12
Le@rner11-Jul-11 0:12 
QuestionHow to send events to extended child control? Pin
rahul.kulshreshtha8-Jul-11 20:21
rahul.kulshreshtha8-Jul-11 20:21 
AnswerRe: How to send events to extended child control? Pin
Richard MacCutchan9-Jul-11 2:05
mveRichard MacCutchan9-Jul-11 2:05 
GeneralRe: How to send events to extended child control? Pin
rahul.kulshreshtha9-Jul-11 8:24
rahul.kulshreshtha9-Jul-11 8:24 
QuestionPicturControl Pin
manju 38-Jul-11 19:51
manju 38-Jul-11 19:51 
AnswerRe: PicturControl - REPOST Pin
Richard MacCutchan8-Jul-11 23:30
mveRichard MacCutchan8-Jul-11 23:30 
QuestionCImageList Pin
manju 38-Jul-11 18:49
manju 38-Jul-11 18:49 

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.