Click here to Skip to main content
15,923,006 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SHGetSpecialFolder problem with Win98 Pin
Abin9-Sep-03 14:02
Abin9-Sep-03 14:02 
GeneralRe: SHGetSpecialFolder problem with Win98 Pin
David Crow9-Sep-03 9:57
David Crow9-Sep-03 9:57 
GeneralWindows hooks and TranslateMessage function Pin
mannelig9-Sep-03 8:32
mannelig9-Sep-03 8:32 
GeneralRe: Windows hooks and TranslateMessage function Pin
Joseph Marzbani15-Sep-08 3:22
Joseph Marzbani15-Sep-08 3:22 
GeneralVC.Net Debugging Pin
Dave Loeser9-Sep-03 7:58
Dave Loeser9-Sep-03 7:58 
GeneralMS Access and datetime picker Pin
Steve Messer9-Sep-03 7:57
Steve Messer9-Sep-03 7:57 
GeneralRe: MS Access and datetime picker Pin
Steve Messer9-Sep-03 22:11
Steve Messer9-Sep-03 22:11 
GeneralWeird Problem! Please Help Pin
Binayak9-Sep-03 7:47
Binayak9-Sep-03 7:47 
Hi,

I have an editable CTreeCtrl, in the function OnEndlabeleditTree() I decide whether I would save the change or, not. The problem is at the end of the function I check the ItemText of the edited label and it always remains unchanged although the label actually changes. Please tell me how I can actually reflect the change in the program. Here is the code:



void CGeneratorView::OnEndlabeleditTree(NMHDR* pNMHDR, LRESULT* pResult)
{
TV_DISPINFO* pTVDispInfo = (TV_DISPINFO*)pNMHDR;
HTREEITEM hItem = pTVDispInfo->item.hItem;
CEdit* pEdit = m_TreeCtrl1.GetEditControl();
CString str;
pEdit->GetWindowText(str);
if (str.IsEmpty())
{
MessageBox("Please enter a valid Label!");
*pResult = FALSE;
return;

}
else
{
*pResult = TRUE;
}
m_TreeCtrl1.SelectItem (hItem);
MessageBox (m_TreeCtrl1.GetItemText(hItem));
}


GeneralRe: Weird Problem! Please Help Pin
igor19609-Sep-03 9:23
igor19609-Sep-03 9:23 
GeneralRe: Weird Problem! Please Help Pin
Binayak9-Sep-03 10:15
Binayak9-Sep-03 10:15 
GeneralRe: Weird Problem! Please Help Pin
igor19609-Sep-03 11:52
igor19609-Sep-03 11:52 
Generalunable to include Excel Pin
act_x9-Sep-03 7:12
act_x9-Sep-03 7:12 
GeneralRe: unable to include Excel Pin
David Crow9-Sep-03 7:26
David Crow9-Sep-03 7:26 
GeneralRe: unable to include Excel Pin
act_x9-Sep-03 8:14
act_x9-Sep-03 8:14 
GeneralRe: unable to include Excel Pin
David Crow9-Sep-03 8:16
David Crow9-Sep-03 8:16 
GeneralRe: unable to include Excel Pin
act_x9-Sep-03 8:17
act_x9-Sep-03 8:17 
Generalchar * to VARIANT Pin
act_x9-Sep-03 6:29
act_x9-Sep-03 6:29 
GeneralRe: char * to VARIANT Pin
Miszou9-Sep-03 6:41
Miszou9-Sep-03 6:41 
QuestionHow to take the address of a smart pointer? Pin
Miszou9-Sep-03 6:16
Miszou9-Sep-03 6:16 
AnswerRe: How to take the address of a smart pointer? Pin
antlers9-Sep-03 6:58
antlers9-Sep-03 6:58 
GeneralRe: How to take the address of a smart pointer? Pin
Miszou9-Sep-03 7:13
Miszou9-Sep-03 7:13 
GeneralTemplate function in a class Pin
ns9-Sep-03 5:50
ns9-Sep-03 5:50 
GeneralRe: Template function in a class Pin
geo_m9-Sep-03 7:02
geo_m9-Sep-03 7:02 
GeneralRe: Template function in a class Pin
Alvaro Mendez9-Sep-03 7:37
Alvaro Mendez9-Sep-03 7:37 
GeneralRe: Template function in a class Pin
ns9-Sep-03 8:37
ns9-Sep-03 8:37 

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.