Click here to Skip to main content
15,887,867 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: List control column width Pin
David Crow5-Oct-09 4:28
David Crow5-Oct-09 4:28 
AnswerRe: List control column width Pin
Rolf Kristensen5-Oct-09 9:35
Rolf Kristensen5-Oct-09 9:35 
QuestionCScrollView crash when start in MAXIMIZE Pin
fitatc4-Oct-09 14:41
fitatc4-Oct-09 14:41 
AnswerRe: CScrollView crash when start in MAXIMIZE Pin
DeepakMega4-Oct-09 20:33
DeepakMega4-Oct-09 20:33 
GeneralRe: CScrollView crash when start in MAXIMIZE Pin
fitatc4-Oct-09 21:52
fitatc4-Oct-09 21:52 
QuestionDefault icon code of MFC dialog based app Pin
includeh104-Oct-09 13:08
includeh104-Oct-09 13:08 
AnswerRe: Default icon code of MFC dialog based app Pin
Richard MacCutchan4-Oct-09 23:07
mveRichard MacCutchan4-Oct-09 23:07 
QuestionAssertValid() error Pin
transoft4-Oct-09 10:33
transoft4-Oct-09 10:33 
Hi

When I released my left-mouse button, I always get following assertion errors in the following functions.

I found out that "m_hMenuShared" is not NULL. What kind problem will cause this?

void CMDIChildWnd::AssertValid() const
{
	CFrameWnd::AssertValid();
	ASSERT(m_hMenuShared == NULL || ::IsMenu(m_hMenuShared));
}


After I made following changes, the above errors show.

Changed From:
BOOL CSplitFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
	return m_wndSplitter.Create( this,
		                         2, 2,       // TODO: adjust the number of rows, columns
		                         CSize( 10, 10 ),  // TODO: adjust the minimum pane size
		                         pContext );

}

To:
BOOL CSplitFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
	return CMDIChildWnd::OnCreateClient(lpcs, pContext);
}

AnswerRe: AssertValid() error Pin
PJ Arends4-Oct-09 12:37
professionalPJ Arends4-Oct-09 12:37 
GeneralRe: AssertValid() error Pin
transoft5-Oct-09 3:57
transoft5-Oct-09 3:57 
QuestionWhat does this syntax mean in c++ ? Pin
holyinferno4-Oct-09 5:25
holyinferno4-Oct-09 5:25 
AnswerRe: What does this syntax mean in c++ ? Pin
Richard MacCutchan4-Oct-09 5:54
mveRichard MacCutchan4-Oct-09 5:54 
GeneralRe: What does this syntax mean in c++ ? Pin
holyinferno4-Oct-09 6:03
holyinferno4-Oct-09 6:03 
GeneralRe: What does this syntax mean in c++ ? Pin
Richard MacCutchan4-Oct-09 6:16
mveRichard MacCutchan4-Oct-09 6:16 
GeneralRe: What does this syntax mean in c++ ? Pin
holyinferno4-Oct-09 6:18
holyinferno4-Oct-09 6:18 
GeneralRe: What does this syntax mean in c++ ? Pin
CPallini4-Oct-09 6:22
mveCPallini4-Oct-09 6:22 
GeneralRe: What does this syntax mean in c++ ? Pin
holyinferno4-Oct-09 6:26
holyinferno4-Oct-09 6:26 
AnswerRe: What does this syntax mean in c++ ? Pin
David Crow5-Oct-09 4:48
David Crow5-Oct-09 4:48 
QuestionGood code, wrong result Pin
Waldemar Ork4-Oct-09 4:56
Waldemar Ork4-Oct-09 4:56 
AnswerRe: Good code, wrong result Pin
Luc Pattyn4-Oct-09 5:25
sitebuilderLuc Pattyn4-Oct-09 5:25 
AnswerRe: Good code, wrong result Pin
Richard MacCutchan4-Oct-09 5:44
mveRichard MacCutchan4-Oct-09 5:44 
GeneralRe: Good code, wrong result Pin
Luc Pattyn4-Oct-09 6:08
sitebuilderLuc Pattyn4-Oct-09 6:08 
GeneralRe: Good code, wrong result Pin
Waldemar Ork4-Oct-09 7:40
Waldemar Ork4-Oct-09 7:40 
GeneralRe: Good code, wrong result Pin
Luc Pattyn4-Oct-09 8:39
sitebuilderLuc Pattyn4-Oct-09 8:39 
AnswerRe: Good code, wrong result Pin
David Crow5-Oct-09 4:56
David Crow5-Oct-09 4:56 

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.