473,320 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

CTreeCtrl move + button to the right

Hello everybody,

I created a CTreeCtrl and I'd like to move the expand button to the
right.

here's my code
CTreeCtrl tree;
tree->Create(WS_CHILD | WS_VISIBLE | WS_BORDER | WS_TABSTOP |
TVS_HASLINES | TVS_HASBUTTONS | TVS_LINESATROOT |
TVS_SINGLEEXPAND | TVS_SHOWSELALWAYS |
TVS_TRACKSELECT,
CRect(10, 10, 200, 240), this, 0x1221);

HTREEITEM hTree, hText;

hTree = tree->InsertItem("Root", TVI_ROOT);

hCompany = tree->InsertItem("Item 1", hTree);
tree->InsertItem("SubItem 1", hText);
tree->InsertItem("SubItem 2", hText);
tree->InsertItem("SubItem 3", hText);

but with this code the expand button appears at the right. Is it
possible to move the expand button to the right that it looks like
this:

Root - Normally it looks like this: - Root
Item 1 + + Item 1

I have no idea how to move the +/- expand button to the right, so that
it appears at the right of the text and not at the left of the text.

Thanks in Advance

cu fakie

May 13 '06 #1
2 3343
ha********@yahoo.com wrote:
Hello everybody,

I created a CTreeCtrl and I'd like to move the expand button to the
right.


Please ask platform specific questions in platform specific newsgroups.
See http://www.parashift.com/c++-faq-lit...t.html#faq-5.9.
Jonathan

May 13 '06 #2
hi Jonathan,

thx for the tipp.
cu fakie

May 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Eric Kiernan | last post by:
I have a form that I previously created and put a number of text box controls on. Everything previously worked. Now when I enter the form ( in design mode ), I can't move any of the controls to...
1
by: gmtongar | last post by:
Hi, I've made a custom scrollbar which consists of three buttons and a panel. My problem is: How do I move it like a scrollbar slider? I've tried DoDragDrop, but it does not appear to be the same,...
1
by: ask | last post by:
Hi NG Hop you can help me out here. I have a CTreeCtrl and bold selected items with the "myTreeCtrl->SetItemState( mySelectedItem, TVIS_BOLD, TVIS_BOLD );" - but how do I set it back to the...
0
by: Rui Oliveira | last post by:
I am using a tree from CTreeCtrl. To create the imagelist I am using a bitmap with 256 colours. But the icons in my tree only appear with 16 colours. What is supposed to do to have icons...
4
by: Sakharam Phapale | last post by:
Hi All, How to find the Toolbar Button Index in Mouse Move event on Toolbar. Thanks Regards Sakharam Phapale
7
by: david | last post by:
I have asked this question before. But it does not work for me. Given radion buttons in the web form design page. What I did is described as follows. A panel control is dragged into the design...
12
by: Yuaw | last post by:
I managed to cobble together some code and all I need to be on my way is to have the close button I created to always be at the top right of my pop up. The pop ups are large versions of thumbnail...
13
by: Mounir | last post by:
Hi, Assume that right and left are multiple select elements. It's about the following line : right.options=left.options; It copies the content of left.options into right.options, but...
1
by: sunishvk | last post by:
I am using CTreeCtrl in my project and i want to list all the files and subfolders in a folder recursively in CTreeCtrl. I am stuck with this.. I want the code to list all the files and subfolders in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.