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
60a1e20b
Commit
60a1e20b
authored
Jul 22, 2008
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Jul 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Don't print ERRs for reflected messages.
parent
f240b8f4
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
65 additions
and
20 deletions
+65
-20
animate.c
dlls/comctl32/animate.c
+1
-1
comboex.c
dlls/comctl32/comboex.c
+1
-1
comctl32.h
dlls/comctl32/comctl32.h
+1
-0
commctrl.c
dlls/comctl32/commctrl.c
+44
-0
datetime.c
dlls/comctl32/datetime.c
+1
-1
flatsb.c
dlls/comctl32/flatsb.c
+1
-1
header.c
dlls/comctl32/header.c
+1
-1
hotkey.c
dlls/comctl32/hotkey.c
+1
-1
ipaddress.c
dlls/comctl32/ipaddress.c
+1
-1
listview.c
dlls/comctl32/listview.c
+1
-1
monthcal.c
dlls/comctl32/monthcal.c
+1
-1
nativefont.c
dlls/comctl32/nativefont.c
+1
-1
progress.c
dlls/comctl32/progress.c
+1
-1
rebar.c
dlls/comctl32/rebar.c
+1
-1
status.c
dlls/comctl32/status.c
+1
-1
syslink.c
dlls/comctl32/syslink.c
+1
-1
tab.c
dlls/comctl32/tab.c
+1
-1
toolbar.c
dlls/comctl32/toolbar.c
+1
-1
tooltips.c
dlls/comctl32/tooltips.c
+1
-1
trackbar.c
dlls/comctl32/trackbar.c
+1
-1
treeview.c
dlls/comctl32/treeview.c
+1
-1
updown.c
dlls/comctl32/updown.c
+1
-1
No files found.
dlls/comctl32/animate.c
View file @
60a1e20b
...
...
@@ -962,7 +962,7 @@ static LRESULT WINAPI ANIMATE_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LP
return
DefWindowProcW
(
hWnd
,
uMsg
,
wParam
,
lParam
);
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hWnd
,
uMsg
,
wParam
,
lParam
);
...
...
dlls/comctl32/comboex.c
View file @
60a1e20b
...
...
@@ -2310,7 +2310,7 @@ COMBOEX_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
0
;
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
}
...
...
dlls/comctl32/comctl32.h
View file @
60a1e20b
...
...
@@ -149,6 +149,7 @@ VOID COMCTL32_RefreshSysColors(void);
void
COMCTL32_DrawInsertMark
(
HDC
hDC
,
const
RECT
*
lpRect
,
COLORREF
clrInsertMark
,
BOOL
bHorizontal
);
void
COMCTL32_EnsureBitmapSize
(
HBITMAP
*
pBitmap
,
int
cxMinWidth
,
int
cyMinHeight
,
COLORREF
crBackground
);
void
COMCTL32_GetFontMetrics
(
HFONT
hFont
,
TEXTMETRICW
*
ptm
);
BOOL
COMCTL32_IsReflectedMessage
(
UINT
uMsg
);
INT
Str_GetPtrWtoA
(
LPCWSTR
lpSrc
,
LPSTR
lpDest
,
INT
nMaxLen
);
INT
Str_GetPtrAtoW
(
LPCSTR
lpSrc
,
LPWSTR
lpDest
,
INT
nMaxLen
);
BOOL
Str_SetPtrAtoW
(
LPWSTR
*
lppDest
,
LPCSTR
lpSrc
);
...
...
dlls/comctl32/commctrl.c
View file @
60a1e20b
...
...
@@ -1572,6 +1572,50 @@ void COMCTL32_GetFontMetrics(HFONT hFont, TEXTMETRICW *ptm)
ReleaseDC
(
NULL
,
hdc
);
}
#ifndef OCM__BASE
/* avoid including olectl.h */
#define OCM__BASE (WM_USER+0x1c00)
#endif
/***********************************************************************
* COMCTL32_IsReflectedMessage [internal]
*
* Some parents reflect notify messages - for some messages sent by the child,
* they send it back with the message code increased by OCM__BASE (0x2000).
* This allows better subclassing of controls. We don't need to handle such
* messages but we don't want to print ERRs for them, so this helper function
* identifies them.
*
* Some of the codes are in the CCM_FIRST..CCM_LAST range, but there is no
* colision with defined CCM_ codes.
*/
BOOL
COMCTL32_IsReflectedMessage
(
UINT
uMsg
)
{
switch
(
uMsg
)
{
case
OCM__BASE
+
WM_COMMAND
:
case
OCM__BASE
+
WM_CTLCOLORBTN
:
case
OCM__BASE
+
WM_CTLCOLOREDIT
:
case
OCM__BASE
+
WM_CTLCOLORDLG
:
case
OCM__BASE
+
WM_CTLCOLORLISTBOX
:
case
OCM__BASE
+
WM_CTLCOLORMSGBOX
:
case
OCM__BASE
+
WM_CTLCOLORSCROLLBAR
:
case
OCM__BASE
+
WM_CTLCOLORSTATIC
:
case
OCM__BASE
+
WM_DRAWITEM
:
case
OCM__BASE
+
WM_MEASUREITEM
:
case
OCM__BASE
+
WM_DELETEITEM
:
case
OCM__BASE
+
WM_VKEYTOITEM
:
case
OCM__BASE
+
WM_CHARTOITEM
:
case
OCM__BASE
+
WM_COMPAREITEM
:
case
OCM__BASE
+
WM_HSCROLL
:
case
OCM__BASE
+
WM_VSCROLL
:
case
OCM__BASE
+
WM_PARENTNOTIFY
:
case
OCM__BASE
+
WM_NOTIFY
:
return
TRUE
;
default:
return
FALSE
;
}
}
/***********************************************************************
* MirrorIcon [COMCTL32.414]
*
...
...
dlls/comctl32/datetime.c
View file @
60a1e20b
...
...
@@ -1381,7 +1381,7 @@ DATETIME_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
(
LRESULT
)
infoPtr
->
hFont
;
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
...
...
dlls/comctl32/flatsb.c
View file @
60a1e20b
...
...
@@ -257,7 +257,7 @@ FlatSB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
FlatSB_Destroy
(
hwnd
,
wParam
,
lParam
);
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
...
...
dlls/comctl32/header.c
View file @
60a1e20b
...
...
@@ -2125,7 +2125,7 @@ HEADER_WindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
return
HEADER_SetRedraw
(
hwnd
,
wParam
,
lParam
);
default:
if
((
msg
>=
WM_USER
)
&&
(
msg
<
WM_APP
))
if
((
msg
>=
WM_USER
)
&&
(
msg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
msg
)
)
ERR
(
"unknown msg %04x wp=%04lx lp=%08lx
\n
"
,
msg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
msg
,
wParam
,
lParam
);
...
...
dlls/comctl32/hotkey.c
View file @
60a1e20b
...
...
@@ -528,7 +528,7 @@ HOTKEY_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
HOTKEY_SetFont
(
infoPtr
,
(
HFONT
)
wParam
,
LOWORD
(
lParam
));
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
...
...
dlls/comctl32/ipaddress.c
View file @
60a1e20b
...
...
@@ -590,7 +590,7 @@ IPADDRESS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
IPADDRESS_IsBlank
(
infoPtr
);
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
}
...
...
dlls/comctl32/listview.c
View file @
60a1e20b
...
...
@@ -10033,7 +10033,7 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
/* case WM_WININICHANGE: */
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
fwd_msg:
...
...
dlls/comctl32/monthcal.c
View file @
60a1e20b
...
...
@@ -2072,7 +2072,7 @@ MONTHCAL_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
MONTHCAL_Destroy
(
infoPtr
);
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
}
...
...
dlls/comctl32/nativefont.c
View file @
60a1e20b
...
...
@@ -101,7 +101,7 @@ NATIVEFONT_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
...
...
dlls/comctl32/progress.c
View file @
60a1e20b
...
...
@@ -722,7 +722,7 @@ static LRESULT WINAPI ProgressWindowProc(HWND hwnd, UINT message,
return
infoPtr
->
Marquee
;
default:
if
((
message
>=
WM_USER
)
&&
(
message
<
WM_APP
))
if
((
message
>=
WM_USER
)
&&
(
message
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
message
)
)
ERR
(
"unknown msg %04x wp=%04lx lp=%08lx
\n
"
,
message
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
message
,
wParam
,
lParam
);
}
...
...
dlls/comctl32/rebar.c
View file @
60a1e20b
...
...
@@ -3733,7 +3733,7 @@ REBAR_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
REBAR_WindowPosChanged
(
infoPtr
,
wParam
,
lParam
);
default
:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
...
...
dlls/comctl32/status.c
View file @
60a1e20b
...
...
@@ -1346,7 +1346,7 @@ StatusWindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
return
theme_changed
(
infoPtr
);
default:
if
((
msg
>=
WM_USER
)
&&
(
msg
<
WM_APP
))
if
((
msg
>=
WM_USER
)
&&
(
msg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
msg
)
)
ERR
(
"unknown msg %04x wp=%04lx lp=%08lx
\n
"
,
msg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
msg
,
wParam
,
lParam
);
...
...
dlls/comctl32/syslink.c
View file @
60a1e20b
...
...
@@ -1750,7 +1750,7 @@ static LRESULT WINAPI SysLinkWindowProc(HWND hwnd, UINT message,
default:
HandleDefaultMessage:
if
((
message
>=
WM_USER
)
&&
(
message
<
WM_APP
))
if
((
message
>=
WM_USER
)
&&
(
message
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
message
)
)
{
ERR
(
"unknown msg %04x wp=%04lx lp=%08lx
\n
"
,
message
,
wParam
,
lParam
);
}
...
...
dlls/comctl32/tab.c
View file @
60a1e20b
...
...
@@ -3269,7 +3269,7 @@ TAB_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TAB_NCCalcSize
(
hwnd
,
wParam
,
lParam
);
default:
if
(
uMsg
>=
WM_USER
&&
uMsg
<
WM_APP
)
if
(
uMsg
>=
WM_USER
&&
uMsg
<
WM_APP
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
WARN
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
break
;
...
...
dlls/comctl32/toolbar.c
View file @
60a1e20b
...
...
@@ -7046,7 +7046,7 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
default
:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
...
...
dlls/comctl32/tooltips.c
View file @
60a1e20b
...
...
@@ -2843,7 +2843,7 @@ TOOLTIPS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TOOLTIPS_WinIniChange
(
hwnd
,
wParam
,
lParam
);
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
...
...
dlls/comctl32/trackbar.c
View file @
60a1e20b
...
...
@@ -1911,7 +1911,7 @@ TRACKBAR_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return
TRACKBAR_InitializeThumb
(
infoPtr
);
default:
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
ERR
(
"unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
}
...
...
dlls/comctl32/treeview.c
View file @
60a1e20b
...
...
@@ -5705,7 +5705,7 @@ TREEVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
default:
/* This mostly catches MFC and Delphi messages. :( */
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
))
if
((
uMsg
>=
WM_USER
)
&&
(
uMsg
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
uMsg
)
)
TRACE
(
"Unknown msg %04x wp=%08lx lp=%08lx
\n
"
,
uMsg
,
wParam
,
lParam
);
def:
return
DefWindowProcW
(
hwnd
,
uMsg
,
wParam
,
lParam
);
...
...
dlls/comctl32/updown.c
View file @
60a1e20b
...
...
@@ -1082,7 +1082,7 @@ static LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam, L
return
temp
;
default:
if
((
message
>=
WM_USER
)
&&
(
message
<
WM_APP
))
if
((
message
>=
WM_USER
)
&&
(
message
<
WM_APP
)
&&
!
COMCTL32_IsReflectedMessage
(
message
)
)
ERR
(
"unknown msg %04x wp=%04lx lp=%08lx
\n
"
,
message
,
wParam
,
lParam
);
return
DefWindowProcW
(
hwnd
,
message
,
wParam
,
lParam
);
}
...
...
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