Beispiel #1
0
LRESULT CModControlDlg::OnModCtrlMsg(WPARAM wParam, LPARAM lParam)
//----------------------------------------------------------------
{
    switch(wParam)
    {
    case CTRLMSG_SETVIEWWND:
        m_hWndView = (HWND)lParam;
        break;

    case CTRLMSG_DEACTIVATEPAGE:
        OnDeactivatePage();
        break;
    }
    return 0;
}
Beispiel #2
0
void CTabCtrlSSL::OnSelChanging (NMHDR* pNMHDR, LRESULT* pResult) {
	// Notify derived classes that the selection is changing.
	int nIndex = GetCurSel ();
	if (nIndex == -1)
		return;

	OnDeactivatePage (nIndex, m_nPageIDs[nIndex]);

	// Save the input focus and hide the old page.
    TabDelete tabDelete = m_tabs[nIndex];
    CTabPageSSL* pDialog = tabDelete.pTabPage;

	if (pDialog != NULL) {
		m_hFocusWnd[nIndex] = ::GetFocus ();
		pDialog->ShowWindow (SW_HIDE);
	}
	*pResult = 0;
}