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
b85a6e8c
Commit
b85a6e8c
authored
Oct 08, 2001
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 08, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Defer edit style correction until EDITSTATE is fully initialized.
parent
aacc7e37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
edit.c
controls/edit.c
+20
-20
No files found.
controls/edit.c
View file @
b85a6e8c
...
...
@@ -4414,26 +4414,6 @@ static LRESULT EDIT_WM_NCCreate(HWND hwnd, DWORD style, HWND hwndParent, BOOL un
es
->
bEnableState
=
!
(
style
&
WS_DISABLED
);
/*
* In Win95 look and feel, the WS_BORDER style is replaced by the
* WS_EX_CLIENTEDGE style for the edit control. This gives the edit
* control a non client area. Not always. This coordinates in some
* way with the window creation code in dialog.c When making
* modifications please ensure that the code still works for edit
* controls created directly with style 0x50800000, exStyle 0 (
* which should have a single pixel border)
*/
if
(
TWEAK_WineLook
!=
WIN31_LOOK
)
{
es
->
style
&=
~
WS_BORDER
;
}
else
{
if
((
es
->
style
&
WS_BORDER
)
&&
!
(
es
->
style
&
WS_DLGFRAME
))
SetWindowLongA
(
hwnd
,
GWL_STYLE
,
GetWindowLongA
(
hwnd
,
GWL_STYLE
)
&
~
WS_BORDER
);
}
/* Save parent, which will be notified by EN_* messages */
es
->
hwndParent
=
hwndParent
;
...
...
@@ -4501,6 +4481,26 @@ static LRESULT EDIT_WM_NCCreate(HWND hwnd, DWORD style, HWND hwndParent, BOOL un
return
FALSE
;
es
->
line_count
=
1
;
/*
* In Win95 look and feel, the WS_BORDER style is replaced by the
* WS_EX_CLIENTEDGE style for the edit control. This gives the edit
* control a non client area. Not always. This coordinates in some
* way with the window creation code in dialog.c When making
* modifications please ensure that the code still works for edit
* controls created directly with style 0x50800000, exStyle 0 (
* which should have a single pixel border)
*/
if
(
TWEAK_WineLook
!=
WIN31_LOOK
)
{
es
->
style
&=
~
WS_BORDER
;
}
else
{
if
((
es
->
style
&
WS_BORDER
)
&&
!
(
es
->
style
&
WS_DLGFRAME
))
SetWindowLongA
(
hwnd
,
GWL_STYLE
,
GetWindowLongA
(
hwnd
,
GWL_STYLE
)
&
~
WS_BORDER
);
}
return
TRUE
;
}
...
...
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