Click here to Skip to main content
16,003,345 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Application settings in registry Pin
Laxman Auti13-Apr-06 18:53
Laxman Auti13-Apr-06 18:53 
QuestionApplication running in debug but crashing in release mode Pin
arunperi13-Apr-06 18:42
arunperi13-Apr-06 18:42 
AnswerRe: Application running in debug but crashing in release mode Pin
Laxman Auti13-Apr-06 18:55
Laxman Auti13-Apr-06 18:55 
GeneralRe: Application running in debug but crashing in release mode Pin
arunperi13-Apr-06 19:24
arunperi13-Apr-06 19:24 
AnswerRe: Application running in debug but crashing in release mode Pin
Le Thanh Cong13-Apr-06 20:52
Le Thanh Cong13-Apr-06 20:52 
AnswerRe: Application running in debug but crashing in release mode Pin
Stephen Hewitt14-Apr-06 21:33
Stephen Hewitt14-Apr-06 21:33 
AnswerRe: Application running in debug but crashing in release mode Pin
super_ttd24-Jun-06 4:41
super_ttd24-Jun-06 4:41 
QuestionRepainting a List Control Pin
alex__b13-Apr-06 16:56
professionalalex__b13-Apr-06 16:56 
Hello

I have this list control in a dialog class:
CListCtrl m_LIST1;

One of the class methods launches a modal dialog after the user selects
some items on the list.
The problem is when it returns, the selected items in the list control
are not painted any more, although the selection is preserved.
To repaint i did what F1 said (see code) but it won't work.
What am i doing wrong?
<br />
void CxwApp::OnWrite() <br />
{<br />
  CWriteDlg writeDlg;<br />
  writeDlg.DoModal();//<br />
  //repaint the selected items<br />
  m_LIST1.RedrawItems(start, end);<br />
  m_LIST1.Invalidate();<br />
  m_LIST1.UpdateWindow();<br />
  m_LIST1.RedrawWindow();<br />
  .....<br />
}<br />



alex

'Architecture is music frozen in space.'
AnswerRe: Repainting a List Control Pin
Laxman Auti13-Apr-06 18:34
Laxman Auti13-Apr-06 18:34 
GeneralRe: Repainting a List Control Pin
alex__b14-Apr-06 5:24
professionalalex__b14-Apr-06 5:24 
AnswerRe: Repainting a List Control Pin
Michael Dunn13-Apr-06 22:19
sitebuilderMichael Dunn13-Apr-06 22:19 
GeneralRe: Repainting a List Control Pin
alex__b14-Apr-06 5:30
professionalalex__b14-Apr-06 5:30 
AnswerRe: Repainting a List Control Pin
alex__b23-Apr-06 7:25
professionalalex__b23-Apr-06 7:25 
QuestionCompiling Apache for Windows Pin
alex.barylski13-Apr-06 14:56
alex.barylski13-Apr-06 14:56 
GeneralProgramming Question in the Lounge *I know about the disclaimer... Pin
Bob X13-Apr-06 14:34
Bob X13-Apr-06 14:34 
GeneralRe: Programming Question in the Lounge *I know about the disclaimer... Pin
El Corazon13-Apr-06 14:43
El Corazon13-Apr-06 14:43 
GeneralRe: Programming Question in the Lounge *I know about the disclaimer... Pin
Bob X13-Apr-06 15:03
Bob X13-Apr-06 15:03 
GeneralRe: Programming Question in the Lounge *I know about the disclaimer... Pin
code-frog13-Apr-06 15:11
professionalcode-frog13-Apr-06 15:11 
GeneralRe: Programming Question in the Lounge *I know about the disclaimer... Pin
Bob X13-Apr-06 15:44
Bob X13-Apr-06 15:44 
GeneralRe: Programming Question in the Lounge *I know about the disclaimer... Pin
Jon Sagara13-Apr-06 15:35
Jon Sagara13-Apr-06 15:35 
GeneralRe: Programming Question in the Lounge *I know about the disclaimer... Pin
Bob X13-Apr-06 15:44
Bob X13-Apr-06 15:44 
GeneralRe: Programming Question in the Lounge *I know about the disclaimer... Pin
El Corazon13-Apr-06 16:08
El Corazon13-Apr-06 16:08 
GeneralRe: Programming Question in the Lounge *I know about the disclaimer... Pin
Bob X13-Apr-06 16:24
Bob X13-Apr-06 16:24 
GeneralRe: Programming Question in the Lounge *I know about the disclaimer... Pin
code-frog13-Apr-06 16:35
professionalcode-frog13-Apr-06 16:35 
GeneralRe: Programming Question in the Lounge *I know about the disclaimer... Pin
El Corazon13-Apr-06 16:36
El Corazon13-Apr-06 16:36 

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.