Click here to Skip to main content
15,902,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CTreeCtrl is eating my WM_LBUTTONUP's :-( Pin
Jack Puppy29-Aug-05 8:40
Jack Puppy29-Aug-05 8:40 
GeneralRe: CTreeCtrl is eating my WM_LBUTTONUP's :-( Pin
Taka Muraoka30-Aug-05 7:09
Taka Muraoka30-Aug-05 7:09 
Questionhow to write the data of datetime type in database to the html document? Pin
liuyue29-Aug-05 4:15
liuyue29-Aug-05 4:15 
AnswerRe: how to write the data of datetime type in database to the html document? Pin
Marc Soleda29-Aug-05 5:12
Marc Soleda29-Aug-05 5:12 
GeneralRe: how to write the data of datetime type in database to the html document? Pin
liuyue29-Aug-05 14:12
liuyue29-Aug-05 14:12 
GeneralRe: how to write the data of datetime type in database to the html document? Pin
Marc Soleda29-Aug-05 20:10
Marc Soleda29-Aug-05 20:10 
QuestionStarting macro from c++ Pin
Kreatief29-Aug-05 4:02
Kreatief29-Aug-05 4:02 
QuestionIs it better solution for Refreshing Problem in List Control... Pin
Ravi Sankar S29-Aug-05 3:47
Ravi Sankar S29-Aug-05 3:47 
Hello All

I am using List control on my Form View (VC 6.0 on Windows 2000). I have derived my own class from CListCtrl and overwritten "OnCustomDraw" to draw my own List Control. I have placed the control on top of the Tab Control. When I switch from my application to another application and come back, repainting is not happening properly. I am seeing the tab control and the list control is not visible. After some time it appears automatically or if i go to some other tab and come back it appears.

I have not overloaded OnDraw in my View Class.If I use CListCtrl without using my own class then repainting happens properly.


As a solution for above problem I overloaed OnDraw in my view class and i painted the list controls.

<br />
void CMyView::OnDraw(CDC* pDC) <br />
{<br />
	if (m_oTabCtrl.GetCurSel () == 0) {<br />
		m_oMyListCtrl1.Invalidate ();<br />
	} else {<br />
                m_oMyListCtrl2.Invalidate ();<br />
	}<br />
}<br />


After this I am not getting any painting problem.

Please let me know what was the cause for above problem and whether is there any better solution than this?

Thanks for your time
Ravi
QuestionProblem with Eventlog in Windows 2003 server Pin
DasdaDAS29-Aug-05 3:34
DasdaDAS29-Aug-05 3:34 
QuestionCommunication with the existing driver Pin
Paresh emb29-Aug-05 3:27
Paresh emb29-Aug-05 3:27 
QuestionFormatting in the Rich Edit Control Pin
Dave Kerr29-Aug-05 3:25
Dave Kerr29-Aug-05 3:25 
Questionwho can tell me what fomat the audio file *.ssu is. Pin
wpjob29-Aug-05 2:24
wpjob29-Aug-05 2:24 
Answerthe data in the file is: Pin
wpjob29-Aug-05 2:28
wpjob29-Aug-05 2:28 
JokeRe: the data in the file is: Pin
toxcct29-Aug-05 2:41
toxcct29-Aug-05 2:41 
GeneralRe: the data in the file is: Pin
Jörgen Sigvardsson29-Aug-05 11:03
Jörgen Sigvardsson29-Aug-05 11:03 
AnswerRe: who can tell me what fomat the audio file *.ssu is. Pin
Cedric Moonen29-Aug-05 3:03
Cedric Moonen29-Aug-05 3:03 
QuestionThread problems... Pin
Lefteris_RG312029-Aug-05 2:21
Lefteris_RG312029-Aug-05 2:21 
AnswerRe: Thread problems... Pin
Jose Lamas Rios29-Aug-05 3:06
Jose Lamas Rios29-Aug-05 3:06 
QuestionSimple Question (sorry 4 the trouble again) :) Pin
Eytukan29-Aug-05 2:16
Eytukan29-Aug-05 2:16 
AnswerRe: Simple Question (sorry 4 the trouble again) :) [EDITED] Pin
toxcct29-Aug-05 2:22
toxcct29-Aug-05 2:22 
GeneralRe: Simple Question (sorry 4 the trouble again) :) Pin
Achim Klein29-Aug-05 2:35
Achim Klein29-Aug-05 2:35 
GeneralRe: Simple Question (sorry 4 the trouble again) :) Pin
toxcct29-Aug-05 2:37
toxcct29-Aug-05 2:37 
GeneralRe: Simple Question (sorry 4 the trouble again) :) [EDITED] Pin
Eytukan29-Aug-05 2:49
Eytukan29-Aug-05 2:49 
GeneralRe: Simple Question (sorry 4 the trouble again) :) [EDITED] Pin
Bob Stanneveld29-Aug-05 4:06
Bob Stanneveld29-Aug-05 4:06 
AnswerRe: Simple Question (sorry 4 the trouble again) :) Pin
Achim Klein29-Aug-05 2:31
Achim Klein29-Aug-05 2:31 

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.