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
fe441a06
Commit
fe441a06
authored
Oct 24, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Register classes once the graphics driver has been loaded, except for the desktop class.
parent
e4a43cfa
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
10 deletions
+22
-10
class.c
dlls/user32/class.c
+13
-5
controls.h
dlls/user32/controls.h
+2
-1
desktop.c
dlls/user32/desktop.c
+1
-1
driver.c
dlls/user32/driver.c
+3
-0
message.c
dlls/user32/message.c
+1
-1
user_main.c
dlls/user32/user_main.c
+2
-0
win.c
dlls/user32/win.c
+0
-2
No files found.
dlls/user32/class.c
View file @
fe441a06
...
...
@@ -369,7 +369,7 @@ static void register_builtin( const struct builtin_class_descr *descr )
if
(
!
(
classPtr
=
CLASS_RegisterClass
(
descr
->
name
,
user32_module
,
FALSE
,
descr
->
style
,
0
,
descr
->
extra
)))
return
;
classPtr
->
hCursor
=
LoadCursorA
(
0
,
(
LPSTR
)
descr
->
cursor
);
if
(
descr
->
cursor
)
classPtr
->
hCursor
=
LoadCursorA
(
0
,
(
LPSTR
)
descr
->
cursor
);
classPtr
->
hbrBackground
=
descr
->
brush
;
classPtr
->
winproc
=
BUILTIN_WINPROC
(
descr
->
proc
);
release_class_ptr
(
classPtr
);
...
...
@@ -381,7 +381,6 @@ static void register_builtin( const struct builtin_class_descr *descr )
*/
static
BOOL
WINAPI
register_builtins
(
INIT_ONCE
*
once
,
void
*
param
,
void
**
context
)
{
register_builtin
(
&
DESKTOP_builtin_class
);
register_builtin
(
&
BUTTON_builtin_class
);
register_builtin
(
&
COMBO_builtin_class
);
register_builtin
(
&
COMBOLBOX_builtin_class
);
...
...
@@ -391,7 +390,6 @@ static BOOL WINAPI register_builtins( INIT_ONCE *once, void *param, void **conte
register_builtin
(
&
LISTBOX_builtin_class
);
register_builtin
(
&
MDICLIENT_builtin_class
);
register_builtin
(
&
MENU_builtin_class
);
register_builtin
(
&
MESSAGE_builtin_class
);
register_builtin
(
&
SCROLL_builtin_class
);
register_builtin
(
&
STATIC_builtin_class
);
return
TRUE
;
...
...
@@ -399,15 +397,25 @@ static BOOL WINAPI register_builtins( INIT_ONCE *once, void *param, void **conte
/***********************************************************************
*
CLASS_RegisterBuiltinC
lasses
*
register_builtin_c
lasses
*/
void
CLASS_RegisterBuiltinC
lasses
(
void
)
void
register_builtin_c
lasses
(
void
)
{
InitOnceExecuteOnce
(
&
init_once
,
register_builtins
,
NULL
,
NULL
);
}
/***********************************************************************
* register_desktop_class
*/
void
register_desktop_class
(
void
)
{
register_builtin
(
&
DESKTOP_builtin_class
);
register_builtin
(
&
MESSAGE_builtin_class
);
}
/***********************************************************************
* get_class_winproc
*/
WNDPROC
get_class_winproc
(
CLASS
*
class
)
...
...
dlls/user32/controls.h
View file @
fe441a06
...
...
@@ -139,7 +139,8 @@ extern ULONG_PTR set_icon_param( HICON handle, ULONG_PTR param ) DECLSPEC_HIDDEN
struct
tagCLASS
;
/* opaque structure */
struct
tagWND
;
extern
ATOM
get_int_atom_value
(
LPCWSTR
name
)
DECLSPEC_HIDDEN
;
extern
void
CLASS_RegisterBuiltinClasses
(
void
)
DECLSPEC_HIDDEN
;
extern
void
register_builtin_classes
(
void
)
DECLSPEC_HIDDEN
;
extern
void
register_desktop_class
(
void
)
DECLSPEC_HIDDEN
;
extern
WNDPROC
get_class_winproc
(
struct
tagCLASS
*
class
)
DECLSPEC_HIDDEN
;
extern
struct
dce
*
get_class_dce
(
struct
tagCLASS
*
class
)
DECLSPEC_HIDDEN
;
extern
struct
dce
*
set_class_dce
(
struct
tagCLASS
*
class
,
struct
dce
*
dce
)
DECLSPEC_HIDDEN
;
...
...
dlls/user32/desktop.c
View file @
fe441a06
...
...
@@ -48,7 +48,7 @@ const struct builtin_class_descr DESKTOP_builtin_class =
CS_DBLCLKS
,
/* style */
WINPROC_DESKTOP
,
/* proc */
0
,
/* extra */
IDC_ARROW
,
/* cursor */
0
,
/* cursor */
(
HBRUSH
)(
COLOR_BACKGROUND
+
1
)
/* brush */
};
...
...
dlls/user32/driver.c
View file @
fe441a06
...
...
@@ -28,6 +28,7 @@
#include "wine/gdi_driver.h"
#include "user_private.h"
#include "controls.h"
static
USER_DRIVER
null_driver
,
lazy_load_driver
;
...
...
@@ -119,6 +120,8 @@ static const USER_DRIVER *load_driver(void)
}
else
LdrAddRefDll
(
0
,
graphics_driver
);
register_builtin_classes
();
DeleteDC
(
hdc
);
return
driver
;
}
...
...
dlls/user32/message.c
View file @
fe441a06
...
...
@@ -290,7 +290,7 @@ const struct builtin_class_descr MESSAGE_builtin_class =
0
,
/* style */
WINPROC_MESSAGE
,
/* proc */
0
,
/* extra */
IDC_ARROW
,
/* cursor */
0
,
/* cursor */
0
/* brush */
};
...
...
dlls/user32/user_main.c
View file @
fe441a06
...
...
@@ -262,6 +262,8 @@ static void winstation_init(void)
if
(
handle
)
SetThreadDesktop
(
handle
);
}
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
register_desktop_class
();
}
...
...
dlls/user32/win.c
View file @
fe441a06
...
...
@@ -1391,8 +1391,6 @@ HWND WIN_CreateWindowEx( CREATESTRUCTW *cs, LPCWSTR className, HINSTANCE module,
}
}
CLASS_RegisterBuiltinClasses
();
/* Find the parent window */
parent
=
cs
->
hwndParent
;
...
...
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