Print Page | Close Window

Problem in CXTListView

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6335
Printed Date: 29 September 2024 at 1:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem in CXTListView
Posted By: aimslife
Subject: Problem in CXTListView
Date 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
.



Replies:
Posted By: Oleg
Date Posted: 07 February 2007 at 1:15pm
Hi,
You can only cast to CListCtrl
 
CListCtrl& listControl = GetListCtrl( );
what method of CXTListCtrl do you need?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: aimslife
Date Posted: 08 February 2007 at 12:48am
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
.


Posted By: Oleg
Date Posted: 08 February 2007 at 1:11am
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net