parent
c8e51af305
commit
0db5b6d3d8
@ -181,18 +181,20 @@ void HashFromFilesDlg::setHashType(hashType hashType2set)
|
|||||||
void HashFromFilesDlg::doDialog(bool isRTL)
|
void HashFromFilesDlg::doDialog(bool isRTL)
|
||||||
{
|
{
|
||||||
if (!isCreated())
|
if (!isCreated())
|
||||||
|
{
|
||||||
create(IDD_HASHFROMFILES_DLG, isRTL);
|
create(IDD_HASHFROMFILES_DLG, isRTL);
|
||||||
|
|
||||||
if (_ht == hash_sha256)
|
if (_ht == hash_sha256)
|
||||||
{
|
{
|
||||||
generic_string title = TEXT("Generate SHA-256 digest from files");
|
generic_string title = TEXT("Generate SHA-256 digest from files");
|
||||||
::SetWindowText(_hSelf, title.c_str());
|
::SetWindowText(_hSelf, title.c_str());
|
||||||
|
|
||||||
generic_string buttonText = TEXT("Choose files to generate SHA-256...");
|
generic_string buttonText = TEXT("Choose files to generate SHA-256...");
|
||||||
::SetDlgItemText(_hSelf, IDC_HASH_FILEBROWSER_BUTTON, buttonText.c_str());
|
::SetDlgItemText(_hSelf, IDC_HASH_FILEBROWSER_BUTTON, buttonText.c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adjust the position in the center
|
// Adjust the position in the center
|
||||||
goToCenter();
|
goToCenter();
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -382,14 +384,16 @@ void HashFromTextDlg::setHashType(hashType hashType2set)
|
|||||||
void HashFromTextDlg::doDialog(bool isRTL)
|
void HashFromTextDlg::doDialog(bool isRTL)
|
||||||
{
|
{
|
||||||
if (!isCreated())
|
if (!isCreated())
|
||||||
|
{
|
||||||
create(IDD_HASHFROMTEXT_DLG, isRTL);
|
create(IDD_HASHFROMTEXT_DLG, isRTL);
|
||||||
|
|
||||||
if (_ht == hash_sha256)
|
if (_ht == hash_sha256)
|
||||||
{
|
{
|
||||||
generic_string title = TEXT("Generate SHA-256 digest");
|
generic_string title = TEXT("Generate SHA-256 digest");
|
||||||
::SetWindowText(_hSelf, title.c_str());
|
::SetWindowText(_hSelf, title.c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Adjust the position in the center
|
// Adjust the position in the center
|
||||||
goToCenter();
|
goToCenter();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user