Click here to Skip to main content
16,006,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Please hlep: how to create a Help file in VB/VC++ project? Pin
Nish Nishant25-Jun-02 22:42
sitebuilderNish Nishant25-Jun-02 22:42 
GeneralRe: Please hlep: how to create a Help file in VB/VC++ project? Pin
DengJW25-Jun-02 22:58
DengJW25-Jun-02 22:58 
GeneralRe: Please hlep: how to create a Help file in VB/VC++ project? Pin
Nish Nishant25-Jun-02 23:02
sitebuilderNish Nishant25-Jun-02 23:02 
GeneralGot it. Thanks Pin
DengJW25-Jun-02 23:13
DengJW25-Jun-02 23:13 
GeneralDataValidation of text box placed in flexgrid Pin
mageshswami25-Jun-02 21:46
mageshswami25-Jun-02 21:46 
GeneralDetermining paper tray alignment (non-MFC) Pin
25-Jun-02 20:50
suss25-Jun-02 20:50 
GeneralAutomation of legacy Applications Pin
vikramlinux25-Jun-02 19:37
vikramlinux25-Jun-02 19:37 
GeneralProblem in handling Esc key while editing treeitem label Pin
vasu25-Jun-02 18:23
vasu25-Jun-02 18:23 
Hi,
I have a tree control and I am handling in place edit by overriding the methods OnBeginLabelEdit() and OnEndLabelEdit(). Before editing, I am storing the current name in a member variable "m_strPrevName". While editing, when I press Esc key, I am setting the previous name as shown below.

CMyTreeCtrl::OnEndLabelEdit(NMHDR* NMHDR, LRESULT* Result)
{
if (pTVDispInfo->item.pszText == NULL)
{
// yes. User pressed Esc key. Set the previous name
SetItemText(childItem, m_strPrevName);
*Result = 1;
}
}

The SetItemText() method is returning true, but the treeitem is not updated and it is NULL. How can I set the previous name??

sreenivas
GeneralRe: Problem in handling Esc key while editing treeitem label Pin
Rage25-Jun-02 22:14
professionalRage25-Jun-02 22:14 
QuestionHow to get the printer's information Pin
blongtq25-Jun-02 18:21
blongtq25-Jun-02 18:21 
AnswerRe: How to get the printer's information Pin
Joel Lucsy26-Jun-02 5:51
Joel Lucsy26-Jun-02 5:51 
GeneralRe: How to get the printer's information Pin
blongtq26-Jun-02 17:45
blongtq26-Jun-02 17:45 
Generallistview & Win98 Pin
Maurizio Pisano25-Jun-02 18:13
Maurizio Pisano25-Jun-02 18:13 
GeneralRe: listview & Win98 Pin
Nish Nishant25-Jun-02 19:27
sitebuilderNish Nishant25-Jun-02 19:27 
GeneralRe: listview & Win98 Pin
Maurizio Pisano25-Jun-02 19:43
Maurizio Pisano25-Jun-02 19:43 
GeneralRe: listview & Win98 Pin
Maurizio Pisano26-Jun-02 1:01
Maurizio Pisano26-Jun-02 1:01 
GeneralSetClipboardViewer Pin
adara25-Jun-02 18:07
adara25-Jun-02 18:07 
GeneralRe: SetClipboardViewer Pin
Rage25-Jun-02 22:09
professionalRage25-Jun-02 22:09 
GeneralWin32 Tree Question Pin
NullStream25-Jun-02 17:47
NullStream25-Jun-02 17:47 
GeneralRe: Win32 Tree Question Pin
Michael Dunn25-Jun-02 17:51
sitebuilderMichael Dunn25-Jun-02 17:51 
GeneralRe: Win32 Tree Question Pin
NullStream25-Jun-02 19:01
NullStream25-Jun-02 19:01 
GeneralRe: Win32 Tree Question Pin
Rage25-Jun-02 22:39
professionalRage25-Jun-02 22:39 
GeneralRe: Win32 Tree Question Pin
Roger Broomfield26-Jun-02 0:52
Roger Broomfield26-Jun-02 0:52 
GeneralRe: Win32 Tree Question Pin
NullStream26-Jun-02 1:24
NullStream26-Jun-02 1:24 
GeneralRe: Win32 Tree Question Pin
Roger Broomfield26-Jun-02 3:25
Roger Broomfield26-Jun-02 3:25 

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.