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
b889e29e
Commit
b889e29e
authored
Jan 09, 2005
by
Mike Hearn
Committed by
Alexandre Julliard
Jan 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the UI update properly when the user adds/removes drives.
parent
d070d8fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
driveui.c
programs/winecfg/driveui.c
+7
-1
No files found.
programs/winecfg/driveui.c
View file @
b889e29e
...
...
@@ -51,6 +51,7 @@ static BOOL updating_ui = FALSE;
static
struct
drive
*
current_drive
;
static
void
get_etched_rect
(
HWND
dialog
,
RECT
*
rect
);
static
void
update_controls
(
HWND
dialog
);
static
void
set_advanced
(
HWND
dialog
)
{
...
...
@@ -297,6 +298,8 @@ void on_add_click(HWND dialog)
SendDlgItemMessage
(
dialog
,
IDC_LIST_DRIVES
,
LB_SETCURSEL
,
c
,
0
);
SetFocus
(
GetDlgItem
(
dialog
,
IDC_LIST_DRIVES
));
update_controls
(
dialog
);
}
void
on_remove_click
(
HWND
dialog
)
...
...
@@ -324,9 +327,12 @@ void on_remove_click(HWND dialog)
SendDlgItemMessage
(
dialog
,
IDC_LIST_DRIVES
,
LB_SETCURSEL
,
item
,
0
);
/* previous item */
SetFocus
(
GetDlgItem
(
dialog
,
IDC_LIST_DRIVES
));
update_controls
(
dialog
);
}
void
update_controls
(
HWND
dialog
)
{
static
void
update_controls
(
HWND
dialog
)
{
char
*
path
;
uint
type
;
char
*
label
;
...
...
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