Ignore:
Timestamp:
Jan 3, 2003, 5:35:58 PM (23 years ago)
Author:
sandervl
Message:

Merged Rewind menu control

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/controls.cpp

    r9523 r9598  
    1 /* $Id: controls.cpp,v 1.11 2002-12-18 12:28:02 sandervl Exp $ */
     1/* $Id: controls.cpp,v 1.12 2003-01-03 16:35:51 sandervl Exp $ */
    22/* File: controls.cpp -- Win32 common controls
    33 *
     
    4848
    4949  dprintf(("Register SCROLLBAR class"));
    50   controlAtoms[SCROLLBAR_CONTROL] = SCROLLBAR_Register();
     50  controlAtoms[SCROLLBAR_CONTROL] =
     51#if 0
     52          InternalRegisterClass((LPSTR)SCROLL_builtin_class.name,
     53                                SCROLL_builtin_class.style,
     54                                SCROLL_builtin_class.procA,
     55                                SCROLL_builtin_class.procW,
     56                                SCROLL_builtin_class.extra,
     57                                SCROLL_builtin_class.cursor,
     58                                SCROLL_builtin_class.brush);
     59#else
     60SCROLLBAR_Register();
     61#endif
    5162  if (!controlAtoms[SCROLLBAR_CONTROL]) dprintf(("failed!!!"));
    5263
     
    122133
    123134  dprintf(("Register POPUPMENU class"));
    124   controlAtoms[POPUPMENU_CONTROL] = POPUPMENU_Register();
     135  controlAtoms[POPUPMENU_CONTROL] =
     136          InternalRegisterClass((LPSTR)MENU_builtin_class.name,
     137                                MENU_builtin_class.style,
     138                                MENU_builtin_class.procA,
     139                                MENU_builtin_class.procW,
     140                                MENU_builtin_class.extra,
     141                                MENU_builtin_class.cursor,
     142                                MENU_builtin_class.brush);
    125143  if (!controlAtoms[POPUPMENU_CONTROL]) dprintf(("failed!!!"));
     144  MENU_Init();
    126145}
    127146
     
    135154
    136155  dprintf(("Unregister SCROLLBAR class"));
     156#if 0
     157  if (!UnregisterClassA((LPSTR)SCROLL_builtin_class.name, NULL)) dprintf(("failed!!!"));
     158#else
    137159  if (!SCROLLBAR_Unregister()) dprintf(("failed!!!"));
     160#endif
    138161
    139162  dprintf(("Unregister LISTBOX class"));
     
    165188
    166189  dprintf(("Unregister POPUPMENU class"));
    167   if (!POPUPMENU_Unregister()) dprintf(("failed!!!"));
    168 
     190  if (!UnregisterClassA((LPSTR)MENU_builtin_class.name, NULL)) dprintf(("failed!!!"));
    169191}
    170192
Note: See TracChangeset for help on using the changeset viewer.