Click here to Skip to main content
16,014,662 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: You're welcome. Pin
Rajkumar R22-May-08 5:56
Rajkumar R22-May-08 5:56 
QuestionAssertion error in VS 2005 C++ Pin
LeonardLay21-May-08 6:04
LeonardLay21-May-08 6:04 
QuestionRe: Assertion error in VS 2005 C++ Pin
David Crow21-May-08 8:19
David Crow21-May-08 8:19 
AnswerRe: Assertion error in VS 2005 C++ Pin
LeonardLay21-May-08 8:27
LeonardLay21-May-08 8:27 
QuestionRe: Assertion error in VS 2005 C++ Pin
Maximilien21-May-08 9:18
Maximilien21-May-08 9:18 
AnswerRe: Assertion error in VS 2005 C++ Pin
LeonardLay21-May-08 9:23
LeonardLay21-May-08 9:23 
GeneralRe: Assertion error in VS 2005 C++ Pin
Stephen Hewitt22-May-08 18:53
Stephen Hewitt22-May-08 18:53 
GeneralRe: Assertion error in VS 2005 C++ Pin
LeonardLay28-May-08 1:45
LeonardLay28-May-08 1:45 
LRESULT CFrameWnd::OnActivateTopLevel(WPARAM wParam, LPARAM lParam)
{
	CWnd::OnActivateTopLevel(wParam, lParam);

	// exit Shift+F1 help mode on activation changes
	ExitHelpMode();

#ifndef _AFX_NO_OLE_SUPPORT
	// allow OnFrameWindowActivate to be sent to in-place items
	if (m_pNotifyHook != NULL)
	{
		// activate when active and when not minimized
		m_pNotifyHook->OnActivate(
			LOWORD(wParam) != WA_INACTIVE && !HIWORD(wParam));
	}
#endif

	// deactivate current active view
	CWinThread *pThread = AfxGetThread(); //This returns NULL for the thread
	ASSERT(pThread); //This is where the assertion error occurs.  
	if (pThread->m_pMainWnd == this)
	{
		CView* pActiveView = GetActiveView();
		if (pActiveView == NULL)
			pActiveView = GetActiveFrame()->GetActiveView();
		if (pActiveView != NULL)
			pActiveView->OnActivateView(FALSE, pActiveView, pActiveView);
	}

GeneralRe: Assertion error in VS 2005 C++ Pin
wipehindy22-May-09 16:55
wipehindy22-May-09 16:55 
GeneralRe: Assertion error in VS 2005 C++ Pin
LeonardLay26-May-09 1:43
LeonardLay26-May-09 1:43 
QuestionCannot resize my IWebBrowser2 Web Browser Control Pin
Johann Gerell21-May-08 5:31
Johann Gerell21-May-08 5:31 
AnswerRe: Cannot resize my IWebBrowser2 Web Browser Control Pin
led mike21-May-08 5:55
led mike21-May-08 5:55 
GeneralRe: Cannot resize my IWebBrowser2 Web Browser Control Pin
Johann Gerell21-May-08 13:35
Johann Gerell21-May-08 13:35 
GeneralRe: Cannot resize my IWebBrowser2 Web Browser Control Pin
led mike22-May-08 10:20
led mike22-May-08 10:20 
GeneralRe: Cannot resize my IWebBrowser2 Web Browser Control Pin
Johann Gerell22-May-08 20:30
Johann Gerell22-May-08 20:30 
QuestionHow to hide window when the app starts ? Pin
capint21-May-08 5:00
capint21-May-08 5:00 
AnswerRe: How to hide window when the app starts ? Pin
Hamid_RT21-May-08 5:40
Hamid_RT21-May-08 5:40 
GeneralRe: How to hide window when the app starts ? Pin
capint21-May-08 5:47
capint21-May-08 5:47 
GeneralRe: How to hide window when the app starts ? Pin
Hamid_RT21-May-08 6:02
Hamid_RT21-May-08 6:02 
AnswerRe: How to hide window when the app starts ? Pin
Michael Schubert21-May-08 5:51
Michael Schubert21-May-08 5:51 
GeneralRe: How to hide window when the app starts ? Pin
capint21-May-08 6:02
capint21-May-08 6:02 
Questionhow to set the window visibility state Pin
subramanyeswari21-May-08 3:41
subramanyeswari21-May-08 3:41 
AnswerRe: how to set the window visibility state Pin
Cedric Moonen21-May-08 4:06
Cedric Moonen21-May-08 4:06 
QuestionRe: how to set the window visibility state Pin
David Crow21-May-08 4:06
David Crow21-May-08 4:06 
AnswerRe: how to set the window visibility state Pin
Hamid_RT21-May-08 4:15
Hamid_RT21-May-08 4:15 

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.