Patch by Alexandre Julliard, Allow creating windows of the desktop class.

svn path=/trunk/; revision=21443
This commit is contained in:
James Tabor 2006-04-02 05:10:26 +00:00
parent 84c8c2f8d9
commit ed6d1ed52f
2 changed files with 29 additions and 2 deletions

View file

@ -69,9 +69,7 @@ ControlsInit(LPCWSTR ClassName)
&POPUPMENU_builtin_class,
&COMBO_builtin_class,
&COMBOLBOX_builtin_class,
#if 0
&DESKTOP_builtin_class,
#endif
&MDICLIENT_builtin_class,
#if 0
&MENU_builtin_class,

View file

@ -11,6 +11,35 @@
#include <user32.h>
#define DESKTOP_CLASS_ATOM MAKEINTATOMA(32769) /* Desktop */
static LRESULT WINAPI DesktopWndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam );
/*********************************************************************
* desktop class descriptor
*/
const struct builtin_class_descr DESKTOP_builtin_class =
{
(LPCWSTR) DESKTOP_CLASS_ATOM, /* name */
CS_DBLCLKS, /* style */
NULL, /* procA (winproc is Unicode only) */
(WNDPROC) DesktopWndProc, /* procW */
0, /* extra */
IDC_ARROW, /* cursor */
(HBRUSH)(COLOR_BACKGROUND+1) /* brush */
};
static
LRESULT
WINAPI
DesktopWndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam )
{
DPRINT1("Desktop Class Atom!\n");
if (message == WM_NCCREATE) return TRUE;
return 0; /* all other messages are ignored */
}
VOID
STDCALL
LogFontW2A(LPLOGFONTA pA, CONST LOGFONTW *pW)