![]() |
splitter problem
hi iam facing a debug problem .This is because of splitter only .I am having One row & 2 columns.But when iam running my program it is giving me runtime error ie
DEBUG ASSERTION FAILED from c:...../mfc/winsplitt.cpp Problem where iam facing i have marked it with bold in below code Code:
BOOL CSplitter_Main::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext) |
Re: splitter problem
Looks difficult to understand but it looks like the issue may be with pContext
|
Re: splitter problem
Hi I am able to rectify the problem . But now I am facing one more problem ,My values are not getting updated properly in my mfc application .I meant on my window values are getting updated only when iam minimizing my window screen or seeing other application & then coming back to my mfc application .I tried Invalidate & invalidateRect also but still facing same problem
|
Re: splitter problem
Use the InvalidateRect to repaint the needed region
|
Re: splitter problem
HI Again
Updation is happening properly now . But mySplitter which is divided into 1 row & 2 column ,2nd column is facing problem .Whenever iam running my mfc application, 2nd column is showing the background of the desktop,or if my application code is behind it is displaying that.When iam adjusting other pane then its coming alright . Do u have any solution |
Re: splitter problem
Yes, Invalidate that area as well at the startup
|
Re: splitter problem
Ya i tried Invalidate but it is not happening ,one thing i Observed that
if(!m_wndSplitter1.CreateView(1,0,RUNTIME_CLASS(CE ntityListView),CSize(0,100),pContext)) the size specified in CSize() is not having any effect ,is it because of this |
Re: splitter problem
Does the Area get corrected if you Min and Max the window ?
|
Re: splitter problem
ya when i run mfc applcation & i min or max windows it is happening.But on the code size when i am specifying the CSize it is not increasing or decresing
|
Re: splitter problem
If it happens when you Min Max then its about repainting issue and not the problem about the size not taking effect.
|
| All times are GMT +5.5. The time now is 08:57. |