Click here to Skip to main content
15,889,200 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Show Desktop Problem Pin
Mircea Puiu29-Aug-06 21:17
Mircea Puiu29-Aug-06 21:17 
GeneralRe: Show Desktop Problem Pin
ThatsAlok29-Aug-06 22:48
ThatsAlok29-Aug-06 22:48 
GeneralRe: Show Desktop Problem Pin
Mircea Puiu30-Aug-06 0:18
Mircea Puiu30-Aug-06 0:18 
GeneralRe: Show Desktop Problem Pin
ThatsAlok30-Aug-06 0:42
ThatsAlok30-Aug-06 0:42 
AnswerRe: Show Desktop Problem Pin
ThatsAlok29-Aug-06 23:29
ThatsAlok29-Aug-06 23:29 
GeneralRe: Show Desktop Problem Pin
payal33530-Aug-06 1:07
payal33530-Aug-06 1:07 
QuestionA client/server question Pin
minihotto29-Aug-06 19:06
minihotto29-Aug-06 19:06 
QuestionReplacing Views Pin
kiranin29-Aug-06 19:03
kiranin29-Aug-06 19:03 
Hi,
i created application which is splitting horizontally the window into 3 views,
Am replcaing the views through the following code.
<br />
BOOL CSplitter::ReplaceView(int row, int col,CRuntimeClass * pViewClass,SIZE size)<br />
{<br />
  CCreateContext context;<br />
  BOOL bSetActive;<br />
	       <br />
   <br />
  if ((GetPane(row,col)->IsKindOf(pViewClass))==TRUE)<br />
       return FALSE;<br />
				    <br />
   <br />
   // Get pointer to CDocument object so that it can be used in the creation <br />
   // process of the new view<br />
   CDocument * pDoc= ((CView *)GetPane(row,col))->GetDocument();<br />
   CView * pActiveView=GetParentFrame()->GetActiveView();<br />
   if (pActiveView==NULL || pActiveView==GetPane(row,col))<br />
      bSetActive=TRUE;<br />
   else<br />
      bSetActive=FALSE;<br />
<br />
    // set flag so that document will not be deleted when view is destroyed<br />
	pDoc->m_bAutoDelete=TRUE;    <br />
    // Delete existing view <br />
   ((CView *) GetPane(row,col))->DestroyWindow();<br />
    // set flag back to default <br />
    pDoc->m_bAutoDelete=TRUE;<br />
 <br />
    // Create new view                      <br />
   <br />
   context.m_pNewViewClass=pViewClass;<br />
   context.m_pCurrentDoc=pDoc;<br />
   context.m_pNewDocTemplate=NULL;<br />
   context.m_pLastView=NULL;<br />
   context.m_pCurrentFrame=NULL;<br />
   <br />
   CreateView(row,col,pViewClass,size, &context);<br />
   <br />
   CView * pNewView= (CView *)GetPane(row,col);<br />
   <br />
   if (bSetActive==TRUE)<br />
      GetParentFrame()->SetActiveView(pNewView);<br />
   <br />
   <br />
   GetPane(row,col)->SendMessage(WM_PAINT);<br />
   RecalcLayout(); <br />
   <br />
   return TRUE;<br />
}


But i got some problem when i am going to do operations on controls which is lying in the present view..... got assertion failure . the assertion is ASSERT(m_hWnd).
Can u explain is there any other code to replace view
AnswerRe: Replacing Views Pin
uday kiran janaswamy29-Aug-06 19:45
uday kiran janaswamy29-Aug-06 19:45 
GeneralRe: Replacing Views Pin
kiranin29-Aug-06 20:12
kiranin29-Aug-06 20:12 
QuestionProblem in replacing Views Pin
kiranin29-Aug-06 19:03
kiranin29-Aug-06 19:03 
AnswerRe: Problem in replacing Views Pin
uday kiran janaswamy29-Aug-06 19:51
uday kiran janaswamy29-Aug-06 19:51 
QuestionRe: Problem in replacing Views Pin
David Crow30-Aug-06 3:36
David Crow30-Aug-06 3:36 
Questionhow to write a multithread breakpoint resume ftp programe? Pin
P.Dragon29-Aug-06 18:36
P.Dragon29-Aug-06 18:36 
AnswerRe: how to write a multithread breakpoint resume ftp programe? Pin
Prakash Nadar29-Aug-06 20:42
Prakash Nadar29-Aug-06 20:42 
GeneralRe: how to write a multithread breakpoint resume ftp programe? Pin
Steve S29-Aug-06 21:47
Steve S29-Aug-06 21:47 
AnswerRe: how to write a multithread breakpoint resume ftp programe? Pin
ThatsAlok29-Aug-06 23:35
ThatsAlok29-Aug-06 23:35 
GeneralRe: how to write a multithread breakpoint resume ftp programe? Pin
Prakash Nadar30-Aug-06 5:19
Prakash Nadar30-Aug-06 5:19 
QuestionSearching Shared Folders Pin
Ratish Philip29-Aug-06 16:59
Ratish Philip29-Aug-06 16:59 
AnswerRe: Searching Shared Folders Pin
Nibu babu thomas29-Aug-06 19:32
Nibu babu thomas29-Aug-06 19:32 
GeneralRe: Searching Shared Folders Pin
Ratish Philip29-Aug-06 19:48
Ratish Philip29-Aug-06 19:48 
GeneralRe: Searching Shared Folders Pin
Nibu babu thomas30-Aug-06 0:27
Nibu babu thomas30-Aug-06 0:27 
GeneralRe: Searching Shared Folders Pin
David Crow30-Aug-06 3:41
David Crow30-Aug-06 3:41 
AnswerRe: Searching Shared Folders Pin
Hamid_RT31-Aug-06 6:13
Hamid_RT31-Aug-06 6:13 
QuestionReading the Edit properties from different applications Pin
Vissu8929-Aug-06 16:44
Vissu8929-Aug-06 16:44 

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.