Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Problem in CXTListView
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem in CXTListView

 Post Reply Post Reply
Author
Message
aimslife View Drop Down
Newbie
Newbie
Avatar

Joined: 19 January 2007
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote aimslife Quote  Post ReplyReply Direct Link To This Post Topic: Problem in CXTListView
    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
.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
aimslife View Drop Down
Newbie
Newbie
Avatar

Joined: 19 January 2007
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote aimslife Quote  Post ReplyReply Direct Link To This Post 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
.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.