Changeset 6650 for trunk/src/user32


Ignore:
Timestamp:
Sep 5, 2001, 3:54:53 PM (24 years ago)
Author:
bird
Message:

Added $Id:$ keyword.

Location:
trunk/src/user32
Files:
5 edited

Legend:

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

    r5899 r6650  
    1 #include <os2win.h>
    2 
     1/* $Id: dcscroll.cpp,v 1.2 2001-09-05 13:53:50 bird Exp $ */
    32/*
    43 * ScrollDC implementation
    5  * 
     4 *
    65 * Ported from Wine (windows\scroll.c)
    76 * Fixes for clip rectangles & adaption for Odin (SvL)
    87 *
    98 * Copyright  David W. Metcalfe, 1993
    10  *            Alex Korobka       1995,1996
     9 *        Alex Korobka       1995,1996
    1110 *
    1211 *
    1312 */
     13
     14#include <os2win.h>
    1415
    1516//******************************************************************************
     
    2425
    2526    dprintf(("USER32: ScrollDC %04x %d,%d hrgnUpdate=%04x rcUpdate = %p cliprc = (%d,%d-%d,%d), rc=(%d,%d-%d,%d)",
    26                    hdc, dx, dy, hrgnUpdate, rcUpdate, 
    27                    prLClip ? prLClip->left : 0, prLClip ? prLClip->top : 0, prLClip ? prLClip->right : 0, prLClip ? prLClip->bottom : 0,
    28                    rc ? rc->left : 0, rc ? rc->top : 0, rc ? rc->right : 0, rc ? rc->bottom : 0 ));
     27                   hdc, dx, dy, hrgnUpdate, rcUpdate,
     28           prLClip ? prLClip->left : 0, prLClip ? prLClip->top : 0, prLClip ? prLClip->right : 0, prLClip ? prLClip->bottom : 0,
     29           rc ? rc->left : 0, rc ? rc->top : 0, rc ? rc->right : 0, rc ? rc->bottom : 0 ));
    2930
    3031    if ( !hdc ) return FALSE;
     
    3334
    3435    if ( rc )
    35         rect = *rc;
     36    rect = *rc;
    3637    else /* maybe we should just return FALSE? */
    3738    {
    3839        DebugInt3();
    39         GetClipBox( hdc, &rect );
     40    GetClipBox( hdc, &rect );
    4041    }
    4142
     
    4647        rClip = *prLClip;
    4748        LPtoDP( hdc, (LPPOINT)&rClip, 2 );
    48         IntersectRect( &rClip, &rect, &rClip );
     49    IntersectRect( &rClip, &rect, &rClip );
    4950    }
    5051    else
     
    7475
    7576            /* copy bits */
    76    
     77
    7778            DPtoLP( hdc, (LPPOINT)&rSrc, 2 );
    7879            DPtoLP( hdc, &src, 1 );
     
    103104
    104105            if( rcUpdate )
    105             {
    106                 GetRgnBox( hrgn, rcUpdate );
     106        {
     107        GetRgnBox( hrgn, rcUpdate );
    107108
    108                 /* Put the rcUpdate in logical coordinate */
    109                 DPtoLP( hdc, (LPPOINT)rcUpdate, 2 );
    110             }
     109        /* Put the rcUpdate in logical coordinate */
     110        DPtoLP( hdc, (LPPOINT)rcUpdate, 2 );
     111        }
    111112            if (!hrgnUpdate) DeleteObject( hrgn );
    112113            DeleteObject( hrgn2 );
  • trunk/src/user32/initterm.cpp

    r6467 r6650  
     1/* $Id: initterm.cpp,v 1.33 2001-09-05 13:53:50 bird Exp $ */
    12/*
    23 * USER32 DLL entry point
     
    4142#include <initdll.h>
    4243
    43 #define DBG_LOCALLOG    DBG_initterm
     44#define DBG_LOCALLOG    DBG_initterm
    4445#include "dbglocal.h"
    4546
  • trunk/src/user32/inituser32.cpp

    r6467 r6650  
     1/* $Id: inituser32.cpp,v 1.5 2001-09-05 13:53:50 bird Exp $ */
    12/*
    23 * USER32 DLL entry point
     
    4647#include <initdll.h>
    4748
    48 #define DBG_LOCALLOG    DBG_initterm
     49#define DBG_LOCALLOG    DBG_initterm
    4950#include "dbglocal.h"
    5051
     
    116117      case 1 :
    117118         if(hInstanceUser32) {
    118                 UnregisterLxDll(hInstanceUser32);
     119            UnregisterLxDll(hInstanceUser32);
    119120         }
    120121         break;
  • trunk/src/user32/oldnls32.cpp

    r5496 r6650  
    1 /*
    2         winnls32.cpp
    3        
     1/* $Id: oldnls32.cpp,v 1.2 2001-09-05 13:53:50 bird Exp $ */
     2/*
     3    winnls32.cpp
     4
    45*/
    56
     
    1112
    1213/*
    13         BOOL IMPGetIME(hwnd, lpimepro)
    14 
    15         Get Current IME Information
    16         (HWND, InstallDate, Version, Description, FileName, Options on start...)
    17        
    18         to invoke:
    19                 hnwd ... NULL
    20         result:
    21         not 0 ... success (infomation will be stored to lpimepro)
    22         0 ... failure
    23        
    24         see also:
    25                 ImmGetDefaultIMEWnd
    26                 ImmGetDescription
    27                 ImmGetIMEFileName
    28                 ImmGetProperty
     14    BOOL IMPGetIME(hwnd, lpimepro)
     15
     16    Get Current IME Information
     17    (HWND, InstallDate, Version, Description, FileName, Options on start...)
     18
     19    to invoke:
     20        hnwd ... NULL
     21    result:
     22    not 0 ... success (infomation will be stored to lpimepro)
     23    0 ... failure
     24
     25    see also:
     26        ImmGetDefaultIMEWnd
     27        ImmGetDescription
     28        ImmGetIMEFileName
     29        ImmGetProperty
    2930*/
    3031
     
    3233{
    3334#ifdef DEBUG
    34         dprintf(("USER32: IMPGetIMEA not implemented\n"));
    35 #endif
    36     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    37         return FALSE;
     35    dprintf(("USER32: IMPGetIMEA not implemented\n"));
     36#endif
     37    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     38    return FALSE;
    3839}
    3940
     
    4142{
    4243#ifdef DEBUG
    43         dprintf(("USER32: IMPGetIMEW not implemented\n"));
    44 #endif
    45     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    46         return FALSE;
    47 }
    48 
    49 
    50 /*
    51         BOOL IMPQueryIME(lpimepro)
    52 
    53         Get(Enum) IMEs Information
    54         (HWND, InstallDate, Version, Description, FileName, Options on start...)
    55        
    56         to invoke:
    57         first : lpimepro->szName[0] = 0
    58         next to last : (must not modify any contents in lpimepro)
    59        
    60         result:
    61         not 0 ... success
    62                 lpimepro->hWnd ... HANDLE to the IME window (if loaded)
    63                                    or NULL(if not)
    64         0 ... failure, or end of list
    65 
    66         see also:
    67                 ImmGetDefaultIMEWnd
    68                 ImmGetDescription
    69                 ImmGetIMEFileName
    70                 ImmGetProperty
     44    dprintf(("USER32: IMPGetIMEW not implemented\n"));
     45#endif
     46    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     47    return FALSE;
     48}
     49
     50
     51/*
     52    BOOL IMPQueryIME(lpimepro)
     53
     54    Get(Enum) IMEs Information
     55    (HWND, InstallDate, Version, Description, FileName, Options on start...)
     56
     57    to invoke:
     58    first : lpimepro->szName[0] = 0
     59    next to last : (must not modify any contents in lpimepro)
     60
     61    result:
     62    not 0 ... success
     63        lpimepro->hWnd ... HANDLE to the IME window (if loaded)
     64                           or NULL(if not)
     65    0 ... failure, or end of list
     66
     67    see also:
     68        ImmGetDefaultIMEWnd
     69        ImmGetDescription
     70        ImmGetIMEFileName
     71        ImmGetProperty
    7172*/
    7273
     
    7475{
    7576#ifdef DEBUG
    76         dprintf(("USER32: IMPQueryIMEA not implemented\n"));
    77 #endif
    78     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    79         return FALSE;
     77    dprintf(("USER32: IMPQueryIMEA not implemented\n"));
     78#endif
     79    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     80    return FALSE;
    8081}
    8182
     
    8384{
    8485#ifdef DEBUG
    85         dprintf(("USER32: IMPQueryIMEW not implemented\n"));
    86 #endif
    87     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    88         return FALSE;
    89 }
    90 
    91 
    92 /*
    93         BOOL IMPSetIME(hwnd, lpimepro)
    94        
    95         Switch active IME
    96        
    97         to invoke:
    98                 hwnd = NULL
    99                 lpimepro = IME to switch
    100         result:
    101         not 0 ... success
    102         0 ... failure
    103        
    104         see also:
    105                 ImmAssociateContext
     86    dprintf(("USER32: IMPQueryIMEW not implemented\n"));
     87#endif
     88    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     89    return FALSE;
     90}
     91
     92
     93/*
     94    BOOL IMPSetIME(hwnd, lpimepro)
     95
     96    Switch active IME
     97
     98    to invoke:
     99        hwnd = NULL
     100        lpimepro = IME to switch
     101    result:
     102    not 0 ... success
     103    0 ... failure
     104
     105    see also:
     106        ImmAssociateContext
    106107*/
    107108
     
    109110{
    110111#ifdef DEBUG
    111         dprintf(("USER32: IMPSetIMEA not implemented\n"));
    112 #endif
    113     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    114         return FALSE;
     112    dprintf(("USER32: IMPSetIMEA not implemented\n"));
     113#endif
     114    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     115    return FALSE;
    115116}
    116117
     
    118119{
    119120#ifdef DEBUG
    120         dprintf(("USER32: IMPSetIMEW not implemented\n"));
    121 #endif
    122     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    123         return FALSE;
    124 }
    125 
    126 
    127 /*
    128         UINT WINNLSGetIMEHotkey(hwnd)
    129        
    130         Query Virtual Key code to open the IME
    131        
    132         to invoke:
    133                 hnwd ... HANDLE to the IME window
    134         result:
    135                 Virtual Key code, or NULL
    136                
    137         see also:
    138                 ImmSimulateHotKey
     121    dprintf(("USER32: IMPSetIMEW not implemented\n"));
     122#endif
     123    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     124    return FALSE;
     125}
     126
     127
     128/*
     129    UINT WINNLSGetIMEHotkey(hwnd)
     130
     131    Query Virtual Key code to open the IME
     132
     133    to invoke:
     134        hnwd ... HANDLE to the IME window
     135    result:
     136        Virtual Key code, or NULL
     137
     138    see also:
     139        ImmSimulateHotKey
    139140*/
    140141
     
    142143{
    143144#ifdef DEBUG
    144         dprintf(("USER32: WINNLSGetIMEHotKey not implemented\n"));
    145 #endif
    146     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    147         return (UINT)NULL;
    148 }
    149 
    150 
    151 /*
    152         BOOL WINNLSEnableIME(hwnd, bool)
    153        
    154         make IME open/close
    155        
    156         to invoke:
    157                 hwnd ... NULL
    158                 bool ... TRUE (open) or FALSE (close)
    159         result:
    160                 previous state
    161        
    162         see also:
    163                 ImmGetOpenStatus
    164                 ImmSetOpenStatus
    165                 ImmSimulateHotKey
     145    dprintf(("USER32: WINNLSGetIMEHotKey not implemented\n"));
     146#endif
     147    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     148    return (UINT)NULL;
     149}
     150
     151
     152/*
     153    BOOL WINNLSEnableIME(hwnd, bool)
     154
     155    make IME open/close
     156
     157    to invoke:
     158        hwnd ... NULL
     159        bool ... TRUE (open) or FALSE (close)
     160    result:
     161        previous state
     162
     163    see also:
     164        ImmGetOpenStatus
     165        ImmSetOpenStatus
     166        ImmSimulateHotKey
    166167*/
    167168
     
    169170{
    170171#ifdef DEBUG
    171         dprintf(("USER32: WINNLSEnableIME not implemented\n"));
    172     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    173 #endif
    174         return FALSE;
    175 }
    176 
    177 
    178 /*
    179         BOOL WINNLSGetEnableStatus(hwnd)
    180 
    181         Query IME open/close
    182        
    183         to invoke:
    184                 hwnd ... NULL
    185         result:
    186                 not 0 ... open
    187                 0 ... close
    188        
    189         see also:
    190                 ImmGetOpenStatus
     172    dprintf(("USER32: WINNLSEnableIME not implemented\n"));
     173    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     174#endif
     175    return FALSE;
     176}
     177
     178
     179/*
     180    BOOL WINNLSGetEnableStatus(hwnd)
     181
     182    Query IME open/close
     183
     184    to invoke:
     185        hwnd ... NULL
     186    result:
     187        not 0 ... open
     188        0 ... close
     189
     190    see also:
     191        ImmGetOpenStatus
    191192*/
    192193
     
    194195{
    195196#ifdef DEBUG
    196         dprintf(("USER32: WINNLSGetEnableStatus not implemented\n"));
    197     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    198 #endif
    199         return FALSE;
    200 }
    201 
    202 
    203 /*
    204         LRESULT WINAPI SendIMEMessageEx(hwnd, lparam)
     197    dprintf(("USER32: WINNLSGetEnableStatus not implemented\n"));
     198    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     199#endif
     200    return FALSE;
     201}
     202
     203
     204/*
     205    LRESULT WINAPI SendIMEMessageEx(hwnd, lparam)
    205206*/
    206207
     
    209210{
    210211#ifdef DEBUG
    211         dprintf(("USER32: SendIMEMessageExA not implemented\n"));
    212     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    213 #endif
    214         return (LRESULT)0;
     212    dprintf(("USER32: SendIMEMessageExA not implemented\n"));
     213    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     214#endif
     215    return (LRESULT)0;
    215216}
    216217
     
    218219{
    219220#ifdef DEBUG
    220         dprintf(("USER32: SendIMEMessageExW not implemented\n"));
    221     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
    222 #endif
    223         return (LRESULT)0;
    224 }
    225 
     221    dprintf(("USER32: SendIMEMessageExW not implemented\n"));
     222    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     223#endif
     224    return (LRESULT)0;
     225}
     226
  • trunk/src/user32/wsprintf.cpp

    r6375 r6650  
     1/* $Id: wsprintf.cpp,v 1.11 2001-09-05 13:54:53 bird Exp $ */
    12/*
    23 * wsprintf functions
     
    1314#include <misc.h>
    1415
    15 #define DBG_LOCALLOG    DBG_wsprintf
     16#define DBG_LOCALLOG    DBG_wsprintf
    1617#include "dbglocal.h"
    1718
Note: See TracChangeset for help on using the changeset viewer.