Changeset 7866 for trunk/src


Ignore:
Timestamp:
Feb 11, 2002, 2:48:43 PM (24 years ago)
Author:
sandervl
Message:

logging changes, window title fix (codepage), keyboard fixes

Location:
trunk/src/user32
Files:
1 added
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/Makefile

    r7801 r7866  
    1 # $Id: Makefile,v 1.99 2002-02-05 17:58:58 sandervl Exp $
     1# $Id: Makefile,v 1.100 2002-02-11 13:48:39 sandervl Exp $
    22
    33#
     
    1111# Compiler, tools, and interference rules.
    1212#
     13!if "$(DEBUG)" == "1"
     14DEFFILE    = user32dbg.def
     15ORGDEFFILE = user32.def
     16!endif
     17
    1318WRC_PREFIX_RESOURCE=1
    1419!include ../../makefile.inc
     
    103108$(OBJDIR)\user32rsrc.obj \
    104109$(OBJDIR)\oslibprf.obj \
     110!ifdef DEBUG
     111$(OBJDIR)\dbgwrap.obj \
     112!endif
    105113$(OBJDIR)\stats.obj
    106114
  • trunk/src/user32/dbglocal.cpp

    r7801 r7866  
    1 /* $Id: dbglocal.cpp,v 1.8 2002-02-05 17:58:58 sandervl Exp $ */
     1/* $Id: dbglocal.cpp,v 1.9 2002-02-11 13:48:40 sandervl Exp $ */
    22
    33/*
     
    8989"win32wbaseprop",
    9090"dcrgn",
    91 "message"
     91"message",
     92"trace"
    9293};
    9394//******************************************************************************
  • trunk/src/user32/dbglocal.h

    r7801 r7866  
    1 /* $Id: dbglocal.h,v 1.7 2002-02-05 17:58:59 sandervl Exp $ */
     1/* $Id: dbglocal.h,v 1.8 2002-02-11 13:48:40 sandervl Exp $ */
    22
    33/*
     
    8989#define DBG_dcrgn                67
    9090#define DBG_message              68
    91 #define DBG_MAXFILES             69
     91#define DBG_trace                69
     92#define DBG_MAXFILES             70
    9293
    9394extern USHORT DbgEnabledUSER32[DBG_MAXFILES];
  • trunk/src/user32/dde.cpp

    r6517 r7866  
    1 /* $Id: dde.cpp,v 1.14 2001-08-11 12:03:35 sandervl Exp $ */
     1/* $Id: dde.cpp,v 1.15 2002-02-11 13:48:40 sandervl Exp $ */
    22
    33/*
     
    3333//******************************************************************************
    3434//******************************************************************************
    35 HDDEDATA WIN32API DdeAddData( HDDEDATA arg1, PVOID arg2, DWORD arg3, DWORD  arg4)
     35HDDEDATA WIN32API DdeAddData( HDDEDATA arg1, LPBYTE arg2, DWORD arg3, DWORD  arg4)
    3636{
    3737    dprintf(("USER32: DdeAddData %x %x %x %x", arg1, arg2, arg3, arg4));
    38     return O32_DdeAddData(arg1, arg2, arg3, arg4);
    39 }
    40 //******************************************************************************
    41 //******************************************************************************
    42 HDDEDATA WIN32API DdeClientTransaction(PVOID arg1, DWORD arg2, HCONV arg3,
     38    return O32_DdeAddData(arg1, (PVOID)arg2, arg3, arg4);
     39}
     40//******************************************************************************
     41//******************************************************************************
     42HDDEDATA WIN32API DdeClientTransaction(LPBYTE arg1, DWORD arg2, HCONV arg3,
    4343                                       HSZ arg4, UINT arg5, UINT arg6, DWORD arg7,
    44                                        PDWORD arg8)
     44                                       LPDWORD arg8)
    4545{
    4646    dprintf(("USER32: DdeClientTransaction %x %x %x %x %x %x %x %x", arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8));
    4747
    48     return O32_DdeClientTransaction(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
     48    return O32_DdeClientTransaction((PVOID)arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
    4949}
    5050//******************************************************************************
     
    7878//******************************************************************************
    7979//******************************************************************************
    80 HDDEDATA WIN32API DdeCreateDataHandle(DWORD arg1, PVOID arg2, DWORD arg3, DWORD arg4,
     80HDDEDATA WIN32API DdeCreateDataHandle(DWORD arg1, LPBYTE arg2, DWORD arg3, DWORD arg4,
    8181                                      HSZ arg5, UINT arg6, UINT  arg7)
    8282{
    8383    dprintf(("USER32: DdeCreateDataHandle %x %x %x %x %x %x %x", arg1, arg2, arg3, arg4, arg5, arg6, arg7));
    84     return O32_DdeCreateDataHandle(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
     84    return O32_DdeCreateDataHandle(arg1, (PVOID)arg2, arg3, arg4, arg5, arg6, arg7);
    8585}
    8686//******************************************************************************
     
    148148//******************************************************************************
    149149//******************************************************************************
    150 DWORD WIN32API DdeGetData( HDDEDATA arg1, PVOID arg2, DWORD arg3, DWORD  arg4)
     150DWORD WIN32API DdeGetData( HDDEDATA arg1, LPBYTE arg2, DWORD arg3, DWORD  arg4)
    151151{
    152152    dprintf(("USER32: DdeGetData %x %x %x %x", arg1, arg2, arg3, arg4));
    153153
    154     return O32_DdeGetData(arg1, arg2, arg3, arg4);
     154    return O32_DdeGetData(arg1, (PVOID)arg2, arg3, arg4);
    155155}
    156156//******************************************************************************
     
    324324//******************************************************************************
    325325//******************************************************************************
    326 UINT WIN32API ReuseDDElParam( UINT arg1, UINT arg2, UINT arg3, UINT arg4, UINT arg5)
     326UINT WIN32API ReuseDDElParam(LPARAM arg1, UINT arg2, UINT arg3, UINT arg4, UINT arg5)
    327327{
    328328    dprintf(("USER32:  ReuseDDElParam\n"));
     
    332332//******************************************************************************
    333333//******************************************************************************
    334 BOOL WIN32API UnpackDDElParam(UINT arg1, UINT arg2, LPUINT arg3, LPUINT arg4)
     334BOOL WIN32API UnpackDDElParam(UINT arg1, LPARAM arg2, PUINT arg3, PUINT arg4)
    335335{
    336336    dprintf(("USER32:  UnpackDDElParam\n"));
  • trunk/src/user32/oslibmsgtranslate.cpp

    r7837 r7866  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.80 2002-02-08 09:58:42 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.81 2002-02-11 13:48:40 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    667667            winMsg->lParam |= WIN_KEY_PREVSTATE;                    // bit 30, previous state, always 1 for a WM_KEYUP message
    668668            winMsg->lParam |= 1 << 31;                              // bit 31, transition state, always 1 for WM_KEYUP
    669 
     669          }
     670          else
     671          { // send WM_KEYDOWN message
     672            winMsg->message = WINWM_KEYDOWN;
     673            if (keyWasPressed)
     674              winMsg->lParam |= WIN_KEY_PREVSTATE;                  // bit 30, previous state, 1 means key was pressed
     675             
    670676            //Shift-Enter and possibly others need to have special handling
    671              if (flags & KC_SHIFT)
    672              {
     677            if (flags & KC_SHIFT)
     678            {
    673679                if(fMsgRemoved && !(teb->o.odin.fTranslated))
    674680                {                   
     
    680686   
    681687                    extramsg.message = WINWM_CHAR;
    682                     extramsg.lParam |= 1 << 31;                              // bit 31, transition state, always 1 for WM_KEYUP
    683688
    684689                    // insert message into the queue
    685690                    setThreadQueueExtraCharMessage(teb, &extramsg);
    686 
    687                     winMsg->message = WINWM_KEYDOWN;
    688691                    winMsg->lParam &= 0x3FFFFFFF;
    689692                  }
    690693               } // else ???
    691694            } // KC_SHIFT
    692           }
    693           else
    694           {
    695             // send WM_KEYDOWN message
    696             winMsg->message = WINWM_KEYDOWN;
    697             if (keyWasPressed)
    698               winMsg->lParam |= WIN_KEY_PREVSTATE;                  // bit 30, previous state, 1 means key was pressed
     695            else
     696            {
     697              // in case we handle Enter directly through PMKBDHOOK
     698              if ((os2Msg->msg == WM_CHAR_SPECIAL) && (winMsg->wParam == VK_RETURN_W)
     699                   && (fMsgRemoved && !(teb->o.odin.fTranslated)))
     700              {
     701                    MSG extramsg;
     702                    memcpy(&extramsg, winMsg, sizeof(MSG));
     703   
     704                    extramsg.message = WINWM_CHAR;
     705
     706                    // insert message into the queue
     707                    setThreadQueueExtraCharMessage(teb, &extramsg);
     708              }
     709            }
    699710          }
    700711        }
  • trunk/src/user32/oslibwin.cpp

    r7780 r7866  
    1 /* $Id: oslibwin.cpp,v 1.113 2002-01-20 15:26:20 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.114 2002-02-11 13:48:41 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    10351035    swctrl.bProgType     = PROG_PM;
    10361036    if(title) {
    1037         strncpy(swctrl.szSwtitle, title, MAXNAMEL+4);
     1037//        strncpy(swctrl.szSwtitle, title, MAXNAMEL+4);
     1038        CharToOemBuffA( title, swctrl.szSwtitle, MAXNAMEL+4 );
    10381039        swctrl.szSwtitle[MAXNAMEL+4-1] = 0;
    10391040    }
     
    10601061    swctrl.bProgType     = PROG_PM;
    10611062    if(title) {
    1062         strncpy(swctrl.szSwtitle, title, MAXNAMEL+4);
     1063//        strncpy(swctrl.szSwtitle, title, MAXNAMEL+4);
     1064        CharToOemBuffA( title, swctrl.szSwtitle, MAXNAMEL+4 );
    10631065        swctrl.szSwtitle[MAXNAMEL+4-1] = 0;
    10641066    }
  • trunk/src/user32/user32.cpp

    r7801 r7866  
    1 /* $Id: user32.cpp,v 1.119 2002-02-05 17:58:59 sandervl Exp $ */
     1/* $Id: user32.cpp,v 1.120 2002-02-11 13:48:41 sandervl Exp $ */
    22
    33/*
     
    20582058 * Author    : Patrick Haller [Wed, 1998/06/16 11:55]
    20592059 *****************************************************************************/
    2060 BOOL WIN32API EndTask(DWORD x1,
    2061                          DWORD x2,
    2062                          DWORD x3)
     2060BOOL WIN32API EndTask(DWORD x1, DWORD x2, DWORD x3)
    20632061{
    20642062  dprintf(("USER32: EndTask(%08xh,%08xh,%08xh) not implemented.\n",
     
    20802078 * Author    : Patrick Haller [Wed, 1998/06/16 11:55]
    20812079 *****************************************************************************/
    2082 BOOL WIN32API GetNextQueueWindow(DWORD x1,
    2083                                     DWORD x2)
     2080BOOL WIN32API GetNextQueueWindow(DWORD x1, DWORD x2)
    20842081{
    20852082  dprintf(("USER32: GetNextQueueWindow(%08xh,%08xh) not implemented.\n",
     
    21782175                                DWORD x4)
    21792176{
    2180   dprintf(("USER32: SysErrorBox(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
     2177  dprintf(("USER32: UserSignalProc(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
    21812178           x1,
    21822179           x2,
  • trunk/src/user32/win32wmdiclient.cpp

    r6762 r7866  
    1 /* $Id: win32wmdiclient.cpp,v 1.39 2001-09-19 15:39:51 sandervl Exp $ */
     1/* $Id: win32wmdiclient.cpp,v 1.40 2002-02-11 13:48:42 sandervl Exp $ */
    22/*
    33 * Win32 MDI Client Window Class for OS/2
     
    9999 * Author    : Patrick Haller [Wed, 1998/06/16 11:55]
    100100 *****************************************************************************/
    101 BOOL WIN32API CascadeChildWindows(DWORD x1,
    102                                      DWORD x2)
     101BOOL WIN32API CascadeChildWindows(HWND x1, DWORD x2)
    103102{
    104103  dprintf(("USER32: CascadeChildWindows(%08xh,%08xh) not implemented.\n",
     
    120119 * Author    : Patrick Haller [Wed, 1998/06/16 11:55]
    121120 *****************************************************************************/
    122 BOOL WIN32API TileChildWindows(DWORD x1,
    123                                   DWORD x2)
     121BOOL WIN32API TileChildWindows(HWND x1, DWORD x2)
    124122{
    125123  dprintf(("USER32: TileChildWindows(%08xh,%08xh) not implemented.\n",
  • trunk/src/user32/window.cpp

    r7808 r7866  
    1 /* $Id: window.cpp,v 1.116 2002-02-06 16:31:48 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.117 2002-02-11 13:48:42 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    593593 * Author    : Patrick Haller [Thu, 1998/02/26 11:55]
    594594 *****************************************************************************/
    595 ODINFUNCTION2(BOOL, ShowWindowAsync,
    596               HWND, hwnd,
    597               int,  nCmdShow)
     595BOOL WIN32API ShowWindowAsync(HWND hwnd, int nCmdShow)
    598596{
    599597  dprintf(("USER32:ShowWindowAsync (%08xh,%08x) not correctly implemented.\n",
  • trunk/src/user32/winevent.cpp

    r6618 r7866  
    1 /* $Id: winevent.cpp,v 1.1 2001-08-31 20:31:03 phaller Exp $ */
     1/* $Id: winevent.cpp,v 1.2 2002-02-11 13:48:42 sandervl Exp $ */
    22
    33/*
     
    6262 *****************************************************************************/
    6363
    64 ODINPROCEDURE4(NotifyWinEvent,
    65                DWORD, event,
    66                HWND,  hwnd,
    67                LONG,  idObjectType,
    68                LONG,  idObject)
     64void WIN32API NotifyWinEvent(DWORD event, HWND hwnd, LONG idObjectType, LONG idObject)
    6965{
    7066  /*
  • trunk/src/user32/winkeyboard.cpp

    r7722 r7866  
    1 /* $Id: winkeyboard.cpp,v 1.29 2002-01-02 18:37:09 sandervl Exp $ */
     1/* $Id: winkeyboard.cpp,v 1.30 2002-02-11 13:48:43 sandervl Exp $ */
    22/*
    33 * Win32 <-> PM key translation
     
    17721772 * Author    : Patrick Haller [Thu, 1998/02/26 11:55]
    17731773 *****************************************************************************/
    1774 ODINFUNCTION1(BOOL, UnloadKeyboardLayout,
    1775               HKL,  hkl)
     1774BOOL WIN32API UnloadKeyboardLayout(HKL hkl)
    17761775{
    17771776  dprintf(("not implemented.\n"));
Note: See TracChangeset for help on using the changeset viewer.