Problem in CXTListView |
Post Reply |
Author | |
aimslife
Newbie Joined: 19 January 2007 Status: Offline Points: 24 |
Post Options
Thanks(0)
Posted: 07 February 2007 at 3:21am |
i am developing a SDI application on vs2k5 with view of CXTListView... i was tried this line of code for get List Control in OnInitialUpdate function...
CXTListCtrl listControl = ((CXTListCtrl)this->GetListCtrl( )); How i can take the control of List View? i need this control for place image in List View as a water mark (on bottom right side)... |
|
regards,
-aims . |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
You can only cast to CListCtrl
CListCtrl& listControl = GetListCtrl( );
what method of CXTListCtrl do you need?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
aimslife
Newbie Joined: 19 January 2007 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Hi Oleg,
i need to call SetBkImage() for show image as a water mark (Image to be place on right bottom side) on List View Control. If CListView is Base class of my View class then SetBkImage() function will be works fine.. but some how SetBkImage() function is not working when i am using Base class CXTListView.. please guide me, how i can display image on List View control? |
|
regards,
-aims . |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Afraid it can be true. To prevent flickers, CXTListView don't call base
OnEraseBkgnd method. As solution, you can catch WM_PAINT and WM_ERASEBKND messages and call CListView base methods (not CXTListView).
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |