[PATCH setup 1/4] Add checkbox IDC_ALLOW_USER_URL to IDD_SITE dialog

Ken Brown kbrown@cornell.edu
Sun Dec 3 22:34:00 GMT 2017


On 12/3/2017 10:22 AM, Ken Brown wrote:
> Enable the "User URL" edit box and "Add" button only if
> IDC_ALLOW_USER_URL is checked.
> ---
>   res.rc     | 15 ++++++++-------
>   resource.h |  1 +
>   site.cc    | 14 ++++++++++++++
>   3 files changed, 23 insertions(+), 7 deletions(-)

Sorry, I need to add the following hunk:

diff --git a/site.cc b/site.cc
index ef0c218..9972a29 100644
--- a/site.cc
+++ b/site.cc
@@ -64,6 +64,7 @@ static ControlAdjuster::ControlInfo SiteControlsInfo[] = {
    {IDC_EDIT_USER_URL,          CP_STRETCH, CP_BOTTOM},
    {IDC_BUTTON_ADD_URL,         CP_RIGHT,   CP_BOTTOM},
    {IDC_SITE_USERURL,            CP_LEFT,    CP_BOTTOM},
+  {IDC_ALLOW_USER_URL,          CP_LEFT,    CP_BOTTOM},
    {0, CP_LEFT, CP_TOP}
  };

Ken



More information about the Cygwin-apps mailing list