Ignore:
Timestamp:
Dec 14, 1999, 8:13:20 PM (26 years ago)
Author:
sandervl
Message:

MDI changes + WM_INITMENU support added + disabled experimental support for CS_PARENTDC style

File:
1 edited

Legend:

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

    r2040 r2076  
    1 /* $Id: win32wbase.cpp,v 1.109 1999-12-09 10:59:04 sandervl Exp $ */
     1/* $Id: win32wbase.cpp,v 1.110 1999-12-14 19:13:19 sandervl Exp $ */
    22/*
    33 * Win32 Window Base Class for OS/2
     
    147147  fCreated         = FALSE;
    148148  fTaskList        = FALSE;
     149  fParentDC        = FALSE;
    149150
    150151  windowNameA      = NULL;
     
    270271BOOL Win32BaseWindow::IsWindowUnicode()
    271272{
     273//    dprintf2(("IsWindowUnicode %x %d", getWindowHandle(), WINPROC_GetProcType(getWindowProc()) == WIN_PROC_32W));
    272274    return (WINPROC_GetProcType(getWindowProc()) == WIN_PROC_32W);
    273275}
     
    440442  }
    441443
    442   WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc(), (isUnicode) ? WIN_PROC_32W : WIN_PROC_32A, WIN_PROC_WINDOW);
     444  WINPROC_SetProc((HWINDOWPROC *)&win32wndproc, windowClass->getWindowProc(), WINPROC_GetProcType(windowClass->getWindowProc()), WIN_PROC_WINDOW);
    443445  hInstance = cs->hInstance;
    444446  dwStyle   = cs->style & ~WS_VISIBLE;
     
    634636  if(windowClass->getStyle() & CS_OWNDC) {
    635637    dprintf(("Class with CS_OWNDC style"));
    636 //  ownDC = GetWindowDC(getWindowHandle());
     638//    ownDC = GetWindowDC(getWindowHandle());
    637639  }
    638640  else
    639641  if (windowClass->getStyle() & CS_PARENTDC)  {
    640642    dprintf(("ERROR: Class with CS_PARENTDC style -> NOT IMPLEMENTED!"));
     643    fParentDC = TRUE;
    641644    ownDC = 0;
    642645  }
     
    12211224}
    12221225//******************************************************************************
     1226//TODO: Depending on menu type, we should send WM_INITMENU or WM_INITPOPUPMENU
     1227//TODO: PM sends it for each submenu that gets activated; Windows only for the first
     1228//      submenu; once the menu bar is active, moving the cursor doesn't generate other
     1229//      WM_INITMENU msgs. Not really a problem, but might need to fix this later on.
     1230//******************************************************************************
     1231void Win32BaseWindow::MsgInitMenu(HWND hMenu)
     1232{
     1233    SendInternalMessageA(WM_INITMENU, (WPARAM)hMenu, 0);
     1234}
     1235//******************************************************************************
    12231236//******************************************************************************
    12241237ULONG Win32BaseWindow::MsgPaint(ULONG tmp1, BOOL select)
     
    22232236                if(parentwindow) {
    22242237                        if(Msg == WM_CREATE || Msg == WM_DESTROY) {
    2225                                 parentwindow->SendMessageA(WM_PARENTNOTIFY, MAKEWPARAM(Msg, window->getWindowId()), (LPARAM)window->getWindowHandle());
     2238                                parentwindow->SendMessageA(WM_PARENTNOTIFY, MAKEWPARAM(Msg, getWindowId()), (LPARAM)getWindowHandle());
    22262239                        }
    2227                         else    parentwindow->SendMessageA(WM_PARENTNOTIFY, MAKEWPARAM(Msg, window->getWindowId()), lParam );
     2240                        else    parentwindow->SendMessageA(WM_PARENTNOTIFY, MAKEWPARAM(Msg, getWindowId()), lParam );
    22282241                }
    22292242        }
     
    29742987 LONG oldval;
    29752988
    2976     dprintf2(("SetWindowLongA %x %d %x", getWindowHandle(), index, value));
     2989    dprintf2(("SetWindowLong%c %x %d %x", (fUnicode) ? 'W' : 'A', getWindowHandle(), index, value));
    29772990    switch(index) {
    29782991        case GWL_EXSTYLE:
Note: See TracChangeset for help on using the changeset viewer.