Changeset 1960 for trunk/src


Ignore:
Timestamp:
Dec 3, 1999, 6:30:17 PM (26 years ago)
Author:
cbratschi
Message:

scroll: removed WS_* check

Location:
trunk/src/user32
Files:
2 edited

Legend:

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

    r1944 r1960  
    1 /* $Id: edit.cpp,v 1.21 1999-12-02 16:34:43 cbratschi Exp $ */
     1/* $Id: edit.cpp,v 1.22 1999-12-03 17:30:15 cbratschi Exp $ */
    22/*
    33 *      Edit control
     
    1717/* CB: todo
    1818  - EN_ALIGN_LTR_EC, EN_ALIGN_RTL_EC -> undocumented notifications
    19   - EM_SETIMESTATUS, EM_GETITEMSTATUS -> undocumented messages
    2019  - text alignment for single and multi line (ES_LEFT, ES_RIGHT, ES_CENTER)
    2120    new in Win98, Win2k: for single line too
     
    226225static void     EDIT_EM_SetWordBreakProc(HWND hwnd, EDITSTATE *es, EDITWORDBREAKPROCA wbp);
    227226static BOOL     EDIT_EM_Undo(HWND hwnd, EDITSTATE *es);
    228 static LRESULT  EDIT_EM_SetImeStatus(HWND hwnd,EDITSTATE *es,WPARAM wParam,LPARAM lParam);
    229 static LRESULT  EDIT_EM_GetImeStatus(HWND hwnd,EDITSTATE *es,WPARAM wParam,LPARAM lParam);
     227static LRESULT  EDIT_EM_SetIMEStatus(HWND hwnd,EDITSTATE *es,WPARAM wParam,LPARAM lParam);
     228static LRESULT  EDIT_EM_GetIMEStatus(HWND hwnd,EDITSTATE *es,WPARAM wParam,LPARAM lParam);
    230229/*
    231230 *      WM_XXX message handlers
     
    576575
    577576        case EM_SETIMESTATUS:
    578                 result = EDIT_EM_SetImeStatus(hwnd,es,wParam,lParam);
     577                result = EDIT_EM_SetIMEStatus(hwnd,es,wParam,lParam);
    579578                break;
    580579
    581580        case EM_GETIMESTATUS:
    582                 result = EDIT_EM_GetImeStatus(hwnd,es,wParam,lParam);
     581                result = EDIT_EM_GetIMEStatus(hwnd,es,wParam,lParam);
    583582                break;
    584583
     
    27892788}
    27902789
    2791 static LRESULT EDIT_EM_SetImeStatus(HWND hwnd,EDITSTATE *es,WPARAM wParam,LPARAM lParam)
    2792 {
    2793   //CB: undocumented!
     2790static LRESULT EDIT_EM_SetIMEStatus(HWND hwnd,EDITSTATE *es,WPARAM wParam,LPARAM lParam)
     2791{
     2792  if (wParam == EMSIS_COMPOSITIONSTRING)
     2793  {
     2794    //CB: todo
     2795  }
    27942796
    27952797  return 0;
    27962798}
    27972799
    2798 static LRESULT EDIT_EM_GetImeStatus(HWND hwnd,EDITSTATE *es,WPARAM wParam,LPARAM lParam)
    2799 {
    2800   //CB: undocumented!
    2801 
    2802   return 0;
     2800static LRESULT EDIT_EM_GetIMEStatus(HWND hwnd,EDITSTATE *es,WPARAM wParam,LPARAM lParam)
     2801{
     2802  //CB: todo
     2803
     2804  return 0; //default
    28032805}
    28042806
  • trunk/src/user32/scroll.cpp

    r1922 r1960  
    1 /* $Id: scroll.cpp,v 1.26 1999-12-01 18:23:28 cbratschi Exp $ */
     1/* $Id: scroll.cpp,v 1.27 1999-12-03 17:30:17 cbratschi Exp $ */
    22/*
    33 * Scrollbar control
     
    8585
    8686        if (!win32wnd) return 0;
     87//CB: I removed WS_* check due to problems, but it should work
    8788        if (nBar == SB_HORZ)
    88           return  (win32wnd->getStyle() & WS_HSCROLL) ? Win32BaseWindow::OS2ToWin32Handle(win32wnd->getHorzScrollHandle()):0;
     89          return /*(win32wnd->getStyle() & WS_HSCROLL) ?*/ Win32BaseWindow::OS2ToWin32Handle(win32wnd->getHorzScrollHandle())/*:0*/;
    8990        else
    90           return (win32wnd->getStyle() & WS_VSCROLL) ? Win32BaseWindow::OS2ToWin32Handle(win32wnd->getVertScrollHandle()):0;
     91          return /*(win32wnd->getStyle() & WS_VSCROLL) ?*/ Win32BaseWindow::OS2ToWin32Handle(win32wnd->getVertScrollHandle())/*:0*/;
    9192      }
    9293
Note: See TracChangeset for help on using the changeset viewer.