System classes must not have the CS_GLOBALCLASS style.
This commit is contained in:
parent
bfce151ae5
commit
b0622101b6
|
@ -104,7 +104,7 @@ static WORD checkBoxWidth = 0, checkBoxHeight = 0;
|
|||
const struct builtin_class_descr BUTTON_builtin_class =
|
||||
{
|
||||
"Button", /* name */
|
||||
CS_GLOBALCLASS | CS_DBLCLKS | CS_VREDRAW | CS_HREDRAW | CS_PARENTDC, /* style */
|
||||
CS_DBLCLKS | CS_VREDRAW | CS_HREDRAW | CS_PARENTDC, /* style */
|
||||
ButtonWndProcA, /* procA */
|
||||
ButtonWndProcW, /* procW */
|
||||
NB_EXTRA_BYTES, /* extra */
|
||||
|
|
|
@ -83,7 +83,7 @@ static LRESULT WINAPI ComboWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM
|
|||
const struct builtin_class_descr COMBO_builtin_class =
|
||||
{
|
||||
"ComboBox", /* name */
|
||||
CS_GLOBALCLASS | CS_PARENTDC | CS_DBLCLKS, /* style */
|
||||
CS_PARENTDC | CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW, /* style */
|
||||
ComboWndProcA, /* procA */
|
||||
ComboWndProcW, /* procW */
|
||||
sizeof(HEADCOMBO *), /* extra */
|
||||
|
|
|
@ -48,7 +48,7 @@ static LRESULT WINAPI DesktopWndProc( HWND hwnd, UINT message, WPARAM wParam, LP
|
|||
const struct builtin_class_descr DESKTOP_builtin_class =
|
||||
{
|
||||
DESKTOP_CLASS_ATOM, /* name */
|
||||
CS_GLOBALCLASS, /* style */
|
||||
CS_DBLCLKS, /* style */
|
||||
NULL, /* procA (winproc is Unicode only) */
|
||||
DesktopWndProc, /* procW */
|
||||
0, /* extra */
|
||||
|
|
|
@ -285,7 +285,7 @@ LRESULT WINAPI EditWndProcW(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|||
const struct builtin_class_descr EDIT_builtin_class =
|
||||
{
|
||||
"Edit", /* name */
|
||||
CS_GLOBALCLASS | CS_DBLCLKS | CS_PARENTDC, /* style */
|
||||
CS_DBLCLKS | CS_PARENTDC, /* style */
|
||||
EditWndProcA, /* procA */
|
||||
EditWndProcW, /* procW */
|
||||
sizeof(EDITSTATE *), /* extra */
|
||||
|
|
|
@ -47,7 +47,7 @@ static LRESULT WINAPI IconTitleWndProc( HWND hWnd, UINT msg, WPARAM wParam, LPAR
|
|||
const struct builtin_class_descr ICONTITLE_builtin_class =
|
||||
{
|
||||
ICONTITLE_CLASS_ATOM, /* name */
|
||||
CS_GLOBALCLASS, /* style */
|
||||
0, /* style */
|
||||
NULL, /* procA (winproc is Unicode only) */
|
||||
IconTitleWndProc, /* procW */
|
||||
0, /* extra */
|
||||
|
|
|
@ -139,7 +139,7 @@ static LRESULT LISTBOX_GetItemRect( LB_DESCR *descr, INT index, RECT *rect );
|
|||
const struct builtin_class_descr LISTBOX_builtin_class =
|
||||
{
|
||||
"ListBox", /* name */
|
||||
CS_GLOBALCLASS | CS_DBLCLKS /*| CS_PARENTDC*/, /* style */
|
||||
CS_DBLCLKS /*| CS_PARENTDC*/, /* style */
|
||||
ListBoxWndProcA, /* procA */
|
||||
ListBoxWndProcW, /* procW */
|
||||
sizeof(LB_DESCR *), /* extra */
|
||||
|
@ -154,7 +154,7 @@ const struct builtin_class_descr LISTBOX_builtin_class =
|
|||
const struct builtin_class_descr COMBOLBOX_builtin_class =
|
||||
{
|
||||
"ComboLBox", /* name */
|
||||
CS_GLOBALCLASS | CS_DBLCLKS | CS_SAVEBITS, /* style */
|
||||
CS_DBLCLKS | CS_SAVEBITS, /* style */
|
||||
ComboLBWndProcA, /* procA */
|
||||
ComboLBWndProcW, /* procW */
|
||||
sizeof(LB_DESCR *), /* extra */
|
||||
|
|
|
@ -184,7 +184,7 @@ DWORD WINAPI DrawMenuBarTemp(HWND hwnd, HDC hDC, LPRECT lprect, HMENU hMenu, HFO
|
|||
const struct builtin_class_descr MENU_builtin_class =
|
||||
{
|
||||
POPUPMENU_CLASS_ATOMA, /* name */
|
||||
CS_GLOBALCLASS | CS_SAVEBITS, /* style */
|
||||
CS_DROPSHADOW | CS_SAVEBITS | CS_DBLCLKS, /* style */
|
||||
NULL, /* procA (winproc is Unicode only) */
|
||||
PopupMenuWndProc, /* procW */
|
||||
sizeof(HMENU), /* extra */
|
||||
|
|
|
@ -132,7 +132,7 @@ static LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPA
|
|||
const struct builtin_class_descr SCROLL_builtin_class =
|
||||
{
|
||||
"ScrollBar", /* name */
|
||||
CS_GLOBALCLASS | CS_DBLCLKS | CS_VREDRAW | CS_HREDRAW | CS_PARENTDC, /* style */
|
||||
CS_DBLCLKS | CS_VREDRAW | CS_HREDRAW | CS_PARENTDC, /* style */
|
||||
NULL, /* procA (winproc is Unicode only) */
|
||||
ScrollBarWndProc, /* procW */
|
||||
sizeof(SCROLLBAR_INFO), /* extra */
|
||||
|
|
|
@ -80,7 +80,7 @@ static pfPaint staticPaintFunc[SS_TYPEMASK+1] =
|
|||
const struct builtin_class_descr STATIC_builtin_class =
|
||||
{
|
||||
"Static", /* name */
|
||||
CS_GLOBALCLASS | CS_DBLCLKS | CS_PARENTDC, /* style */
|
||||
CS_DBLCLKS | CS_PARENTDC, /* style */
|
||||
StaticWndProcA, /* procA */
|
||||
StaticWndProcW, /* procW */
|
||||
STATIC_EXTRA_BYTES, /* extra */
|
||||
|
|
|
@ -97,7 +97,7 @@ typedef struct
|
|||
const struct builtin_class_descr DIALOG_builtin_class =
|
||||
{
|
||||
DIALOG_CLASS_ATOMA, /* name */
|
||||
CS_GLOBALCLASS | CS_SAVEBITS | CS_DBLCLKS, /* style */
|
||||
CS_SAVEBITS | CS_DBLCLKS, /* style */
|
||||
DefDlgProcA, /* procA */
|
||||
DefDlgProcW, /* procW */
|
||||
DLGWINDOWEXTRA, /* extra */
|
||||
|
|
|
@ -182,7 +182,7 @@ static void MDI_PostUpdate(HWND hwnd, MDICLIENTINFO* ci, WORD recalc)
|
|||
const struct builtin_class_descr MDICLIENT_builtin_class =
|
||||
{
|
||||
"MDIClient", /* name */
|
||||
CS_GLOBALCLASS, /* style */
|
||||
0, /* style */
|
||||
MDIClientWndProcA, /* procA */
|
||||
MDIClientWndProcW, /* procW */
|
||||
sizeof(MDICLIENTINFO), /* extra */
|
||||
|
|
Loading…
Reference in New Issue