Click here to Skip to main content
15,891,372 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString Stupidity Pin
Daniel Turini20-Aug-02 11:19
Daniel Turini20-Aug-02 11:19 
GeneralRe: CString Stupidity Pin
carrie20-Aug-02 11:23
carrie20-Aug-02 11:23 
Generalget text of first item in Clistctrl without selecting it Pin
ns20-Aug-02 10:13
ns20-Aug-02 10:13 
GeneralRe: get text of first item in Clistctrl without selecting it Pin
dazinith20-Aug-02 10:24
dazinith20-Aug-02 10:24 
GeneralRe: get text of first item in Clistctrl without selecting it Pin
ns20-Aug-02 10:50
ns20-Aug-02 10:50 
GeneralFile Version Pin
act_x20-Aug-02 10:00
act_x20-Aug-02 10:00 
GeneralRe: File Version Pin
Dave Bryant20-Aug-02 10:26
Dave Bryant20-Aug-02 10:26 
GeneralCTreeCtrl and Selection Changed Event Pin
dazinith20-Aug-02 9:47
dazinith20-Aug-02 9:47 
I have a CTreeCtrl who has a message handler for TVN_SELCHANGED
ON_NOTIFY(TVN_SELCHANGED, IDC_MYTREE, OnTvnSelchangedMyTree)
this function looks like this:
void CMyApp::OnTvnSelchangedMyTree(NMHDR *pNMHDR, LRESULT *pResult)
{
	TRACE("CMyApp::OnTvnSelchangedMyTree()\n");
	LPNMTREEVIEW pNMTreeView = reinterpret_cast<LPNMTREEVIEW>(pNMHDR);
	UpdateStatusPane();
	*pResult = 0;
}


my problem is that when I populate the list it calls this OnTvnSelchangedMyTree() after every item that is added to the list.. my UpdateStatusPane() is a little lengthy, so it makes the populating of my tree slow..

is there any way to add items to a tree without sending a selection changed message after each one added? anyone have any other suggestions?

thanks in advance!

-dz
GeneralRe: CTreeCtrl and Selection Changed Event Pin
Ernest Laurentin20-Aug-02 11:08
Ernest Laurentin20-Aug-02 11:08 
GeneralRe: CTreeCtrl and Selection Changed Event Pin
dazinith20-Aug-02 11:19
dazinith20-Aug-02 11:19 
GeneralRe: CTreeCtrl and Selection Changed Event Pin
Joel Lucsy21-Aug-02 12:38
Joel Lucsy21-Aug-02 12:38 
GeneralRe: CTreeCtrl and Selection Changed Event Pin
dazinith22-Aug-02 3:43
dazinith22-Aug-02 3:43 
GeneralHyperlink Question Pin
Onyme20-Aug-02 9:13
sussOnyme20-Aug-02 9:13 
GeneralRe: Hyperlink Question Pin
dazinith20-Aug-02 9:36
dazinith20-Aug-02 9:36 
GeneralRe: Hyperlink Question Pin
jmkhael20-Aug-02 9:45
jmkhael20-Aug-02 9:45 
GeneralRe: Hyperlink Question Pin
Anonymous20-Aug-02 9:49
Anonymous20-Aug-02 9:49 
QuestionWhy was WinCE implementation better than Win32? Pin
djrisc20-Aug-02 8:50
djrisc20-Aug-02 8:50 
GeneralRemove taskbar icon to CWnd derived wnd Pin
BlackSmith20-Aug-02 8:39
BlackSmith20-Aug-02 8:39 
GeneralModal MessgeBox Problem Pin
moobob20-Aug-02 7:45
moobob20-Aug-02 7:45 
GeneralRe: Modal MessgeBox Problem Pin
Mustafa Demirhan20-Aug-02 9:08
Mustafa Demirhan20-Aug-02 9:08 
GeneralRe: Modal MessgeBox Problem Pin
moobob20-Aug-02 9:20
moobob20-Aug-02 9:20 
GeneralRe: Modal MessgeBox Problem Pin
moobob20-Aug-02 9:31
moobob20-Aug-02 9:31 
GeneralRe: Modal MessgeBox Problem Pin
Mustafa Demirhan20-Aug-02 10:07
Mustafa Demirhan20-Aug-02 10:07 
GeneralCEdit::ReplaceSel Help Needed Pin
Cerb20-Aug-02 7:10
Cerb20-Aug-02 7:10 
GeneralRe: CEdit::ReplaceSel Help Needed Pin
Ravi Bhavnani20-Aug-02 7:35
professionalRavi Bhavnani20-Aug-02 7:35 

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.