예제 #1
0
/*
 * Dialog Proc _________________________________________________________________
 *
 */
BOOL CALLBACK RootAfsPageDlgProc(HWND hwndDlg, UINT msg, WPARAM wp, LPARAM lp)
{
    if (WizStep_Common_DlgProc (hwndDlg, msg, wp, lp))
	return FALSE;

    switch (msg) {
    case WM_INITDIALOG:
	OnInitDialog(hwndDlg);
	break;

    case WM_COMMAND:
	switch (LOWORD(wp)) {
	case IDNEXT:
	    g_pWiz->SetState(sidSTEP_TEN);
	    break;

	case IDBACK:
	    g_pWiz->SetState(sidSTEP_EIGHT);
	    break;

	case IDC_DONT_CREATE_ROOT_VOLUMES:
	    g_CfgData.configRootVolumes = CS_DONT_CONFIGURE;
	    break;

	case IDC_CREATE_ROOT_VOLUMES:
	    g_CfgData.configRootVolumes = CS_CONFIGURE;
	    break;
	}
	break;

    }

    return FALSE;
}
예제 #2
0
/*
 * Dialog Proc _________________________________________________________________
 *
 */
BOOL CALLBACK FileServerPageDlgProc(HWND hwndDlg, UINT msg, WPARAM wp, LPARAM lp)
{
    if (WizStep_Common_DlgProc (hwndDlg, msg, wp, lp))
	return FALSE;

    switch (msg) {
    case WM_INITDIALOG:
	OnInitDialog(hwndDlg);
	break;

    case WM_COMMAND:
	switch (LOWORD(wp)) {
	case IDNEXT:
	    g_pWiz->SetState(sidSTEP_SIX);
	    break;

	case IDBACK:
	    g_pWiz->SetState(sidSTEP_FOUR);
	    break;

	case IDC_DONT_CONFIG_FILE_SERVER:
	    g_CfgData.configFS = CS_DONT_CONFIGURE;
	    break;

	case IDC_SHOULD_CONFIG_FILE_SERVER:
	    g_CfgData.configFS = CS_CONFIGURE;
	    break;
	}
	break;

    }

    return FALSE;
}
예제 #3
0
BOOL CALLBACK PartitionPageDlgProc(HWND hwndDlg, UINT msg, WPARAM wp, LPARAM lp)
{
    if (WizStep_Common_DlgProc (hwndDlg, msg, wp, lp))
	return FALSE;

    switch (msg) {
    case WM_INITDIALOG:
	OnInitDialog(hwndDlg);
	CheckEnableButtons();
	break;

    case WM_DESTROY_SHEET:
	Subclass_RemoveHook(g_pWiz->GetWindow(), WizardDlgProc);
	break;

    case WM_COMMAND:
	switch (LOWORD(wp)) {
	case IDNEXT:
	    if (SavePartitionInfo(TRUE))
		g_pWiz->SetState(sidSTEP_NINE);
	    break;

	case IDBACK:
	    if (SavePartitionInfo(FALSE))
		g_pWiz->SetState(sidSTEP_SEVEN);
	    break;

	case IDC_CREATE_PARTITION:
	    g_CfgData.configPartition = CS_CONFIGURE;
	    CheckEnableButtons();
	    EnableDriveListCtrls();
	    break;

	case IDC_DONT_CREATE_PARTITION:
	    g_CfgData.configPartition = CS_DONT_CONFIGURE;
	    CheckEnableButtons();
	    EnableDriveListCtrls(FALSE);
	    break;

	case IDC_PARTITION_NAME:
	    if (HIWORD(wp) == EN_CHANGE) {
		OnPartitionName();
		SetFocus((HWND)lp);
	    }
	    break;
	}
	break;

    case WM_NOTIFY:
	switch (((LPNMHDR)lp)->code) {
	case FLN_ITEMSELECT:	OnListSelection((LPFLN_ITEMSELECT_PARAMS)lp);
	}
	break;

    }

    return FALSE;
}
예제 #4
0
/*
 * Dialog Procs _________________________________________________________________
 *
 */
BOOL CALLBACK InfoPageDlgProc(HWND hRHS, UINT msg, WPARAM wp, LPARAM lp)
{
    if (WizStep_Common_DlgProc (hRHS, msg, wp, lp))
        return FALSE;

    switch (msg) {
    case WM_INITDIALOG:
	OnInitDialog(hRHS);
	break;

    case WM_COMMAND:
	switch (LOWORD(wp)) {
	case IDNEXT:
	    if (SavePageInfo())
		g_pWiz->SetState (sidSTEP_THREE);
	    break;

	case IDBACK:
	    if (SavePageInfo())
		g_pWiz->SetState (sidSTEP_ONE);
	    break;

	case IDC_FIRST_SERVER:
	    IsFirstServer();
	    break;

	case IDC_JOIN_EXISTING_CELL:
	    IsFirstServer(FALSE);
	    break;

	case IDC_CELL_NAME:
	case IDC_SERVER_PW:
	case IDC_VERIFY_PW:
	    if (HIWORD(wp) == EN_CHANGE)
		CheckEnableButtons();
	    break;

	}
	break;
    }

    return FALSE;
}
예제 #5
0
/*
 * Dialog Procs _________________________________________________________________
 *
 */
BOOL CALLBACK IntroPageDlgProc(HWND hRHS, UINT msg, WPARAM wp, LPARAM lp)
{
    if (WizStep_Common_DlgProc (hRHS, msg, wp, lp))
        return FALSE;

    switch (msg) {
    case WM_INITDIALOG:
	OnInitDialog(hRHS);
	break;

    case WM_COMMAND:
	switch (LOWORD(wp)) {
	case IDNEXT:
	    g_pWiz->SetState(sidSTEP_TWO);
	    break;
	}
	break;
    }

    return FALSE;
}
예제 #6
0
/*
 * Dialog Proc _________________________________________________________________
 *
 */
BOOL CALLBACK DBServerPageDlgProc(HWND hwndDlg, UINT msg, WPARAM wp, LPARAM lp)
{
    if (WizStep_Common_DlgProc (hwndDlg, msg, wp, lp))
	return FALSE;

    switch (msg) {
    case WM_INITDIALOG:
	OnInitDialog(hwndDlg);
	break;

    case WM_COMMAND:
	switch (LOWORD(wp)) {
	case IDNEXT:
	    SavePageInfo();
	    g_pWiz->SetState(sidSTEP_SEVEN);
	    break;

	case IDBACK:
	    SavePageInfo();
	    g_pWiz->SetState(sidSTEP_FIVE);
	    break;

	case IDC_DONT_CONFIG_DB_SERVER:
	    g_CfgData.configDB = CS_DONT_CONFIGURE;
	    EnableSCM(ES_DISABLE);
	    break;

	case IDC_CONFIG_DB_SERVER:
	    g_CfgData.configDB = CS_CONFIGURE;
	    EnableSCM(ES_ENABLE);
	    break;
	}
	break;

    }

    return FALSE;
}