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
137420a0
Commit
137420a0
authored
Jul 11, 2001
by
Bill Medland
Committed by
Alexandre Julliard
Jul 11, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct the location of the style patching for the edit control.
parent
140cec5b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
edit.c
controls/edit.c
+7
-8
dialog.c
windows/dialog.c
+6
-0
No files found.
controls/edit.c
View file @
137420a0
...
...
@@ -4408,8 +4408,8 @@ static LRESULT EDIT_WM_NCCreate(WND *wnd, DWORD style, HWND hwndParent, BOOL uni
EDITSTATE
*
es
;
UINT
alloc_size
;
TRACE
(
"Creating %s edit control, style = %08lx
\n
"
,
unicode
?
"Unicode"
:
"ANSI"
,
style
);
TRACE
(
"Creating %s edit control, style = %08lx
%08lx
\n
"
,
unicode
?
"Unicode"
:
"ANSI"
,
style
,
wnd
->
dwExStyle
);
if
(
!
(
es
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
es
))))
return
FALSE
;
...
...
@@ -4429,16 +4429,15 @@ static LRESULT EDIT_WM_NCCreate(WND *wnd, DWORD style, HWND hwndParent, BOOL uni
/*
* 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.
* 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
)
{
if
(
es
->
style
&
WS_BORDER
)
{
es
->
style
&=
~
WS_BORDER
;
wnd
->
dwStyle
&=
~
WS_BORDER
;
wnd
->
dwExStyle
|=
WS_EX_CLIENTEDGE
;
}
}
else
{
...
...
windows/dialog.c
View file @
137420a0
...
...
@@ -479,6 +479,12 @@ static BOOL DIALOG_CreateControls( WND *pWnd, LPCSTR template,
{
template
=
(
LPCSTR
)
DIALOG_GetControl32
(
(
WORD
*
)
template
,
&
info
,
dlgTemplate
->
dialogEx
);
/* Is this it? */
if
(
info
.
style
&
WS_BORDER
)
{
info
.
style
&=
~
WS_BORDER
;
info
.
exStyle
|=
WS_EX_CLIENTEDGE
;
}
hwndCtrl
=
CreateWindowExW
(
info
.
exStyle
|
WS_EX_NOPARENTNOTIFY
,
(
LPCWSTR
)
info
.
className
,
(
LPCWSTR
)
info
.
windowName
,
...
...
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