Solved

CHeaderCtrl and CCS_RIGHT

Posted on 2001-07-29
3
328 Views
Last Modified: 2013-11-20
I want to make a spread sheet program so cells appears from right to left and i want to use CheaderCtrl class to add rows and columns headers...
I suceded in using the CHeaderCtrl class to show the column headers at the top of the window....
but i cann't add the rows header in the right side of the window...i used the CCS_RIGHT in CheaderCtrl::create(...)but it won't work..can any one help me???
0
Comment
Question by:amer_f
3 Comments
 
LVL 12

Accepted Solution

by:
migel earned 100 total points
ID: 6331011
Hello!
As I know MS doesn`t include this feature to the header control. To show vertical bar you have to write such class manually.
0
 
LVL 49

Assisted Solution

by:DanRollins
DanRollins earned 100 total points
ID: 6333101
You cal easily color the rightmost column subitems with a bacjground color that matches the headers, but you will need to handle clicks on those items (and other "row header-type" actions youself.

To see how to set the background color of items in the grid, see:

http://www.codeguru.com/mfc/comments/14348.shtml

If you need help, just describe your needs here.

-- Dan
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9490573
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by : migel, DanRollins (points to be split)

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Roshan Davis
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now