Click here to Skip to main content
15,897,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can referesh a List Ctrl? Pin
Le@rner24-Sep-08 19:36
Le@rner24-Sep-08 19:36 
AnswerRe: How can referesh a List Ctrl? Pin
ThatsAlok24-Sep-08 19:55
ThatsAlok24-Sep-08 19:55 
GeneralRe: How can referesh a List Ctrl? Pin
Le@rner24-Sep-08 20:21
Le@rner24-Sep-08 20:21 
GeneralRe: How can referesh a List Ctrl? Pin
ThatsAlok24-Sep-08 20:51
ThatsAlok24-Sep-08 20:51 
GeneralRe: How can referesh a List Ctrl? Pin
Le@rner24-Sep-08 21:25
Le@rner24-Sep-08 21:25 
GeneralRe: How can referesh a List Ctrl? Pin
Roger Allen25-Sep-08 0:26
Roger Allen25-Sep-08 0:26 
GeneralRe: How can referesh a List Ctrl? Pin
Le@rner25-Sep-08 0:33
Le@rner25-Sep-08 0:33 
GeneralRe: How can referesh a List Ctrl? Pin
Roger Allen25-Sep-08 0:51
Roger Allen25-Sep-08 0:51 
There is no easy place that I can think of where you can catch the WM_VSCROLL event of the CListCtrl.

I would suspect the problem lies in the NM_CUSTUMDRAW handler for the items being drawn.

If I remember correctly a CLIstCtrl uses the ScrollWindow function and then gets you to draw the new items which have scrolled into view. The ScrollWindow function only scrolls the areas for which a column has been created for. Options:

1. Change your custon draw function to limit the background colour drawing to the width of the created columns so you do not draw in the unused blank area.

2. Try changing the style of the CListCtrl to included the LVS_EX_FULLROWSELECT style.
m_list.SetExtendedStyle(m_list.GetExtendedStyle() | LVS_EX_FULLROWSELECT);

This may cause the control to scroll the entire client area correctly.

If you vote me down, my score will only get lower

Questionrestart system by code Pin
Madan Chauhan24-Sep-08 19:35
Madan Chauhan24-Sep-08 19:35 
AnswerRe: restart system by code Pin
ThatsAlok24-Sep-08 19:51
ThatsAlok24-Sep-08 19:51 
GeneralRe: restart system by code Pin
Madan Chauhan24-Sep-08 20:02
Madan Chauhan24-Sep-08 20:02 
GeneralRe: restart system by code Pin
ThatsAlok24-Sep-08 20:07
ThatsAlok24-Sep-08 20:07 
Questiongetting hard disk name Pin
VCProgrammer24-Sep-08 19:34
VCProgrammer24-Sep-08 19:34 
AnswerRe: getting hard disk name Pin
SandipG 24-Sep-08 20:21
SandipG 24-Sep-08 20:21 
AnswerRe: getting hard disk name Pin
Le@rner24-Sep-08 20:25
Le@rner24-Sep-08 20:25 
AnswerRe: getting hard disk name Pin
Madan Chauhan24-Sep-08 21:09
Madan Chauhan24-Sep-08 21:09 
QuestionChange Background colour of Group boxes Pin
Dhiraj kumar Saini24-Sep-08 18:54
Dhiraj kumar Saini24-Sep-08 18:54 
AnswerRe: Change Background colour of Group boxes Pin
Hamid_RT24-Sep-08 19:22
Hamid_RT24-Sep-08 19:22 
GeneralRe: Change Background colour of Group boxes Pin
_AnsHUMAN_ 24-Sep-08 20:57
_AnsHUMAN_ 24-Sep-08 20:57 
GeneralRe: Change Background colour of Group boxes Pin
Dhiraj kumar Saini24-Sep-08 21:03
Dhiraj kumar Saini24-Sep-08 21:03 
GeneralRe: Change Background colour of Group boxes Pin
_AnsHUMAN_ 24-Sep-08 21:38
_AnsHUMAN_ 24-Sep-08 21:38 
GeneralRe: Change Background colour of Group boxes Pin
Dhiraj kumar Saini24-Sep-08 23:25
Dhiraj kumar Saini24-Sep-08 23:25 
GeneralRe: Change Background colour of Group boxes Pin
_AnsHUMAN_ 24-Sep-08 23:40
_AnsHUMAN_ 24-Sep-08 23:40 
GeneralRe: Change Background colour of Group boxes Pin
Dhiraj kumar Saini24-Sep-08 23:57
Dhiraj kumar Saini24-Sep-08 23:57 
QuestionHow can find weekday name? Pin
Le@rner24-Sep-08 18:27
Le@rner24-Sep-08 18:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.