15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


[ Add'l Info] CSplitterWnd - Win95 Vs WinNT 3.51

SUBRAMANIAN -- SUBRAMANIAN.BALAKRISHNEN@tencor.com
Wednesday, November 27, 1996

Environment : NT3.51, windows 95, VC++ 4.2b


Some more info on the previous question :

My code looks like this
 ( Where B1, B2, B3 are three break points )


BOOL CChildFrame::OnCreateClient( LPCREATESTRUCT /*lpcs*/,
	CCreateContext* pContext)
{

B1=>	VERIFY( m_wndSplitter.CreateStatic( this,2,1,WS_CHILD | WS_VISIBLE
|
				 WS_HSCROLL |WS_VSCROLL) );

	/* Code to Create View Comes Here */
	
B3=>	.......................
	......................
	.......................

}

void CChildFrame::OnSize(UINT nType, int cx, int cy)
{
B2=>	m_wndSplitter.SetRowInfo(0,max(0,(cy/2)-11), 10);
	m_wndSplitter.SetRowInfo(1,max(0,(cy/2)-11), 10);
	
	m_wndSplitter.RecalcLayout();
	...............................
	..............................
	...............................
}



Under windows 95 the execution sequence is " B1 -> B2 -> B3 "  and
under NT 3.51 it is " B1 -> B3 ".

Is this a bug or an expected/documented difference ?



Thanks

Subu




Mario Contestabile -- Mario_Contestabile.UOS__MTL@UOSMTL2.universal.com
Wednesday, November 27, 1996

>Under windows 95 the execution sequence is " B1 -> B2 -> B3 "  and
>under NT 3.51 it is " B1 -> B3 ".

A a rule of thumb, never rely on the _order_ of messages. Post yourself
a message instead.

mcontest@universal.com





| Вернуться в корень Архива |