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
6898c9e5
Commit
6898c9e5
authored
Jan 24, 2008
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Jan 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uninstaller: Disable Uninstall button when no items selected.
parent
35c3bfe2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
main.c
programs/uninstaller/main.c
+8
-0
No files found.
programs/uninstaller/main.c
View file @
6898c9e5
...
...
@@ -286,6 +286,10 @@ static void UninstallProgram(void)
list_need_update
=
1
;
}
static
void
UpdateButtons
(
HWND
hDlg
,
HWND
hList
)
{
EnableWindow
(
GetDlgItem
(
hDlg
,
IDC_UNINSTALL
),
SendMessageW
(
hList
,
LB_GETSELCOUNT
,
0
,
0
)
>
0
);
}
static
INT_PTR
CALLBACK
DlgProc
(
HWND
hwnd
,
UINT
Message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
...
...
@@ -299,6 +303,7 @@ static INT_PTR CALLBACK DlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM l
GetTextMetricsW
(
hdc
,
&
tm
);
UpdateList
(
hList
);
ReleaseDC
(
hwnd
,
hdc
);
UpdateButtons
(
hwnd
,
hList
);
break
;
case
WM_COMMAND
:
switch
(
LOWORD
(
wParam
))
...
...
@@ -316,6 +321,7 @@ static INT_PTR CALLBACK DlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM l
}
else
sFilter
=
NULL
;
UpdateList
(
hList
);
UpdateButtons
(
hwnd
,
hList
);
}
break
;
}
...
...
@@ -326,6 +332,7 @@ static INT_PTR CALLBACK DlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM l
{
UninstallProgram
();
UpdateList
(
hList
);
UpdateButtons
(
hwnd
,
hList
);
}
break
;
}
...
...
@@ -344,6 +351,7 @@ static INT_PTR CALLBACK DlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM l
wine_dbgstr_w
(
entries
[
sel
].
descr
));
oldsel
=
sel
;
}
UpdateButtons
(
hwnd
,
hList
);
break
;
case
IDC_ABOUT
:
MessageBoxW
(
0
,
sAbout
,
sAboutTitle
,
MB_OK
);
...
...
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