Skip to content

Commit

Permalink
Comment out old SBIE strings
Browse files Browse the repository at this point in the history
  • Loading branch information
isaak654 committed Jun 21, 2022
1 parent c684d35 commit bd3714f
Show file tree
Hide file tree
Showing 5 changed files with 285 additions and 265 deletions.
12 changes: 6 additions & 6 deletions Sandboxie/apps/control/BoxPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ enum {
BoxPageInternetPgm,
BoxPageStartRunPgm,
BoxPageDropRights,
BoxPagePrintSpooler,
// BoxPagePrintSpooler,
BoxPageNetworkFiles,
BoxPageOpenFile,
BoxPageOpenPipe,
Expand Down Expand Up @@ -133,7 +133,7 @@ BEGIN_MESSAGE_MAP(CBoxPage, CPropertyPage)

ON_COMMAND(ID_BLOCKNETWORKFILES, OnModified)

ON_COMMAND(ID_ALLOWSPOOLERPRINTTOFILE, OnModified)
// ON_COMMAND(ID_ALLOWSPOOLERPRINTTOFILE, OnModified)

ON_CONTROL(CBN_SELENDOK, ID_FILE_PROGRAM, FileAccess_OnSelectPgm)
ON_CONTROL(LBN_SELCHANGE, ID_FILE_LIST, FileAccess_OnSelectRes)
Expand Down Expand Up @@ -217,8 +217,8 @@ CBoxPage::CBoxPage(ULONG type, const CString &BoxName,
template_base = L"RESTRICTPGM_PAGE";
if (m_type == BoxPageDropRights)
template_base = L"DROPRIGHTS_PAGE";
if (m_type == BoxPagePrintSpooler)
template_base = L"PRINTSPOOLER_PAGE";
/* if (m_type == BoxPagePrintSpooler)
template_base = L"PRINTSPOOLER_PAGE"; */
if (m_type == BoxPageNetworkFiles)
template_base = L"NETWORK_FILES_PAGE";
if (m_type == BoxPageOpenFile ||
Expand Down Expand Up @@ -2671,7 +2671,7 @@ void CBoxPage::NetworkFiles_OnOK(CBox &box)
box.GetSetBlockNetworkFiles(TRUE, enabled);
}

void CBoxPage::PrintSpooler_OnInitDialog(CBox &box)
/* void CBoxPage::PrintSpooler_OnInitDialog(CBox &box)
{
GetDlgItem(ID_PAGE_LABEL_1)->SetWindowText(CMyMsg(MSG_3951));
GetDlgItem(ID_PAGE_LABEL_2)->SetWindowText(CMyMsg(MSG_3952));
Expand All @@ -2688,7 +2688,7 @@ void CBoxPage::PrintSpooler_OnOK(CBox &box)
CButton *pCheckBox = (CButton *)GetDlgItem(ID_ALLOWSPOOLERPRINTTOFILE);
BOOL enabled = pCheckBox->GetCheck() == BST_CHECKED ? TRUE : FALSE;
box.GetSetAllowSpoolerPrintToFile(TRUE, enabled);
}
} */



Expand Down
12 changes: 6 additions & 6 deletions Sandboxie/apps/control/BoxPage.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,18 +247,18 @@ class CBoxPage : public CPropertyPage
//
// Print Spooler Restrictions
//
void PrintSpooler_OnInitDialog(CBox &box);
void PrintSpooler_OnOK(CBox &box);
// void PrintSpooler_OnInitDialog(CBox &box);
// void PrintSpooler_OnOK(CBox &box);

//
// Low-Level Restrictions
//

void LowLevel_OnInitDialog(CBox &box);
void LowLevel_OnOK(CBox &box);
// void LowLevel_OnInitDialog(CBox &box);
// void LowLevel_OnOK(CBox &box);

void Hardware_OnInitDialog(CBox &box);
void Hardware_OnOK(CBox &box);
// void Hardware_OnInitDialog(CBox &box);
// void Hardware_OnOK(CBox &box);

//
// User Accounts
Expand Down
4 changes: 2 additions & 2 deletions Sandboxie/apps/control/SbieControl.rc
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ BEGIN
LTEXT "",ID_PAGE_LABEL_4,15,175,345,32,NOT WS_VISIBLE
END

PRINTSPOOLER_PAGE DIALOG 0, 0, 382, 250
/* PRINTSPOOLER_PAGE DIALOG 0, 0, 382, 250
STYLE DS_SETFONT | WS_CHILD | WS_DISABLED | WS_CAPTION
FONT 8, "1"
BEGIN
Expand All @@ -602,7 +602,7 @@ BEGIN
CONTROL "",ID_ALLOWSPOOLERPRINTTOFILE,"Button",BS_AUTOCHECKBOX | BS_LEFT | WS_TABSTOP,15,123,340,10
LTEXT "",ID_PAGE_LABEL_3,15,130,345,32,NOT WS_VISIBLE
LTEXT "",ID_PAGE_LABEL_4,15,170,345,32,NOT WS_VISIBLE
END
END */

RESOURCE_ACCESS_PAGE DIALOG 0, 0, 382, 250
STYLE DS_SETFONT | WS_CHILD | WS_DISABLED | WS_CAPTION
Expand Down
Loading

0 comments on commit bd3714f

Please sign in to comment.