Hello Friends, following post will be helpful in following types of project:
InstallScript, InstallScript MSI
Summary
This article explains how a control can be hidden during installation run time.
Discussion:
1. Get the handle to the dialog. This is done using the CmdGethwndDlg function:
hwndDlg = CmdGetHwndDlg( szDlg );
where hwndDlg is a variable defined as a handle, and szDlg is the dialog on which the desired control appears.
2. Get the handle to the control that will be used later. This is done with the GetDlgItem command:
hCtrl = GetDlgItem(hwndDlg, SD_RADIO_COMPACT);
3. Use the function that hides the control. This is done using the ShowWindow function. The following is a sample:
nResult = ShowWindow(hCtrl, SW_HIDE);
In the function, the first parameter used is the handle to the dialog you received in Step 2. The second parameter is the constant that is defined for you that states to hide the control.
InstallScript, InstallScript MSI
Summary
This article explains how a control can be hidden during installation run time.
Discussion:
1. Get the handle to the dialog. This is done using the CmdGethwndDlg function:
hwndDlg = CmdGetHwndDlg( szDlg );
where hwndDlg is a variable defined as a handle, and szDlg is the dialog on which the desired control appears.
2. Get the handle to the control that will be used later. This is done with the GetDlgItem command:
hCtrl = GetDlgItem(hwndDlg, SD_RADIO_COMPACT);
3. Use the function that hides the control. This is done using the ShowWindow function. The following is a sample:
nResult = ShowWindow(hCtrl, SW_HIDE);
In the function, the first parameter used is the handle to the dialog you received in Step 2. The second parameter is the constant that is defined for you that states to hide the control.
No comments:
Post a Comment