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
0c202b74
Commit
0c202b74
authored
Oct 05, 2004
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Oct 05, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Audit the static control code.
Change [GS]etWindowLong{,Ptr}A to [GS]etWindowLong{,Ptr}W.
parent
4c906090
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
5 deletions
+40
-5
static.c
dlls/user/static.c
+40
-5
No files found.
dlls/user/static.c
View file @
0c202b74
...
...
@@ -16,6 +16,35 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* NOTES
*
* This code was audited for completeness against the documented features
* of Comctl32.dll version 6.0 on Oct. 4, 2004, by Dimitrie O. Paun.
*
* Unless otherwise noted, we believe this code to be complete, as per
* the specification mentioned above.
* If you discover missing features, or bugs, please note them below.
*
* TODO:
*
* Styles
* - SS_CENTERIMAGE
* - SS_EDITCONTROL
* - SS_ENDELLIPSIS
* - SS_ENHMETAFILE
* - SS_PATHELLIPSIS
* - SS_REALSIZECONTROL
* - SS_REALSIZEIMAGE
* - SS_RIGHTJUST
* - SS_WORDELLIPSIS
*
* Notifications
* - STN_DISABLE
* - STN_ENABLE
*
* Messages
* - STM_SETIMAGE: IMAGE_CURSOR, IMAGE_ENHMETAFILE
*/
#include <stdarg.h>
...
...
@@ -68,7 +97,7 @@ static pfPaint staticPaintFunc[SS_TYPEMASK+1] =
STATIC_PaintOwnerDrawfn
,
/* SS_OWNERDRAW */
STATIC_PaintBitmapfn
,
/* SS_BITMAP */
NULL
,
/* SS_ENHMETAFILE */
STATIC_PaintEtchedfn
,
/* SS_ETCHEDHOR
I
Z */
STATIC_PaintEtchedfn
,
/* SS_ETCHEDHORZ */
STATIC_PaintEtchedfn
,
/* SS_ETCHEDVERT */
STATIC_PaintEtchedfn
,
/* SS_ETCHEDFRAME */
};
...
...
@@ -128,7 +157,7 @@ static HBITMAP STATIC_SetBitmap( HWND hwnd, HBITMAP hBitmap, DWORD style )
ERR
(
"huh? hBitmap!=0, but not bitmap
\n
"
);
return
0
;
}
hOldBitmap
=
(
HBITMAP
)
SetWindowLongPtr
A
(
hwnd
,
HICON_GWL_OFFSET
,
(
LONG_PTR
)
hBitmap
);
hOldBitmap
=
(
HBITMAP
)
SetWindowLongPtr
W
(
hwnd
,
HICON_GWL_OFFSET
,
(
LONG_PTR
)
hBitmap
);
if
(
hBitmap
)
{
BITMAP
bm
;
...
...
@@ -220,7 +249,7 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
LPARAM
lParam
,
BOOL
unicode
)
{
LRESULT
lResult
=
0
;
LONG
full_style
=
GetWindowLong
A
(
hwnd
,
GWL_STYLE
);
LONG
full_style
=
GetWindowLong
W
(
hwnd
,
GWL_STYLE
);
LONG
style
=
full_style
&
SS_TYPEMASK
;
switch
(
uMsg
)
...
...
@@ -275,8 +304,8 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
case
WM_NCCREATE
:
if
(
full_style
&
SS_SUNKEN
)
SetWindowLong
A
(
hwnd
,
GWL_EXSTYLE
,
GetWindowLong
A
(
hwnd
,
GWL_EXSTYLE
)
|
WS_EX_STATICEDGE
);
SetWindowLong
W
(
hwnd
,
GWL_EXSTYLE
,
GetWindowLong
W
(
hwnd
,
GWL_EXSTYLE
)
|
WS_EX_STATICEDGE
);
if
(
unicode
)
lParam
=
(
LPARAM
)(((
LPCREATESTRUCTW
)
lParam
)
->
lpszName
);
...
...
@@ -379,6 +408,12 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
case
IMAGE_BITMAP
:
lResult
=
(
LRESULT
)
STATIC_SetBitmap
(
hwnd
,
(
HBITMAP
)
lParam
,
style
);
break
;
case
IMAGE_CURSOR
:
FIXME
(
"STM_SETIMAGE: Unhandled type IMAGE_CURSOR
\n
"
);
break
;
case
IMAGE_ENHMETAFILE
:
FIXME
(
"STM_SETIMAGE: Unhandled type IMAGE_ENHMETAFILE
\n
"
);
break
;
case
IMAGE_ICON
:
lResult
=
(
LRESULT
)
STATIC_SetIcon
(
hwnd
,
(
HICON
)
lParam
,
style
);
break
;
...
...
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