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_CHIL D | WS_VISIBLE | WS_BORDER | WS_TABSTOP |
TVS_HASLINES | TVS_HASBUTTONS | TVS_LINESATROOT |
TVS_SINGLEEXPAN D | TVS_SHOWSELALWA YS |
TVS_TRACKSELECT ,
CRect(10, 10, 200, 240), this, 0x1221);
HTREEITEM hTree, hText;
hTree = tree->InsertItem("Ro ot", TVI_ROOT);
hCompany = tree->InsertItem("It em 1", hTree);
tree->InsertItem("Su bItem 1", hText);
tree->InsertItem("Su bItem 2", hText);
tree->InsertItem("Su bItem 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 2 3386
hi Jonathan,
thx for the tipp.
cu fakie This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 other positions with my
mouse. This is also true of any controls that i add to the form. If i add
a new control, it also can't be moved. I notice that when i hightlite the
control(s) with the mouse, the little boxes in the line surrounding the...
|
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, all though I can move the button. I have also used the mouseMove event, so I can move the button, but it's completely out of control. Still I feel it's the right way to go. This is what I've written:
private void btnSecond_MouseMove(object sender,...
|
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 normal state when another item is selected?!
Thnx
ask
|
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 with 256 colours in tree?
This is my code:
-------------------------------------------------------------
|
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
| |
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 form, and a table control is
dragged into the panel from tooolbox. Add cells for the table through the
properties. Now I cut a radio button, and click the table (note I can not
select a cell), then right click Paste. The button is not in expected...
|
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 images and vary in size, so
that's why I need the button to follow the image size. Is this possible to
do??
AND, this does not render correctly in IE!
Can someone please help me out? :(
<style type="text/css">
..myLayersClass
|
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
*removes* the content of the first one !
|
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 a given Folder.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |