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
33cf3e0b
Commit
33cf3e0b
authored
May 19, 2003
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GetClassInfo returns class atom on success.
parent
52b732dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
class.c
dlls/user/tests/class.c
+7
-2
class.c
windows/class.c
+9
-3
No files found.
dlls/user/tests/class.c
View file @
33cf3e0b
...
...
@@ -43,6 +43,7 @@ void ClassTest(HINSTANCE hInstance, BOOL global)
WNDCLASSW
cls
,
wc
;
WCHAR
className
[]
=
{
'T'
,
'e'
,
's'
,
't'
,
'C'
,
'l'
,
'a'
,
's'
,
's'
,
0
};
WCHAR
winName
[]
=
{
'W'
,
'i'
,
'n'
,
'C'
,
'l'
,
'a'
,
's'
,
's'
,
'T'
,
'e'
,
's'
,
't'
,
0
};
ATOM
test_atom
;
HWND
hTestWnd
;
DWORD
i
;
WCHAR
str
[
20
];
...
...
@@ -133,8 +134,10 @@ void ClassTest(HINSTANCE hInstance, BOOL global)
"GetClassName returned incorrect name for this window's class"
);
/* check GetClassInfo with our hInstance */
if
(
GetClassInfoW
(
hInstance
,
str
,
&
wc
))
if
(
(
test_atom
=
GetClassInfoW
(
hInstance
,
str
,
&
wc
)
))
{
ok
(
test_atom
==
classatom
,
"class atom did not match"
);
ok
(
wc
.
cbClsExtra
==
cls
.
cbClsExtra
,
"cbClsExtra did not match"
);
ok
(
wc
.
cbWndExtra
==
cls
.
cbWndExtra
,
...
...
@@ -152,8 +155,10 @@ void ClassTest(HINSTANCE hInstance, BOOL global)
/* check GetClassInfo with zero hInstance */
if
(
global
)
{
if
(
GetClassInfoW
(
0
,
str
,
&
wc
))
if
(
(
test_atom
=
GetClassInfoW
(
0
,
str
,
&
wc
)
))
{
ok
(
test_atom
==
classatom
,
"class atom did not match %x != %x"
,
test_atom
,
classatom
);
ok
(
wc
.
cbClsExtra
==
cls
.
cbClsExtra
,
"cbClsExtra did not match %x!=%x"
,
wc
.
cbClsExtra
,
cls
.
cbClsExtra
);
ok
(
wc
.
cbWndExtra
==
cls
.
cbWndExtra
,
...
...
windows/class.c
View file @
33cf3e0b
...
...
@@ -1127,7 +1127,9 @@ BOOL16 WINAPI GetClassInfo16( HINSTANCE16 hInst16, SEGPTR name, WNDCLASS16 *wc )
wc
->
hbrBackground
=
HBRUSH_16
(
classPtr
->
hbrBackground
);
wc
->
lpszClassName
=
name
;
wc
->
lpszMenuName
=
CLASS_GetMenuName16
(
classPtr
);
return
TRUE
;
/* We must return the atom of the class here instead of just TRUE. */
return
atom
;
}
...
...
@@ -1168,7 +1170,9 @@ BOOL WINAPI GetClassInfoA( HINSTANCE hInstance, LPCSTR name,
wc
->
hbrBackground
=
(
HBRUSH
)
classPtr
->
hbrBackground
;
wc
->
lpszMenuName
=
CLASS_GetMenuNameA
(
classPtr
);
wc
->
lpszClassName
=
name
;
return
TRUE
;
/* We must return the atom of the class here instead of just TRUE. */
return
atom
;
}
...
...
@@ -1205,7 +1209,9 @@ BOOL WINAPI GetClassInfoW( HINSTANCE hInstance, LPCWSTR name,
wc
->
hbrBackground
=
(
HBRUSH
)
classPtr
->
hbrBackground
;
wc
->
lpszMenuName
=
CLASS_GetMenuNameW
(
classPtr
);
wc
->
lpszClassName
=
name
;
return
TRUE
;
/* We must return the atom of the class here instead of just TRUE. */
return
atom
;
}
...
...
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