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
ed250886
Commit
ed250886
authored
Jun 07, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Defaulting to NFR_ANSI on query failure.
parent
ae0d3630
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
228 additions
and
43 deletions
+228
-43
listview.c
dlls/comctl32/listview.c
+6
-4
listview.c
dlls/comctl32/tests/listview.c
+222
-39
No files found.
dlls/comctl32/listview.c
View file @
ed250886
...
...
@@ -7962,9 +7962,9 @@ static HWND LISTVIEW_SetToolTips( LISTVIEW_INFO *infoPtr, HWND hwndNewToolTip)
*/
static
BOOL
LISTVIEW_SetUnicodeFormat
(
LISTVIEW_INFO
*
infoPtr
,
BOOL
fUnicode
)
{
BOOL
rc
=
infoPtr
->
notifyFormat
;
infoPtr
->
notifyFormat
=
(
fUnicode
)
?
NFR_UNICODE
:
NFR_ANSI
;
return
rc
;
SHORT
rc
=
infoPtr
->
notifyFormat
;
infoPtr
->
notifyFormat
=
(
fUnicode
)
?
NFR_UNICODE
:
NFR_ANSI
;
return
rc
==
NFR_UNICODE
;
}
/*
...
...
@@ -8377,6 +8377,8 @@ static LRESULT LISTVIEW_Create(HWND hwnd, const CREATESTRUCTW *lpcs)
infoPtr
->
notifyFormat
=
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFYFORMAT
,
(
WPARAM
)
infoPtr
->
hwndSelf
,
(
LPARAM
)
NF_QUERY
);
/* on error defaulting to ANSI notifications */
if
(
infoPtr
->
notifyFormat
==
0
)
infoPtr
->
notifyFormat
=
NFR_ANSI
;
if
((
uView
==
LVS_REPORT
)
&&
(
lpcs
->
style
&
WS_VISIBLE
))
{
...
...
@@ -9367,7 +9369,7 @@ static LRESULT LISTVIEW_NotifyFormat(LISTVIEW_INFO *infoPtr, HWND hwndFrom, INT
TRACE
(
"(hwndFrom=%p, nCommand=%d)
\n
"
,
hwndFrom
,
nCommand
);
if
(
nCommand
==
NF_REQUERY
)
infoPtr
->
notifyFormat
=
SendMessageW
(
hwndFrom
,
WM_NOTIFYFORMAT
,
(
WPARAM
)
infoPtr
->
hwndSelf
,
NF_QUERY
);
infoPtr
->
notifyFormat
=
SendMessageW
(
infoPtr
->
hwndNotify
,
WM_NOTIFYFORMAT
,
(
WPARAM
)
infoPtr
->
hwndSelf
,
NF_QUERY
);
return
infoPtr
->
notifyFormat
;
}
...
...
dlls/comctl32/tests/listview.c
View file @
ed250886
This diff is collapsed.
Click to expand it.
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