MooreJ
asked on
Right Aligning Text in a CListView
I can Right Align Text in a CListCtrl but when I try to do it in the CListView only the headers get Right Aligned. All the data is still left Aligned.
ASKER
OK... I can't type. I was having a bad day. Yes I meant to say:
I can right align in a CListCtrl. But when I try it in a CListView it only aligns the Headers.
I can right align in a CListCtrl. But when I try it in a CListView it only aligns the Headers.
ASKER
Edited text of question
You should get the list control reference from the view,
with:
CListCtrl& GetListCtrl( ) const; of the CListView object.
and apply it with the following:
InsertColumn(...,.., LVCFMT_RIGHT);
with:
CListCtrl& GetListCtrl( ) const; of the CListView object.
and apply it with the following:
InsertColumn(...,.., LVCFMT_RIGHT);
ASKER
I Know that. But when I do it from a CListView IT ONLY ALIGNS THE HEADERS!!! Refer to my Question.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect example.... I was able to cut/paste to my app...
Did you mean it worked ok for CListCtrl and not CListView???