Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
d8d725f7
Commit
d8d725f7
authored
Jul 21, 2008
by
Owen Rudge
Committed by
Alexandre Julliard
Jul 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appwiz.cpl: Check to see if buttons should be enabled.
parent
76518c08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
appwiz.c
dlls/appwiz.cpl/appwiz.c
+16
-0
No files found.
dlls/appwiz.cpl/appwiz.c
View file @
d8d725f7
...
...
@@ -68,6 +68,20 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason,
return
TRUE
;
}
/******************************************************************************
* Name : UpdateButtons
* Description: Enables/disables the Add/Remove button depending on current
* selection in list box.
* Parameters : hWnd - Handle of the dialog box
*/
static
void
UpdateButtons
(
HWND
hWnd
)
{
BOOL
sel
=
ListView_GetSelectedCount
(
GetDlgItem
(
hWnd
,
IDL_PROGRAMS
))
!=
0
;
EnableWindow
(
GetDlgItem
(
hWnd
,
IDC_ADDREMOVE
),
sel
);
EnableWindow
(
GetDlgItem
(
hWnd
,
IDC_SUPPORT_INFO
),
sel
);
}
/* Definition of column headers for AddListViewColumns function */
typedef
struct
AppWizColumn
{
int
width
;
...
...
@@ -166,6 +180,8 @@ static HIMAGELIST ResetApplicationList(BOOL bFirstRun, HWND hWnd, HIMAGELIST hIm
/* now create the image list and add the applications to the listview */
hImageList
=
AddListViewImageList
(
hWndListView
);
UpdateButtons
(
hWnd
);
return
(
hImageList
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment