Exemple #1
0
void myCEdit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
	if (nChar == VK_RETURN)
	{
		ShowWindow(SW_HIDE);
		GetWindowText(spot.Text);

		CChildView* pChild = (CChildView*)GetParent();
		CNodeBase* c = (CNodeBase*)spot.object;

		DWORD before = c->GetMemorySize();
		c->Update(spot);
		DWORD after = c->GetMemorySize();

		pChild->ResizeNode((CNodeClass*)c->pParent, pChild->FindNodeIndex(c), before, after);
		pChild->Invalidate();
	}
	CEdit::OnChar(nChar, nRepCnt, nFlags);
}
Exemple #2
0
void RefreshFunc(void *data){
	CChildView* view = ((CChildView *)data);
	view->DrawToMem();
	view->Invalidate(TRUE);
	view->SendMessage(WM_PAINT);
}