Ignore:
Timestamp:
Aug 30, 1999, 2:00:12 PM (26 years ago)
Author:
sandervl
Message:

Redesign; base class for all window types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/winaccel.cpp

    r342 r741  
    1 /* $Id: winaccel.cpp,v 1.3 1999-07-20 07:42:36 sandervl Exp $ */
     1/* $Id: winaccel.cpp,v 1.4 1999-08-30 11:59:54 sandervl Exp $ */
    22/*
    33 * Win32 accelartor key functions for OS/2
     
    1111#include <os2win.h>
    1212#include <misc.h>
    13 #include <win32wnd.h>
     13#include <win32wbase.h>
    1414
    1515//******************************************************************************
     
    4242
    4343    if(HIWORD(haccel) == 0) {
    44         dprintf(("DestroyAcceleratorTable: invalid haccel %x", haccel));
    45         SetLastError(ERROR_INVALID_PARAMETER);
    46         return FALSE;
     44    dprintf(("DestroyAcceleratorTable: invalid haccel %x", haccel));
     45    SetLastError(ERROR_INVALID_PARAMETER);
     46    return FALSE;
    4747    }
    4848    dprintf(("DestroyAcceleratorTable %x\n", haccel));
     
    5656int WIN32API TranslateAcceleratorA(HWND hwnd, HACCEL haccel, LPMSG lpmsg)
    5757{
    58  Win32Window *window;
     58 Win32BaseWindow *window;
    5959
    60     window = Win32Window::GetWindowFromHandle(hwnd);
     60    window = Win32BaseWindow::GetWindowFromHandle(hwnd);
    6161    if(!window) {
    6262//Msg for (non-client) child of our frame window
    63 //      dprintf(("TranslateAcceleratorA, window %x not found", hwnd));
    64         return FALSE;
     63//      dprintf(("TranslateAcceleratorA, window %x not found", hwnd));
     64        return FALSE;
    6565    }
    6666    if(window->GetAccelTable() != haccel) {
    67         dprintf(("TranslateAcceleratorA %X %X %X", hwnd, haccel, lpmsg->hwnd));
    68         window->SetAccelTable(haccel);
     67    dprintf(("TranslateAcceleratorA %X %X %X", hwnd, haccel, lpmsg->hwnd));
     68    window->SetAccelTable(haccel);
    6969    }
    7070
Note: See TracChangeset for help on using the changeset viewer.