Changeset 10595 for trunk/src


Ignore:
Timestamp:
May 3, 2004, 2:09:01 PM (21 years ago)
Author:
sandervl
Message:

KSO: Clipboard updates

Location:
trunk/src/user32
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/USER32.DEF

    r10584 r10595  
    1 ; $Id: USER32.DEF,v 1.83 2004-04-14 11:04:56 sandervl Exp $
     1; $Id: USER32.DEF,v 1.84 2004-05-03 12:08:59 sandervl Exp $
    22
    33LIBRARY USER32 INITINSTANCE TERMINSTANCE
     
    743743    _OSLibCreateDragStruct@16                                    @2041 NONAME
    744744    _OSLibFreeDragStruct@4                                       @2042 NONAME
     745    _clipboardPMToOdinFormat@4                                   @2043 NONAME
     746    _clipboardOdinToPMFormat@4                                   @2044 NONAME
  • trunk/src/user32/clipboard.cpp

    r10578 r10595  
    1 /* $Id: clipboard.cpp,v 1.18 2004-04-13 14:16:42 sandervl Exp $ */
     1/* $Id: clipboard.cpp,v 1.19 2004-05-03 12:09:00 sandervl Exp $ */
    22
    33/*
     
    276276                do { } while(0)
    277277#endif
    278 UINT            clipboardPMToOdinFormat(ULONG ulPMFormat);
    279 static ULONG    clipboardOdinToPMFormat(UINT uOdinFormat);
     278UINT WIN32API   clipboardPMToOdinFormat(ULONG ulPMFormat);
     279ULONG WIN32API  clipboardOdinToPMFormat(UINT uOdinFormat);
    280280static ULONG    clipboardAddDynFormat(UINT uFormat, const char *pszFormatName);
    281281static BOOL     clipboardIsRWOwner(void);
  • trunk/src/user32/initterm.h

    r6339 r10595  
    1 /* $Id: initterm.h,v 1.5 2001-07-15 14:58:06 sandervl Exp $ */
     1/* $Id: initterm.h,v 1.6 2004-05-03 12:09:00 sandervl Exp $ */
    22
    33/*
     
    1717
    1818//winicon.cpp
    19 void RestoreCursor();
     19void RestoreCursor(void);
     20BOOL WIN32API InitClipboardFormats(void);
    2021
    2122#endif //__INITTERM_H__
  • trunk/src/user32/inituser32.cpp

    r10319 r10595  
    1 /* $Id: inituser32.cpp,v 1.18 2003-11-14 13:44:10 sandervl Exp $ */
     1/* $Id: inituser32.cpp,v 1.19 2004-05-03 12:09:01 sandervl Exp $ */
    22/*
    33 * USER32 DLL entry point
     
    8282  char  buffer[512];
    8383  UINT  len;
    84  
     84
    8585  if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, REGPATH ,0, KEY_ALL_ACCESS, &hkFonts) == 0)
    8686  {
     
    9595      {
    9696         HDIR          hdirFindHandle = HDIR_CREATE;
    97          FILEFINDBUF3  FindBuffer     = {0};     
     97         FILEFINDBUF3  FindBuffer     = {0};
    9898         ULONG         ulResultBufLen = sizeof(FILEFINDBUF3);
    99          ULONG         ulFindCount    = 1, ret;       
    100          APIRET        rc             = NO_ERROR; 
     99         ULONG         ulFindCount    = 1, ret;
     100         APIRET        rc             = NO_ERROR;
    101101
    102102         GetWindowsDirectoryA( buffer, sizeof(buffer) );
     
    104104
    105105         rc = DosFindFirst( buffer, &hdirFindHandle, FILE_NORMAL,&FindBuffer, ulResultBufLen, &ulFindCount, FIL_STANDARD);
    106          //Check that file actaully exist 
     106         //Check that file actaully exist
    107107         if ( rc == NO_ERROR  && !(FindBuffer.attrFile & FILE_DIRECTORY))
    108108         {
     
    121121              }
    122122            }
    123          } 
     123         }
    124124         DosFindClose(hdirFindHandle);
    125125      }
     
    182182         MigrateWindowsFonts();
    183183
     184         InitClipboardFormats();
    184185         break;
    185186
  • trunk/src/user32/oslibmsgtranslate.cpp

    r10578 r10595  
    1 /* $Id: oslibmsgtranslate.cpp,v 1.123 2004-04-13 14:16:43 sandervl Exp $ */
     1/* $Id: oslibmsgtranslate.cpp,v 1.124 2004-05-03 12:09:01 sandervl Exp $ */
    22/*
    33 * Window message translation functions for OS/2
     
    621621        mousehk.dwExtraInfo  = 0;
    622622
    623         if(HOOK_CallHooksW( WH_MOUSE_W, (fMsgRemoved == MSG_REMOVE) ? HC_ACTION : HC_NOREMOVE, winMsg->message, (LPARAM)&mousehk)) 
     623        if(HOOK_CallHooksW( WH_MOUSE_W, (fMsgRemoved == MSG_REMOVE) ? HC_ACTION : HC_NOREMOVE, winMsg->message, (LPARAM)&mousehk))
    624624        {
    625625            goto dummymessage; //hook swallowed message
     
    10121012    case WM_RENDERFMT:
    10131013        winMsg->message = WINWM_RENDERFORMAT;
    1014         winMsg->wParam  = (UINT) os2Msg->mp1;
     1014        extern UINT WIN32API clipboardPMToOdinFormat(ULONG ulPMFormat);
     1015        winMsg->wParam  = (UINT)clipboardPMToOdinFormat((ULONG)os2Msg->mp1);
     1016        if (!winMsg->wParam)
     1017        {
     1018            dprintf(("WM_RENDERFMT: failed to convert clipboard format (%d)!!!\n", os2Msg->mp1));
     1019            DebugInt3();
     1020        }
    10151021        break;
    10161022
     
    11641170      {
    11651171        if(!msg->wParam)
    1166         {//TODO: Why is this here???? 
     1172        {//TODO: Why is this here????
    11671173            DebugInt3();
    11681174            extramsg.wParam = SHORT2FROMMP(teb->o.odin.os2msg.mp2);
  • trunk/src/user32/user32dbg.def

    r10584 r10595  
    1 ; $Id: user32dbg.def,v 1.16 2004-04-14 11:04:57 sandervl Exp $
     1; $Id: user32dbg.def,v 1.17 2004-05-03 12:09:01 sandervl Exp $
    22
    33LIBRARY USER32 INITINSTANCE TERMINSTANCE
     
    740740    _OSLibCreateDragStruct@16                                    @2041 NONAME
    741741    _OSLibFreeDragStruct@4                                       @2042 NONAME
     742    _clipboardPMToOdinFormat@4                                   @2043 NONAME
     743    _clipboardOdinToPMFormat@4                                   @2044 NONAME
Note: See TracChangeset for help on using the changeset viewer.