Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
c489ce31
Commit
c489ce31
authored
Dec 18, 2008
by
Juan Lang
Committed by
Alexandre Julliard
Dec 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptui: Show/hide description's scrollbar depending on how much text it has.
parent
53fc5b85
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
main.c
dlls/cryptui/main.c
+18
-0
No files found.
dlls/cryptui/main.c
View file @
c489ce31
...
...
@@ -1624,6 +1624,24 @@ static LRESULT CALLBACK cert_properties_general_dlg_proc(HWND hwnd, UINT msg,
SetWindowLongPtrW
(
hwnd
,
DWLP_USER
,
(
LPARAM
)
data
);
break
;
}
case
WM_COMMAND
:
switch
(
HIWORD
(
wp
))
{
case
EN_CHANGE
:
SendMessageW
(
GetParent
(
hwnd
),
PSM_CHANGED
,
(
WPARAM
)
hwnd
,
0
);
if
(
LOWORD
(
wp
)
==
IDC_DESCRIPTION
)
{
/* Show/hide scroll bar on description depending on how much
* text it has.
*/
HWND
description
=
GetDlgItem
(
hwnd
,
IDC_DESCRIPTION
);
int
lines
=
SendMessageW
(
description
,
EM_GETLINECOUNT
,
0
,
0
);
ShowScrollBar
(
description
,
SB_VERT
,
lines
>
1
);
}
break
;
}
break
;
}
return
0
;
}
...
...
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