Changeset 4121 for trunk/src


Ignore:
Timestamp:
Aug 30, 2000, 3:54:57 PM (25 years ago)
Author:
sandervl
Message:

complete merge with shell32 from wine 20000801

Location:
trunk/src/shell32
Files:
28 added
30 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/makefile

    r4032 r4121  
    1 # $Id: makefile,v 1.27 2000-08-18 02:01:16 phaller Exp $
     1# $Id: makefile,v 1.28 2000-08-30 13:50:53 sandervl Exp $
    22
    33#
     
    3030$(OBJDIR)\classes.obj \
    3131$(OBJDIR)\clipboard.obj \
    32 $(OBJDIR)\contmenu.obj \
    3332$(OBJDIR)\dataobject.obj \
    3433$(OBJDIR)\dialogs.obj \
     
    3837$(OBJDIR)\memorystream.obj \
    3938$(OBJDIR)\pidl.obj \
    40 $(OBJDIR)\regstream.obj \
    4139$(OBJDIR)\shell32_main.obj \
     40$(OBJDIR)\shell32_odin.obj \
    4241$(OBJDIR)\shellguid.obj \
    4342$(OBJDIR)\shelllink.obj \
  • trunk/src/shell32/misc.cpp

    r4082 r4121  
    1 /* $Id: misc.cpp,v 1.9 2000-08-24 09:35:06 sandervl Exp $ */
     1/* $Id: misc.cpp,v 1.10 2000-08-30 13:50:53 sandervl Exp $ */
    22
    33/*
     
    3434#include <heapstring.h>
    3535
    36 
    3736/*****************************************************************************
    3837 * Types & Defines                                                           *
     
    4140ODINDEBUGCHANNEL(SHELL32-MISC)
    4241
     42
     43/* exported via shell32_main.h */
     44HRESULT (WINAPI* pOleInitialize)(LPVOID reserved);
     45void    (WINAPI* pOleUninitialize)(void);
     46HRESULT (WINAPI* pRegisterDragDrop)(HWND hwnd, IDropTarget* pDropTarget);
     47HRESULT (WINAPI* pRevokeDragDrop)(HWND hwnd);
     48HRESULT (WINAPI* pDoDragDrop)(LPDATAOBJECT,LPDROPSOURCE,DWORD,DWORD*);
     49void (WINAPI* pReleaseStgMedium)(STGMEDIUM* pmedium);
     50HRESULT (WINAPI* pOleSetClipboard)(IDataObject* pDataObj);
     51HRESULT (WINAPI* pOleGetClipboard)(IDataObject** ppDataObj);
    4352
    4453BOOL SHELL_OsIsUnicode(void)
     
    363372}
    364373
     374
  • trunk/src/shell32/pidl.h

    r4032 r4121  
    1 /* $Id: pidl.h,v 1.5 2000-08-18 02:01:18 phaller Exp $ */
    2 
    3 /*
    4  * Win32 SHELL32 for OS/2
    5  *
    6  * Copyright 1999 Patrick Haller (haller@zebra.fh-weingarten.de)
    7  * Project Odin Software License can be found in LICENSE.TXT
    8  *
    9  */
    10 
     1/* $Id: pidl.h,v 1.6 2000-08-30 13:50:55 sandervl Exp $ */
    112/*
    123 * internal pidl functions
     
    167 *
    178 * The contents of a pidl should never used from a application
    18  * directly.
     9 * directly. 
    1910 *
    20  * This stuff is used from SHGetFileAttributes, ShellFolder
    21  * EnumIDList and ShellView.
     11 * Undocumented:
     12 * MS says: the abID of SHITEMID should be treated as binary data and not
     13 * be interpreted by applications. Applies to everyone but MS itself.
     14 * Word95 interprets the contents of abID (Filesize/Date) so we have to go
     15 * for binary compatibility here.
    2216 */
    23 
     17 
    2418#ifndef __WINE_PIDL_H
    2519#define __WINE_PIDL_H
    2620
    27 
    28 /*****************************************************************************
    29  * Includes                                                                  *
    30  *****************************************************************************/
    31 
    3221#include "shlobj.h"
    3322
    34 /*
     23/* 
    3524* the pidl does cache fileattributes to speed up SHGetAttributes when
    3625* displaying a big number of files.
     
    4130* PIDLDATA desribes the type of pidl.
    4231*
    43 *       object        ! first byte /  ! format       ! living space
    44 *                     ! size
    45 *       ----------------------------------------------------------------
    46 *       my computer     0x1F/20         mycomp (2)      (usual)
    47 *       network         0x1F            mycomp
    48 *       bitbucket       0x1F            mycomp
    49 *       drive           0x23/25         drive           (usual)
    50 *       drive           0x25/25         drive           (lnk/persistant)
    51 *       drive           0x29/25         drive
    52 *       shell extension 0x2E            mycomp
    53 *       drive           0x2F            drive           (lnk/persistant)
    54 *       folder/file     0x30            folder/file (1) (lnk/persistant)
    55 *       folder          0x31            folder          (usual)
    56 *       value           0x32            file            (usual)
    57 *       workgroup       0x41            network (3)
    58 *       computer        0x42            network (4)
    59 *       whole network   0x47            network (5)
    60 *       MSITStore       0x61            htmlhlp (7)
    61 *       history/favorites 0xb1          file
    62 *       share           0xc3            network (6)
     32*       object        ! first byte /  ! format       ! living space
     33*                     ! size
     34*       ----------------------------------------------------------------
     35*       my computer     0x1F/20         mycomp (2)      (usual)
     36*       network         0x1F            mycomp
     37*       bitbucket       0x1F            mycomp
     38*       drive           0x23/25         drive           (usual)
     39*       drive           0x25/25         drive           (lnk/persistant)
     40*       drive           0x29/25         drive
     41*       shell extension 0x2E            mycomp
     42*       drive           0x2F            drive           (lnk/persistant)
     43*       folder/file     0x30            folder/file (1) (lnk/persistant)
     44*       folder          0x31            folder          (usual)
     45*       value           0x32            file            (usual)
     46*       workgroup       0x41            network (3)
     47*       computer        0x42            network (4)
     48*       whole network   0x47            network (5)
     49*       MSITStore       0x61            htmlhlp (7)     
     50*       history/favorites 0xb1          file
     51*       share           0xc3            network (6)
    6352*
    6453* guess: the persistant elements are non tracking
     
    6655* (1) dummy byte is used, attributes are empty
    6756* (2) IID_MyComputer = 20D04FE0L-3AEA-1069-A2D8-08002B30309D
    68 * (3) two strings       "workgroup" "microsoft network"
    69 * (4) one string        "\\sirius"
    70 * (5) one string        "whole network"
    71 * (6) one string        "\\sirius\c"
     57* (3) two strings       "workgroup" "microsoft network"
     58* (4) one string        "\\sirius"
     59* (5) one string        "whole network"
     60* (6) one string        "\\sirius\c"
    7261* (7) contains string   "mk:@MSITStore:C:\path\file.chm::/path/filename.htm"
    73 *               GUID    871C5380-42A0-1069-A2EA-08002B30309D
     62*               GUID    871C5380-42A0-1069-A2EA-08002B30309D
    7463*/
    7564
    76 #define PT_DESKTOP      0x00 /* internal */
    77 #define PT_MYCOMP       0x1F
    78 #define PT_DRIVE        0x23
    79 #define PT_DRIVE2       0x25
    80 #define PT_DRIVE3       0x29
    81 #define PT_SPECIAL      0x2E
    82 #define PT_DRIVE1       0x2F
    83 #define PT_FOLDER1      0x30
    84 #define PT_FOLDER       0x31
    85 #define PT_VALUE        0x32
    86 #define PT_WORKGRP      0x41
    87 #define PT_COMP         0x42
    88 #define PT_NETWORK      0x47
    89 #define PT_IESPECIAL    0xb1
    90 #define PT_SHARE        0xc3
     65#define PT_DESKTOP      0x00 /* internal */
     66#define PT_MYCOMP       0x1F
     67#define PT_DRIVE        0x23
     68#define PT_DRIVE2       0x25
     69#define PT_DRIVE3       0x29
     70#define PT_SPECIAL      0x2E
     71#define PT_DRIVE1       0x2F
     72#define PT_FOLDER1      0x30
     73#define PT_FOLDER       0x31
     74#define PT_VALUE        0x32
     75#define PT_WORKGRP      0x41
     76#define PT_COMP         0x42
     77#define PT_NETWORK      0x47
     78#define PT_IESPECIAL    0xb1
     79#define PT_SHARE        0xc3
    9180
    9281#include "pshpack1.h"
     
    9483
    9584typedef struct tagPIDLDATA
    96 {       PIDLTYPE type;                  /*00*/
    97         union
    98         { struct
    99           { BYTE dummy;                 /*01*/
    100             GUID guid;                  /*02*/
    101             BYTE dummy1;                /*18*/
    102           } mycomp;
    103           struct
    104           { CHAR szDriveName[20];       /*01*/
    105             DWORD dwUnknown;            /*21*/
    106             /* the drive seems to be 25 bytes every time */
    107           } drive;
    108           struct
    109           { BYTE dummy;                 /*01 is 0x00 for files or dirs */
    110             DWORD dwFileSize;           /*02*/
    111             WORD uFileDate;             /*06*/
    112             WORD uFileTime;             /*08*/
    113             WORD uFileAttribs;          /*10*/
    114             CHAR szNames[1];            /*12*/
    115             /* Here are comming two strings. The first is the long name.
    116             The second the dos name when needed or just 0x00 */
    117           } file, folder, generic;
    118           struct
    119           { WORD dummy;         /*01*/
    120             CHAR szNames[1];    /*03*/
    121           } network;
    122           struct
    123           { WORD dummy;         /*01*/
    124             DWORD dummy1;       /*02*/
    125             CHAR szName[1];     /*06*/ /* teminated by 0x00 0x00 */
    126           } htmlhelp;
    127         }u;
     85{       PIDLTYPE type;                  /*00*/
     86        union
     87        { struct
     88          { BYTE dummy;                 /*01*/
     89            GUID guid;                  /*02*/
     90            BYTE dummy1;                /*18*/
     91          } mycomp;
     92          struct
     93          { CHAR szDriveName[20];       /*01*/
     94            DWORD dwUnknown;            /*21*/
     95            /* the drive seems to be 25 bytes every time */
     96          } drive;
     97          struct
     98          { BYTE dummy;                 /*01 is 0x00 for files or dirs */
     99            DWORD dwFileSize;           /*02*/
     100            WORD uFileDate;             /*06*/
     101            WORD uFileTime;             /*08*/
     102            WORD uFileAttribs;          /*10*/
     103            CHAR szNames[1];            /*12*/
     104            /* Here are comming two strings. The first is the long name.
     105            The second the dos name when needed or just 0x00 */
     106          } file, folder, generic;
     107          struct
     108          { WORD dummy;         /*01*/
     109            CHAR szNames[1];    /*03*/
     110          } network;
     111          struct
     112          { WORD dummy;         /*01*/
     113            DWORD dummy1;       /*02*/
     114            CHAR szName[1];     /*06*/ /* teminated by 0x00 0x00 */
     115          } htmlhelp;
     116        }u;
    128117} PIDLDATA, *LPPIDLDATA;
    129118#include "poppack.h"
     
    132121 * getting special values from simple pidls
    133122 */
    134 DWORD   WINAPI _ILSimpleGetText         (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize);
    135 BOOL    WINAPI _ILGetFileDate           (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize);
    136 DWORD   WINAPI _ILGetFileSize           (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize);
    137 BOOL    WINAPI _ILGetExtension          (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize);
    138 void    WINAPI _ILGetFileType           (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize);
    139 DWORD   WINAPI _ILGetFileAttributes     (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize);
    140 DWORD   WINAPI _ILGetFileSizeKB         (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize);
     123DWORD   _ILSimpleGetText        (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize);
     124BOOL    _ILGetFileDate          (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize);
     125DWORD   _ILGetFileSize          (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize);
     126BOOL    _ILGetExtension         (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize);
     127void    _ILGetFileType          (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize);
     128DWORD   _ILGetFileAttributes    (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize);
    141129
    142 BOOL    WINAPI _ILGetFileDateTime       (LPCITEMIDLIST pidl, FILETIME *ft);
    143 DWORD   WINAPI _ILGetDrive              (LPCITEMIDLIST, LPSTR, UINT16);
     130BOOL    _ILGetFileDateTime      (LPCITEMIDLIST pidl, FILETIME *ft);
     131DWORD   _ILGetDrive             (LPCITEMIDLIST, LPSTR, UINT16);
    144132
    145133/*
    146134 * testing simple pidls
    147135 */
    148 BOOL    WINAPI _ILIsDesktop             (LPCITEMIDLIST pidl);
    149 BOOL    WINAPI _ILIsMyComputer          (LPCITEMIDLIST pidl);
    150 BOOL    WINAPI _ILIsDrive               (LPCITEMIDLIST pidl);
    151 BOOL    WINAPI _ILIsFolder              (LPCITEMIDLIST pidl);
    152 BOOL    WINAPI _ILIsValue               (LPCITEMIDLIST pidl);
    153 BOOL    WINAPI _ILIsSpecialFolder       (LPCITEMIDLIST pidl);
    154 BOOL    WINAPI _ILIsPidlSimple          (LPCITEMIDLIST pidl);
     136BOOL    _ILIsDesktop            (LPCITEMIDLIST pidl);
     137BOOL    _ILIsMyComputer         (LPCITEMIDLIST pidl);
     138BOOL    _ILIsDrive              (LPCITEMIDLIST pidl);
     139BOOL    _ILIsFolder             (LPCITEMIDLIST pidl);
     140BOOL    _ILIsValue              (LPCITEMIDLIST pidl);
     141BOOL    _ILIsSpecialFolder      (LPCITEMIDLIST pidl);
     142BOOL    _ILIsPidlSimple         (LPCITEMIDLIST pidl);
    155143
    156144/*
    157145 * simple pidls from strings
    158146 */
    159 LPITEMIDLIST    WINAPI _ILCreate        (PIDLTYPE,LPCVOID,UINT16);
     147LPITEMIDLIST    _ILCreate       (PIDLTYPE,LPCVOID,UINT16);
    160148
    161 LPITEMIDLIST    WINAPI _ILCreateDesktop         (void);
    162 LPITEMIDLIST    WINAPI _ILCreateMyComputer      (void);
    163 LPITEMIDLIST    WINAPI _ILCreateIExplore        (void);
    164 LPITEMIDLIST    WINAPI _ILCreateControl         (void);
    165 LPITEMIDLIST    WINAPI _ILCreatePrinter         (void);
    166 LPITEMIDLIST    WINAPI _ILCreateNetwork         (void);
    167 LPITEMIDLIST    WINAPI _ILCreateBitBucket       (void);
    168 LPITEMIDLIST    WINAPI _ILCreateDrive           (LPCSTR);
    169 LPITEMIDLIST    WINAPI _ILCreateFolder          (WIN32_FIND_DATAA * stffile);
    170 LPITEMIDLIST    WINAPI _ILCreateValue           (WIN32_FIND_DATAA * stffile);
    171 LPITEMIDLIST    WINAPI _ILCreateSpecial         (LPCSTR szGUID);
     149LPITEMIDLIST    _ILCreateDesktop        (void);
     150LPITEMIDLIST    _ILCreateMyComputer     (void);
     151LPITEMIDLIST    _ILCreateIExplore       (void);
     152LPITEMIDLIST    _ILCreateControl        (void);
     153LPITEMIDLIST    _ILCreatePrinter        (void);
     154LPITEMIDLIST    _ILCreateNetwork        (void);
     155LPITEMIDLIST    _ILCreateBitBucket      (void);
     156LPITEMIDLIST    _ILCreateDrive          (LPCSTR);
     157LPITEMIDLIST    _ILCreateFolder         (WIN32_FIND_DATAA * stffile);
     158LPITEMIDLIST    _ILCreateValue          (WIN32_FIND_DATAA * stffile);
     159LPITEMIDLIST    _ILCreateSpecial        (LPCSTR szGUID);
    172160
    173161/*
    174162 * helper functions (getting struct-pointer)
    175163 */
    176 LPPIDLDATA      WINAPI _ILGetDataPointer        (LPCITEMIDLIST);
    177 LPSTR           WINAPI _ILGetTextPointer        (PIDLTYPE type, LPPIDLDATA pidldata);
    178 LPSTR           WINAPI _ILGetSTextPointer       (PIDLTYPE type, LPPIDLDATA pidldata);
    179 REFIID          WINAPI _ILGetGUIDPointer        (LPCITEMIDLIST pidl);
     164LPPIDLDATA      _ILGetDataPointer       (LPCITEMIDLIST);
     165LPSTR           _ILGetTextPointer       (LPCITEMIDLIST);
     166LPSTR           _ILGetSTextPointer      (LPCITEMIDLIST);
     167REFIID          _ILGetGUIDPointer       (LPCITEMIDLIST pidl);
    180168
    181 /*
    182  * debug helper
     169/* 
     170 * debug helper 
    183171 */
     172#ifdef __WIN32OS2__
    184173#ifdef DEBUG
    185174void pdump (LPCITEMIDLIST pidl);
     
    189178//CB: needed in release build
    190179BOOL pcheck (LPCITEMIDLIST pidl);
     180#else
     181void    pdump   (LPCITEMIDLIST pidl);
     182BOOL    pcheck  (LPCITEMIDLIST pidl);
     183#endif
    191184
    192185/*
    193186 * aPidl helper
    194187 */
    195 void WINAPI _ILFreeaPidl(LPITEMIDLIST * apidl, UINT cidl);
    196 LPITEMIDLIST * WINAPI _ILCopyaPidl(LPITEMIDLIST * apidlsrc, UINT cidl);
    197 LPITEMIDLIST * WINAPI _ILCopyCidaToaPidl(LPITEMIDLIST* pidl, LPCIDA cida);
     188void _ILFreeaPidl(LPITEMIDLIST * apidl, UINT cidl);
     189LPITEMIDLIST * _ILCopyaPidl(LPITEMIDLIST * apidlsrc, UINT cidl);
     190LPITEMIDLIST * _ILCopyCidaToaPidl(LPITEMIDLIST* pidl, LPCIDA cida);
    198191
    199192#endif
  • trunk/src/shell32/shell32.def

    r4087 r4121  
    1 ; $Id: shell32.def,v 1.29 2000-08-24 12:01:09 sandervl Exp $
     1; $Id: shell32.def,v 1.30 2000-08-30 13:50:56 sandervl Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    7979    SHCreateDefClassObject            = _SHCreateDefClassObject@20            @70
    8080    Shell_GetImageList                = _Shell_GetImageList@8                 @71
    81     Shell_GetCachedImageIndex         = _Shell_GetCachedImageIndexA@12        @72
    82 ;   Shell_GetCachedImageIndexW        = _Shell_GetCachedImageIndexW@12
    83 ;   Shell_GetCachedImageIndexA        = _Shell_GetCachedImageIndexA@12
     81    Shell_GetCachedImageIndex         = _Shell_GetCachedImageIndexAW@12       @72
     82    Shell_GetCachedImageIndexW        = _Shell_GetCachedImageIndexW@12
     83    Shell_GetCachedImageIndexA        = _Shell_GetCachedImageIndexA@12
    8484    SHShellFolderView_Message         = _SHShellFolderView_Message@12         @73
    8585    SHCreateStdEnumFmtEtc             = _SHCreateStdEnumFmtEtc@12             @74
     
    9494    CIDLData_CreateFromIDArray        = _CIDLData_CreateFromIDArray@16        @83
    9595;   SHIsBadInterfacePtr               = _SHIsBadInterfacePtr@?                @84
    96     OpenRegStream                     = _OpenRegStream@16                     @85
     96    OpenRegStream                     = _SHOpenRegStreamA@16                  @85
    9797    SHRegisterDragDrop                = _SHRegisterDragDrop@8                 @86
    9898    SHRevokeDragDrop                  = _SHRevokeDragDrop@4                   @87
     
    248248    SHBrowseForFolderA                = _SHBrowseForFolderA@4                 @237
    249249    SHBrowseForFolderW                = _SHBrowseForFolderW@4                 @238
    250     SHChangeNotify                    = _SHChangeNotify@16                    @239
     250    SHChangeNotify                    = _SHChangeNotifyAW@16                  @239
    251251    SHEmptyRecycleBinA                = _SHEmptyRecycleBinA@12                @240
    252252    SHEmptyRecycleBinW                = _SHEmptyRecycleBinW@12                @241
  • trunk/src/shell32/shell32_main.h

    r4082 r4121  
    1 /* $Id: shell32_main.h,v 1.5 2000-08-24 09:35:07 sandervl Exp $ */
    2 
     1/* $Id: shell32_main.h,v 1.6 2000-08-30 13:50:57 sandervl Exp $ */
    32/*
    4  * Win32 SHELL32 for OS/2
    5  *
    6  * Copyright 1999 Patrick Haller (haller@zebra.fh-weingarten.de)
    7  * Project Odin Software License can be found in LICENSE.TXT
    8  *
    9  * Note: Odin changes marked by #ifdef __WIN32OS2__ !
    10  *
    11  * Corel WINE 20000324 level
    12  */
    13 
    14 /*
    15  *      internal Shell32 Library definitions
     3 *      internal Shell32 Library definitions
    164 */
    175
     
    197#define __WINE_SHELL_MAIN_H
    208
    21 
    22 /*****************************************************************************
    23  * Includes                                                                  *
    24  *****************************************************************************/
    25 
    26 #include "imagelist.h"
    279#include "commctrl.h"
    2810#include "shell.h"
     
    3517#include "wine/obj_shelllink.h"
    3618#include "wine/obj_extracticon.h"
    37 
    38 #ifdef __cplusplus
    39   extern "C" {
    40 #endif /* defined(__cplusplus) */
    41 
    42 
    43 /**
    44  * WINE portability macro
    45  **/
    46 
     19#ifdef __WIN32OS2__
     20#include <heapstring.h>
     21#endif
    4722/*******************************************
    4823*  global SHELL32.DLL variables
    4924*/
    50 extern HMODULE          huser32;
    51 extern HINSTANCE        shell32_hInstance;
    52 extern LONG             shell32_ObjCount;
    53 extern HIMAGELIST       ShellSmallIconList;
    54 extern HIMAGELIST       ShellBigIconList;
    55 extern HDPA             sic_hdpa;
     25extern HMODULE  huser32;
     26extern HINSTANCE shell32_hInstance;
     27extern LONG       shell32_ObjCount;
     28extern HIMAGELIST       ShellSmallIconList;
     29extern HIMAGELIST       ShellBigIconList;
     30#ifndef __WIN32OS2__
     31extern HDPA             sic_hdpa;
     32#endif
    5633
    5734/*******************************************
    5835* pointer to functions dynamically loaded
    5936*/
    60 extern void     (* WINAPI pDLLInitComctl)(LPVOID);
    61 extern INT      (* WINAPI pImageList_AddIcon) (HIMAGELIST himl, HICON hIcon);
    62 extern INT      (* WINAPI pImageList_ReplaceIcon) (HIMAGELIST, INT, HICON);
    63 extern HIMAGELIST (* WINAPI  pImageList_Create) (INT,INT,UINT,INT,INT);
    64 extern BOOL     (* WINAPI pImageList_Draw) (HIMAGELIST himl, int i, HDC hdcDest, int x, int y, UINT fStyle);
    65 extern HICON    (* WINAPI pImageList_GetIcon) (HIMAGELIST, INT, UINT);
    66 extern INT      (* WINAPI pImageList_GetImageCount)(HIMAGELIST);
     37extern void     (* WINAPI pDLLInitComctl)(LPVOID);
     38extern INT      (* WINAPI pImageList_AddIcon) (HIMAGELIST himl, HICON hIcon);
     39extern INT      (* WINAPI pImageList_ReplaceIcon) (HIMAGELIST, INT, HICON);
     40extern HIMAGELIST (* WINAPI pImageList_Create) (INT,INT,UINT,INT,INT);
     41extern BOOL     (* WINAPI pImageList_Draw) (HIMAGELIST himl, int i, HDC hdcDest, int x, int y, UINT fStyle);
     42extern HICON    (* WINAPI pImageList_GetIcon) (HIMAGELIST, INT, UINT);
     43extern INT      (* WINAPI pImageList_GetImageCount)(HIMAGELIST);
    6744extern COLORREF (* WINAPI pImageList_SetBkColor)(HIMAGELIST, COLORREF);
    6845
    69 extern LPVOID   (* WINAPI  pCOMCTL32_Alloc) (INT);
    70 extern BOOL     (* WINAPI  pCOMCTL32_Free) (LPVOID);
    71 
    72 extern HDPA     (* WINAPI  pDPA_Create) (INT);
    73 extern INT      (* WINAPI  pDPA_InsertPtr) (const HDPA, INT, LPVOID);
    74 extern BOOL     (* WINAPI  pDPA_Sort) (const HDPA, PFNDPACOMPARE, LPARAM);
    75 extern LPVOID   (* WINAPI  pDPA_GetPtr) (const HDPA, INT);
    76 extern BOOL     (* WINAPI  pDPA_Destroy) (const HDPA);
    77 extern INT      (* WINAPI pDPA_Search) (const HDPA, LPVOID, INT, PFNDPACOMPARE, LPARAM, UINT);
    78 extern LPVOID   (* WINAPI pDPA_DeletePtr) (const HDPA hdpa, INT i);
    79 #define pDPA_GetPtrCount(hdpa)  (*(INT*)(hdpa))
     46extern LPVOID   (* WINAPI pCOMCTL32_Alloc) (INT); 
     47extern BOOL     (* WINAPI pCOMCTL32_Free) (LPVOID); 
     48
     49extern HDPA     (* WINAPI pDPA_Create) (INT); 
     50extern INT      (* WINAPI pDPA_InsertPtr) (const HDPA, INT, LPVOID);
     51extern BOOL     (* WINAPI pDPA_Sort) (const HDPA, PFNDPACOMPARE, LPARAM);
     52extern LPVOID   (* WINAPI pDPA_GetPtr) (const HDPA, INT);   
     53extern BOOL     (* WINAPI pDPA_Destroy) (const HDPA);
     54extern INT      (* WINAPI pDPA_Search) (const HDPA, LPVOID, INT, PFNDPACOMPARE, LPARAM, UINT);
     55extern LPVOID   (* WINAPI pDPA_DeletePtr) (const HDPA hdpa, INT i);
     56#define pDPA_GetPtrCount(hdpa)  (*(INT*)(hdpa))   
    8057
    8158extern HICON (* WINAPI pLookupIconIdFromDirectoryEx)(LPBYTE dir, BOOL bIcon, INT width, INT height, UINT cFlag);
     
    8360
    8461/* ole2 */
    85 extern HRESULT (* WINAPI  pOleInitialize)(LPVOID reserved);
    86 extern void    (* WINAPI  pOleUninitialize)(void);
    87 extern HRESULT (* WINAPI  pRegisterDragDrop)(HWND hwnd, IDropTarget* pDropTarget);
    88 extern HRESULT (* WINAPI  pRevokeDragDrop)(HWND hwnd);
    89 extern HRESULT (* WINAPI  pDoDragDrop)(LPDATAOBJECT,LPDROPSOURCE,DWORD,DWORD*);
    90 extern void (* WINAPI  pReleaseStgMedium)(STGMEDIUM* pmedium);
    91 extern HRESULT (* WINAPI  pOleSetClipboard)(IDataObject* pDataObj);
    92 extern HRESULT (* WINAPI  pOleGetClipboard)(IDataObject** ppDataObj);
    93 
    94    
     62/*
     63extern HRESULT (* WINAPI pOleInitialize)(LPVOID reserved);
     64extern void (* WINAPI pOleUninitialize)(void);
     65extern HRESULT (* WINAPI pDoDragDrop)(IDataObject* pDataObject, IDropSource * pDropSource, DWORD dwOKEffect, DWORD * pdwEffect);
     66extern HRESULT (* WINAPI pRegisterDragDrop)(HWND hwnd, IDropTarget* pDropTarget);
     67extern HRESULT (* WINAPI pRevokeDragDrop)(HWND hwnd);
     68*/
    9569BOOL WINAPI Shell_GetImageList(HIMAGELIST * lpBigList, HIMAGELIST * lpSmallList);
    9670
     
    11286BOOL HCR_GetFolderAttributes (REFIID riid, LPDWORD szDest);
    11387
    114 DWORD   WINAPI ParseFieldA(LPCSTR src,DWORD field,LPSTR dst,DWORD len);
     88DWORD   WINAPI ParseFieldA(LPCSTR src,DWORD field,LPSTR dst,DWORD len);
    11589
    11690/****************************************************************************
    11791 * Class constructors
    11892 */
    119 LPDATAOBJECT    IDataObject_Constructor(HWND hwndOwner, LPITEMIDLIST myPidl, LPITEMIDLIST * apidl, UINT cidl);
    120 LPENUMFORMATETC IEnumFORMATETC_Constructor(UINT, const FORMATETC []);
    121 
    122 LPCLASSFACTORY  IClassFactory_Constructor(REFCLSID);
    123 IContextMenu *  ISvItemCm_Constructor(LPSHELLFOLDER pSFParent, LPCITEMIDLIST pidl, LPCITEMIDLIST *aPidls, UINT uItemCount);
    124 IContextMenu *  ISvBgCm_Constructor(LPSHELLFOLDER pSFParent);
    125 LPSHELLVIEW     IShellView_Constructor(LPSHELLFOLDER);
    126 LPSHELLLINK     IShellLink_Constructor(BOOL);
     93LPDATAOBJECT    IDataObject_Constructor(HWND hwndOwner, LPITEMIDLIST myPidl, LPITEMIDLIST * apidl, UINT cidl);
     94LPENUMFORMATETC IEnumFORMATETC_Constructor(UINT, const FORMATETC []);
     95
     96LPCLASSFACTORY  IClassFactory_Constructor(REFCLSID);
     97IContextMenu *  ISvItemCm_Constructor(LPSHELLFOLDER pSFParent, LPCITEMIDLIST pidl, LPCITEMIDLIST *aPidls, UINT uItemCount);
     98IContextMenu *  ISvBgCm_Constructor(LPSHELLFOLDER pSFParent);
     99LPSHELLVIEW     IShellView_Constructor(LPSHELLFOLDER);
     100LPSHELLLINK     IShellLink_Constructor(BOOL);
    127101
    128102IShellFolder * ISF_Desktop_Constructor(void);
    129103
    130104/* kind of enumidlist */
    131 #define EIDL_DESK       0
    132 #define EIDL_MYCOMP     1
    133 #define EIDL_FILE       2
    134 
    135 LPENUMIDLIST    IEnumIDList_Constructor(LPCSTR,DWORD,DWORD);
    136 
    137 LPEXTRACTICONA  IExtractIconA_Constructor(LPITEMIDLIST);
    138 HRESULT         CreateStreamOnFile (LPCSTR pszFilename, IStream ** ppstm);
     105#define EIDL_DESK       0
     106#define EIDL_MYCOMP     1
     107#define EIDL_FILE       2
     108
     109LPENUMIDLIST    IEnumIDList_Constructor(LPCSTR,DWORD,DWORD);
     110
     111LPEXTRACTICONA  IExtractIconA_Constructor(LPITEMIDLIST);
     112HRESULT         CreateStreamOnFile (LPCSTR pszFilename, IStream ** ppstm);     
    139113
    140114/* fixme: rename the functions when the shell32.dll has it's own exports namespace */
     
    152126/* initialisation for FORMATETC */
    153127#define InitFormatEtc(fe, cf, med) \
    154         {\
    155         (fe).cfFormat=cf;\
    156         (fe).dwAspect=DVASPECT_CONTENT;\
    157         (fe).ptd=NULL;\
    158         (fe).tymed=med;\
    159         (fe).lindex=-1;\
    160         };
     128        {\
     129        (fe).cfFormat=cf;\
     130        (fe).dwAspect=DVASPECT_CONTENT;\
     131        (fe).ptd=NULL;\
     132        (fe).tymed=med;\
     133        (fe).lindex=-1;\
     134        };
    161135
    162136#define KeyStateToDropEffect(kst)\
    163         (((kst) & MK_CONTROL) ?\
    164         (((kst) & MK_SHIFT) ? DROPEFFECT_LINK : DROPEFFECT_COPY):\
    165         DROPEFFECT_MOVE)
     137        (((kst) & MK_CONTROL) ?\
     138        (((kst) & MK_SHIFT) ? DROPEFFECT_LINK : DROPEFFECT_COPY):\
     139        DROPEFFECT_MOVE)
    166140
    167141/* Systray */
    168142BOOL SYSTRAY_Init(void);
    169    
     143
    170144/* Clipboard */
    171145void InitShellOle(void);
    172146void FreeShellOle(void);
    173147BOOL GetShellOle(void);
    174    
    175 /* PH: This creates an auto variable just in any importer...
    176 HRESULT (* WINAPI  pOleInitialize)(LPVOID reserved);
    177 void    (* WINAPI  pOleUninitialize)(void);
    178 HRESULT (* WINAPI  pRegisterDragDrop)(HWND hwnd, IDropTarget* pDropTarget);
    179 HRESULT (* WINAPI  pRevokeDragDrop)(HWND hwnd);
    180 HRESULT (* WINAPI  pDoDragDrop)(LPDATAOBJECT,LPDROPSOURCE,DWORD,DWORD*);
    181 void (* WINAPI  pReleaseStgMedium)(STGMEDIUM* pmedium);
    182 HRESULT (* WINAPI  pOleSetClipboard)(IDataObject* pDataObj);
    183 HRESULT (* WINAPI  pOleGetClipboard)(IDataObject** ppDataObj);
    184 */
    185    
     148
     149#ifdef __WIN32OS2__
     150extern HRESULT (* WINAPI pOleInitialize)(LPVOID reserved);
     151extern void    (* WINAPI pOleUninitialize)(void);
     152extern HRESULT (* WINAPI pRegisterDragDrop)(HWND hwnd, IDropTarget* pDropTarget);
     153extern HRESULT (* WINAPI pRevokeDragDrop)(HWND hwnd);
     154extern HRESULT (* WINAPI pDoDragDrop)(LPDATAOBJECT,LPDROPSOURCE,DWORD,DWORD*);
     155extern void     (* WINAPI pReleaseStgMedium)(STGMEDIUM* pmedium);
     156extern HRESULT (* WINAPI pOleSetClipboard)(IDataObject* pDataObj);
     157extern HRESULT (* WINAPI pOleGetClipboard)(IDataObject** ppDataObj);
     158#else
     159HRESULT (* WINAPI pOleInitialize)(LPVOID reserved);
     160void    (* WINAPI pOleUninitialize)(void);
     161HRESULT (* WINAPI pRegisterDragDrop)(HWND hwnd, IDropTarget* pDropTarget);
     162HRESULT (* WINAPI pRevokeDragDrop)(HWND hwnd);
     163HRESULT (* WINAPI pDoDragDrop)(LPDATAOBJECT,LPDROPSOURCE,DWORD,DWORD*);
     164void    (* WINAPI pReleaseStgMedium)(STGMEDIUM* pmedium);
     165HRESULT (* WINAPI pOleSetClipboard)(IDataObject* pDataObj);
     166HRESULT (* WINAPI pOleGetClipboard)(IDataObject** ppDataObj);
     167#endif
     168
    186169HGLOBAL RenderHDROP(LPITEMIDLIST pidlRoot, LPITEMIDLIST * apidl, UINT cidl);
    187170HGLOBAL RenderSHELLIDLIST (LPITEMIDLIST pidlRoot, LPITEMIDLIST * apidl, UINT cidl);
     
    200183
    201184#ifdef __WIN32OS2__
     185#ifdef __cplusplus
     186extern "C" {
     187#endif
    202188BOOL SHELL_OsIsUnicode(void);
     189
     190#include <peexe.h>
     191PIMAGE_RESOURCE_DIRECTORY GetResDirEntryW(PIMAGE_RESOURCE_DIRECTORY resdirptr,
     192                                           LPCWSTR name,DWORD root,
     193                                           BOOL allowdefault);
     194
     195#ifdef __cplusplus
     196}
     197#endif
    203198#else
    204199inline static BOOL SHELL_OsIsUnicode(void)
    205200{
    206 /* if high-bit of version is 0, we are emulating NT */
    207   return !(GetVersion() & 0x80000000);
     201    /* if high-bit of version is 0, we are emulating NT */
     202    return !(GetVersion() & 0x80000000);
    208203}
    209204#endif
    210    
    211 #ifdef __cplusplus
    212   }
    213 #endif /* defined(__cplusplus) */
    214 
    215 #endif
     205
     206#endif
  • trunk/src/shell32/shellfolder.h

    r4032 r4121  
     1/* $Id: shellfolder.h,v 1.2 2000-08-30 13:50:58 sandervl Exp $ */
    12/*
    23 * defines helperfunctions to manipulate the contents of a IShellFolder
  • trunk/src/shell32/shellpath.c

    r4088 r4121  
    1 /* $Id: shellpath.c,v 1.1 2000-08-24 12:01:42 sandervl Exp $ */
    2 
     1/* $Id: shellpath.c,v 1.2 2000-08-30 13:51:02 sandervl Exp $ */
    32/*
    4  * Win32 SHELL32 for OS/2
    5  *
    6  * Copyright 1997 Marcus Meissner
    7  * Copyright 1999 Patrick Haller (haller@zebra.fh-weingarten.de)
    8  * Project Odin Software License can be found in LICENSE.TXT
    9  *
    103 * Path Functions
    11  *
    12  * NOTE: SHGetSpecialFolderPathA: StartMenu changed in 'Start Menu'
    13  *       Odin changes in #ifdef __WIN32OS2__ statements!
    144 *
    155 * Many of this functions are in SHLWAPI.DLL also
    166 *
    17  * Corel WINE 20000324 level (without CRTDLL_* calls)
    18  */
    19 
    20 
    21 /*****************************************************************************
    22  * Includes                                                                  *
    23  *****************************************************************************/
    24 
     7 */
     8#ifdef __WIN32OS2__
     9#define ICOM_CINTERFACE 1
    2510#include <odin.h>
    26 #include <odinwrap.h>
    27 #include <os2sel.h>
    28 
     11#endif
    2912#include <string.h>
    3013#include <ctype.h>
    31 #include <wctype.h>
    32 #define HAVE_WCTYPE_H
    33 #include <odin.h>
    34 
    35 #define ICOM_CINTERFACE 1
    36 #define CINTERFACE 1
    37 
    3814#include "debugtools.h"
    3915#include "winnls.h"
    40 #include "winversion.h"
    4116#include "winreg.h"
    42 #include "crtdll.h"
    4317
    4418#include "shlobj.h"
    4519#include "shell32_main.h"
    46 #include <shlwapi.h>
    47 #include <wine/undocshell.h>
    48 
    49 #include <heapstring.h>
    50 #include <misc.h>
    51 
    52 
    53 ODINDEBUGCHANNEL(SHELL32-SHELLPATH)
    54 
     20#include "windef.h"
     21#include "options.h"
     22#include "wine/undocshell.h"
     23#include "wine/unicode.h"
     24#include "shlwapi.h"
     25
     26DEFAULT_DEBUG_CHANNEL(shell);
    5527
    5628#define isSlash(x) ((x)=='\\' || (x)=='/')
     
    509481    return TRUE;
    510482}
    511 
     483#ifdef __WIN32OS2__
    512484/*************************************************************************
    513485 * PathYetAnotherMakeUniqueNameA [SHELL32.75]
     
    537509        return PathYetAnotherMakeUniqueNameA(lpszBuffer, lpszPathName, lpszShortName,lpszLongName);
    538510}
    539 
     511#endif
    540512
    541513/*
     
    554526
    555527/*************************************************************************
    556  * PathCleanupSpecA     [SHELL32.171]
    557  */
    558 DWORD WINAPI PathCleanupSpecA(LPSTR x, LPSTR y)
    559 {
    560         FIXME("(%p %s, %p %s) stub\n",x,debugstr_a(x),y,debugstr_a(y));
    561         return TRUE;
    562 }
    563 
    564 /*************************************************************************
    565  * PathCleanupSpecA     [SHELL32]
    566  */
    567 DWORD WINAPI PathCleanupSpecW(LPWSTR x, LPWSTR y)
    568 {
    569         FIXME("(%p %s, %p %s) stub\n",x,debugstr_w(x),y,debugstr_w(y));
    570         return TRUE;
    571 }
    572 
    573 /*************************************************************************
    574528 * PathCleanupSpecAW    [SHELL32]
    575529 */
    576530DWORD WINAPI PathCleanupSpecAW (LPVOID x, LPVOID y)
    577531{
    578         if (VERSION_OsIsUnicode())
    579           return PathCleanupSpecW(x,y);
    580         return PathCleanupSpecA(x,y);
     532    FIXME("(%p, %p) stub\n",x,y);
     533    return TRUE;
    581534}
    582535
     
    674627        FIXME("(%s, %p, 0x%04lx, 0x%04lx) stub\n",
    675628        debugstr_w(lpszPath), lpszBuff, dwBuffSize, dwFlags);
    676         lstrcpyW(lpszBuff, lpszPath);
     629        strcpyW(lpszBuff, lpszPath);
    677630        return 0;
    678631}
     
    705658}
    706659
     660
    707661/*************************************************************************
    708662 * SHGetSpecialFolderPathA [SHELL32.175]
     
    804758            hRootKey = HKEY_CURRENT_USER;
    805759            strcpy(szValueName, "Programs");
    806             strcpy(szDefaultPath, "Start Menu\\Programs");
     760            strcpy(szDefaultPath, "StartMenu\\Programs");
    807761            break;
    808762
     
    827781          case CSIDL_STARTMENU:
    828782            hRootKey = HKEY_CURRENT_USER;
    829 #ifdef __WIN32OS2__
    830             strcpy(szValueName, "Start Menu");
    831             strcpy(szDefaultPath, "Start Menu");
    832 #else
    833783            strcpy(szValueName, "StartMenu");
    834784            strcpy(szDefaultPath, "StartMenu");
    835 #endif
    836785            break;
    837786
    838787          case CSIDL_COMMON_STARTMENU:
    839788            hRootKey = HKEY_LOCAL_MACHINE;
    840             strcpy(szValueName, "Common StartMenu"); //TODO: Start Menu?
    841 #ifdef __WIN32OS2__
     789            strcpy(szValueName, "Common StartMenu");
    842790            strcpy(szDefaultPath, "StartMenu");
    843 #else
    844             strcpy(szDefaultPath, "Start Menu");
    845 #endif
    846791            break;
    847792
  • trunk/src/shell32/shpolicy.h

    r3243 r4121  
     1/* $Id: shpolicy.h,v 1.3 2000-08-30 13:51:08 sandervl Exp $ */
    12/*
    23 *  shpolicy.h - contains defs of policy data for SHRestricted
  • trunk/src/shell32/shres.orc

    r4087 r4121  
    1 /* $Id: shres.orc,v 1.5 2000-08-24 12:01:09 sandervl Exp $ */
     1/* $Id: shres.orc,v 1.6 2000-08-30 13:51:09 sandervl Exp $ */
    22/*
    33 * Top level resource file for Common Dialogs
     
    3434END
    3535
     36/*
     37 shellview background menu
     38*/
    3639MENU_002 MENU DISCARDABLE
    3740BEGIN
    38         POPUP""
    39         BEGIN
    40           POPUP "&View"
    41           BEGIN
    42             MENUITEM "Lar&ge Icons",    FCIDM_SHVIEW_BIGICON
    43             MENUITEM "S&mall Icons",    FCIDM_SHVIEW_SMALLICON
    44             MENUITEM "&List",           FCIDM_SHVIEW_LISTVIEW
    45             MENUITEM "&Details",        FCIDM_SHVIEW_REPORTVIEW
    46           END
    47           MENUITEM SEPARATOR
    48           /* PATCH, the grayed items are unimplemented features */
    49           POPUP "Arrange &Icons"
    50           BEGIN
    51             MENUITEM "By &Name",        0x30    /* column 0 */
    52             MENUITEM "By &Type",        0x32    /* column 2 */
    53             MENUITEM "By &Size",        0x31    /* ... */
    54             MENUITEM "By &Date",        0x33
    55             MENUITEM SEPARATOR
    56             MENUITEM "&Auto Arrange",   FCIDM_SHVIEW_AUTOARRANGE, GRAYED
    57           END
    58           MENUITEM "Line up Icons",     FCIDM_SHVIEW_SNAPTOGRID, GRAYED
    59           MENUITEM SEPARATOR
    60           MENUITEM "Paste",             FCIDM_SHVIEW_INSERT, GRAYED
    61           MENUITEM "Paste as Link",     FCIDM_SHVIEW_INSERTLINK, GRAYED
    62           POPUP "New"
    63           BEGIN
    64             MENUITEM "New &Folder",     ID_NEWFOLDER
    65             MENUITEM "New &Link",       0x7052, GRAYED
    66             MENUITEM SEPARATOR
    67           END
    68           MENUITEM "Properties",        FCIDM_SHVIEW_PROPERTIES, GRAYED
    69         END
     41        POPUP""
     42        BEGIN
     43          POPUP "&View"
     44          BEGIN
     45            MENUITEM "Lar&ge Icons",    FCIDM_SHVIEW_BIGICON
     46            MENUITEM "S&mall Icons",    FCIDM_SHVIEW_SMALLICON
     47            MENUITEM "&List",           FCIDM_SHVIEW_LISTVIEW
     48            MENUITEM "&Details",        FCIDM_SHVIEW_REPORTVIEW
     49          END
     50          MENUITEM SEPARATOR
     51          POPUP "Arrange &Icons"
     52          BEGIN
     53            MENUITEM "By &Name",        0x30    /* column 0 */
     54            MENUITEM "By &Type",        0x32    /* column 2 */
     55            MENUITEM "By &Size",        0x31    /* ... */
     56            MENUITEM "By &Date",        0x33
     57            MENUITEM SEPARATOR
     58            MENUITEM "&Auto Arrange",   FCIDM_SHVIEW_AUTOARRANGE
     59          END
     60          MENUITEM "Line up Icons",     FCIDM_SHVIEW_SNAPTOGRID
     61          MENUITEM SEPARATOR
     62          MENUITEM "Refresh",           FCIDM_SHVIEW_REFRESH
     63          MENUITEM SEPARATOR
     64          MENUITEM "Paste",             FCIDM_SHVIEW_INSERT
     65          MENUITEM "Paste as Link",     FCIDM_SHVIEW_INSERTLINK
     66          MENUITEM SEPARATOR
     67          POPUP "New"
     68          BEGIN
     69            MENUITEM "New &Folder",     FCIDM_SHVIEW_NEWFOLDER
     70            MENUITEM "New &Link",       FCIDM_SHVIEW_NEWLINK
     71            MENUITEM SEPARATOR 
     72          END
     73          MENUITEM SEPARATOR
     74          MENUITEM "Properties",        FCIDM_SHVIEW_PROPERTIES
     75        END
    7076END
    7177
     78/*
     79 shellview item menu
     80*/
    7281MENU_SHV_FILE MENU DISCARDABLE
    7382BEGIN
    74         POPUP""
    75         BEGIN
    76           MENUITEM "C&ut",              FCIDM_SHVIEW_CUT
    77           MENUITEM "&Copy",             FCIDM_SHVIEW_COPY
    78           MENUITEM SEPARATOR
    79           MENUITEM "&Link",             0x7051
    80           MENUITEM "&Delete",           FCIDM_SHVIEW_DELETE
    81           MENUITEM "&Rename",           0x7050
    82           MENUITEM SEPARATOR
    83           MENUITEM "&Properties",       FCIDM_SHVIEW_PROPERTIES
    84         END
     83        POPUP""
     84        BEGIN
     85          MENUITEM "E&xplore",          FCIDM_SHVIEW_CUT
     86          MENUITEM "&Open",             FCIDM_SHVIEW_COPY
     87          MENUITEM SEPARATOR
     88          MENUITEM "C&ut",              FCIDM_SHVIEW_CUT
     89          MENUITEM "&Copy",             FCIDM_SHVIEW_COPY
     90          MENUITEM SEPARATOR
     91          MENUITEM "&Create Link",      FCIDM_SHVIEW_CREATELINK
     92          MENUITEM "&Delete",           FCIDM_SHVIEW_DELETE
     93          MENUITEM "&Rename",           FCIDM_SHVIEW_RENAME
     94          MENUITEM SEPARATOR
     95          MENUITEM "&Properties",       FCIDM_SHVIEW_PROPERTIES
     96        END
    8597END
    86 SHBRSFORFOLDER_MSGBOX DIALOG 15, 40, 128, 152
    87 STYLE WS_THICKFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
     98
     99SHBRSFORFOLDER_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 188, 192
     100STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
    88101CAPTION "Choose a Directory:"
    89102FONT 8, "Helv"
    90103{
    91  DEFPUSHBUTTON "OK", 1, 4, 132, 50, 12
    92  PUSHBUTTON "Cancel", 2, 58, 132, 50, 12
    93  CONTROL "Tree1",99,"SysTreeView32",
    94         TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT |
    95         WS_BORDER | WS_TABSTOP,
    96         4, 4, 120, 120
     104 DEFPUSHBUTTON "OK", 1, 80, 176, 50, 12, BS_DEFPUSHBUTTON | WS_GROUP | WS_TABSTOP
     105 PUSHBUTTON "Cancel", 2, 134, 176, 50, 12, WS_GROUP | WS_TABSTOP
     106 LTEXT "", IDD_TITLE, 4, 4, 18, 12
     107 LTEXT "", IDD_STATUS, 4, 25, 18, 12
     108 CONTROL "Tree1",IDD_TREEVIEW,"SysTreeView32",
     109        TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT |
     110        WS_BORDER | WS_TABSTOP,
     111        4, 40, 180, 120
    97112}
    98113
     
    118133        IDS_OPEN                "Open"
    119134}
     135
     136STRINGTABLE DISCARDABLE
     137{
     138        IDS_CREATEFOLDER_DENIED "Can not create new Folder: Permission denied."
     139        IDS_CREATEFOLDER_CAPTION "Error during creating a new folder"
     140        IDS_DELETEFOLDER_TEXT "Are you sure you want to delete %1 and all it's subfolders?"
     141        IDS_DELETEFOLDER_CAPTION "Confirm file delete"
     142}
     143
     144shv_accel ACCELERATORS
     145BEGIN
     146        VK_F5, FCIDM_SHVIEW_REFRESH, VIRTKEY
     147END
    120148
    121149/////////////////////////////////////////////////////////////////////////////
  • trunk/src/shell32/shresdef.h

    r4032 r4121  
    1 /* $Id: shresdef.h,v 1.6 2000-08-18 02:01:27 phaller Exp $ */
     1/* $Id: shresdef.h,v 1.7 2000-08-30 13:51:09 sandervl Exp $ */
    22
    33/*
     
    2727#define IDS_SHV_COLUMN4         10
    2828#define IDS_SHV_COLUMN5         11
     29#define IDS_SHV_COLUMN6         12
     30#define IDS_SHV_COLUMN7         13
    2931#define IDS_SHV_COLUMN3DV       12
    3032#define IDS_SHV_COLUMN4DV       13
     
    4749#define IDS_SHV_INVALID_MOVE           31
    4850
     51#define IDS_CREATEFOLDER_DENIED 30
     52#define IDS_CREATEFOLDER_CAPTION 31
     53#define IDS_DELETEFOLDER_TEXT   32
     54#define IDS_DELETEFOLDER_CAPTION 33
     55
    4956#define ID_LISTVIEW     2000
    5057#define ID_NEWFOLDER    0x7053
     58
     59/* browse for folder dialog box */
     60#define IDD_STATUS              97
     61#define IDD_TITLE               98
     62#define IDD_TREEVIEW            99
    5163
    5264#define IDS_ABOUTBOX                    101
Note: See TracChangeset for help on using the changeset viewer.