Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCan I do this? Pin
ewighell17-Apr-06 2:20
ewighell17-Apr-06 2:20 
AnswerRe: Can I do this? Pin
Stephen Hewitt17-Apr-06 2:53
Stephen Hewitt17-Apr-06 2:53 
AnswerRe: Can I do this? Pin
YaronNir17-Apr-06 4:18
YaronNir17-Apr-06 4:18 
QuestionImporting class containing STL map from DLL Pin
Marko Budisic17-Apr-06 1:37
Marko Budisic17-Apr-06 1:37 
AnswerRe: Importing class containing STL map from DLL Pin
Roland Pibinger17-Apr-06 6:18
Roland Pibinger17-Apr-06 6:18 
GeneralRe: Importing class containing STL map from DLL Pin
Marko Budisic17-Apr-06 6:28
Marko Budisic17-Apr-06 6:28 
QuestionZooming with SetViewportExt and SetWindowExt Pin
Cosescu Bogdan17-Apr-06 1:16
Cosescu Bogdan17-Apr-06 1:16 
QuestionRepainting a child window Pin
Sarvan AL17-Apr-06 1:12
Sarvan AL17-Apr-06 1:12 
Hi all,

I need to repaint a child window in my MDI application, which need not be active. If use MDIGetActive and MDINext to traverse the children, I am able to see a flickering. When the desired child is getting repainted, I am calling MDIActivate(pFirstChild) to reset the active child.

I'd like to do this using CDocument's GetFirstViewPosition and GetNextView. Kindly check the following code snippet: The problem is, the while loop executes exactly once, even though I open three child windows.

pos = pDocument->GetFirstViewPosition() ;<br />
	<br />
while(pos)<br />
{<br />
CMyView *pView = (CMyView *) pDocument->GetNextView(pos) ;<br />
		<br />
if(pView->m_childNum == m_usChildNo)<br />
{<br />
pView->SetDisplayData() ;<br />
pView->Invalidate() ;<br />
break ;<br />
}<br />
}


Where am I wrong?

Thanks in advance,
Sarvan AL




-- modified at 7:13 Monday 17th April, 2006
AnswerRe: Repainting a child window Pin
YaronNir17-Apr-06 4:25
YaronNir17-Apr-06 4:25 
AnswerRe: Repainting a child window Pin
Hamid_RT17-Apr-06 19:32
Hamid_RT17-Apr-06 19:32 
GeneralRe: Repainting a child window Pin
Sarvan AL17-Apr-06 21:07
Sarvan AL17-Apr-06 21:07 
QuestionWhere has it gone?? Pin
Smith#17-Apr-06 0:49
Smith#17-Apr-06 0:49 
AnswerRe: Where has it gone?? Pin
Jim Jim17-Apr-06 1:52
Jim Jim17-Apr-06 1:52 
QuestionVariable Y-Axis Pin
RockyJames17-Apr-06 0:30
RockyJames17-Apr-06 0:30 
AnswerRe: Variable Y-Axis Pin
Nishad S17-Apr-06 0:47
Nishad S17-Apr-06 0:47 
GeneralRe: Variable Y-Axis Pin
RockyJames17-Apr-06 1:01
RockyJames17-Apr-06 1:01 
GeneralRe: Variable Y-Axis Pin
Nishad S17-Apr-06 1:13
Nishad S17-Apr-06 1:13 
QuestionRotation of multiline text Pin
Shailesh Ha17-Apr-06 0:16
Shailesh Ha17-Apr-06 0:16 
AnswerRe: Rotation of multiline text Pin
Stephen Hewitt17-Apr-06 4:15
Stephen Hewitt17-Apr-06 4:15 
Questioncolor button Pin
himuskanhere16-Apr-06 23:55
himuskanhere16-Apr-06 23:55 
AnswerRe: color button Pin
Nishad S17-Apr-06 0:02
Nishad S17-Apr-06 0:02 
AnswerRe: color button Pin
Jim Jim17-Apr-06 1:27
Jim Jim17-Apr-06 1:27 
AnswerRe: color button Pin
Hamid_RT17-Apr-06 19:13
Hamid_RT17-Apr-06 19:13 
QuestionNot getting ON_NOTIFY Pin
Jim Jim16-Apr-06 23:46
Jim Jim16-Apr-06 23:46 
AnswerRe: Not getting ON_NOTIFY Pin
YaronNir17-Apr-06 0:59
YaronNir17-Apr-06 0:59 

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.