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
a0ae811e
Commit
a0ae811e
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 add purpose OID's scrollbar depending on how much text it has.
parent
35659656
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
main.c
dlls/cryptui/main.c
+12
-0
No files found.
dlls/cryptui/main.c
View file @
a0ae811e
...
...
@@ -1612,6 +1612,18 @@ static LRESULT CALLBACK add_purpose_dlg_proc(HWND hwnd, UINT msg,
case
WM_COMMAND
:
switch
(
HIWORD
(
wp
))
{
case
EN_CHANGE
:
if
(
LOWORD
(
wp
)
==
IDC_NEW_PURPOSE
)
{
/* Show/hide scroll bar on description depending on how much
* text it has.
*/
HWND
description
=
GetDlgItem
(
hwnd
,
IDC_NEW_PURPOSE
);
int
lines
=
SendMessageW
(
description
,
EM_GETLINECOUNT
,
0
,
0
);
ShowScrollBar
(
description
,
SB_VERT
,
lines
>
1
);
}
break
;
case
BN_CLICKED
:
switch
(
LOWORD
(
wp
))
{
...
...
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