How do I do this programmatically? Preferably in vb, but ny help
appreciated.
Colin,
The only easy way I've seen of doing this is to fake the '*' key being
pressed. The hard way is to write a recursive routine to expand each
child node.
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.
Any more ideas?
"David Lowndes" <dav...@mvps.org> wrote in message
news:k6h3ss86lb27vm33c...@4ax.com...
If you don't want the re-draw, have you tried using WM_SETREDRAW
around your code?
David Lowndes <dav...@mvps.org> wrote in message
news:lhu3ss8odo0rrcenv...@4ax.com...
>
> >Yes I've done the recursive routine and it takes far too long -
presumably
> >because the treeview redraws for every expansion
>
> If you don't want the re-draw, have you tried using WM_SETREDRAW
> around your code?
>
The possible values for nCode are described in MSDN for
CTreeCtrl::Expand function.
HTH, Jens
Colin schrieb:
m_treeCtrl.SendMessage(WM_KEYDOWN, (WPARAM)VK_MULTIPLY, (LPARAM)0);
It simulates the '*' action...only make sure you select the root node
first.
-Jeff
Sent via Deja.com http://www.deja.com/
Before you buy.