Vorgefertigte BMP's ?



  • Tach erstmal !

    Ich hab da eine Frage...
    Die meißten Toolbars in Programmen benutzen die gleichen BMP's
    zum Öffnen, Speichern, etc...
    Gibt es da schon fertige id's zu den Bitmaps, sodass man diese
    gleich beim erstellen einer Toolbar oder eines TreeViews benutzen kann ?
    Ich glaube schonmal sowas wie BMP_COPY oder so gesehen zu haben, aber
    gibt es nicht irgendwo eine komplette Liste der Id's (falls es sowas gibt) ?

    Danke schonmal im Voraus für kommende Antworten,

    grüße - richi

    PS: In der MSDN hab ich schon gesucht, bin aber nicht fündig geworden !



  • Nein, sowas gibt es nicht. So ne Icons oder BMPs musst du selber erstellen oder halt irgendwo abkopieren.



  • Ja, sowas gibt es:
    MSDN: Toolbar Standard Button Image Index Values.

    IDB_STD_LARGE_COLOR
    IDB_STD_SMALL_COLOR
    IDB_VIEW_LARGE_COLOR
    IDB_VIEW_SMALL_COLOR
    IDB_HIST_LARGE_COLOR
    IDB_HIST_SMALL_COLOR

    Mittels der folgenden Konstanten kannst Du sie dann ansprechen:

    This section specifies index values of images within standard bitmaps.

    Constants
    Index values for IDB_HIST_LARGE_COLOR and IDB_HIST_SMALL_COLOR:

    HIST_ADDTOFAVORITES Add to favorites.
    HIST_BACK Move back.
    HIST_FAVORITES Open favorites folder.
    HIST_FORWARD Move forward.
    HIST_VIEWTREE View tree.

    Index values for IDB_STD_LARGE_COLOR and IDB_STD_SMALL_COLOR:

    STD_COPY Copy operation.
    STD_CUT Cut operation.
    STD_DELETE Delete operation.
    STD_FILENEW New file operation.
    STD_FILEOPEN Open file operation.
    STD_FILESAVE Save file operation.
    STD_FIND Find operation.
    STD_HELP Help operation.
    STD_PASTE Paste operation.
    STD_PRINT Print operation.
    STD_PRINTPRE Print preview operation.
    STD_PROPERTIES Properties operation.
    STD_REDOW Redo operation.
    STD_REPLACE Replace operation.
    STD_UNDO Undo operation.

    Index values for IDB_VIEW_LARGE_COLOR and IDB_VIEW_SMALL_COLOR:

    VIEW_DETAILS Details view.
    VIEW_LARGEICONS Large icons view.
    VIEW_LIST List view.
    VIEW_NETCONNECT Connect to network drive.
    VIEW_NETDISCONNECT Disconnect from network drive.
    VIEW_NEWFOLDER New folder.
    VIEW_PARENTFOLDER Go to parent folder.
    VIEW_SMALLICONS Small icon view.
    VIEW_SORTDATE Sort by date.
    VIEW_SORTNAME Sort by name.
    VIEW_SORTSIZE Sort by size.
    VIEW_SORTTYPE Sort by type.

    Remarks
    You use these values to specify an image index within a standard image list that was loaded with the TB_LOADIMAGES message. The index values correspond to images within standard image lists that the control creates for your convenience. The images depict actions that Windows applications commonly perform.



  • Vielen Dank nochmal - Problem gelöst 🙂

    EDIT:

    @ WebFritzi:

    Kein Problem, jeder kann sich mal irren 😉



  • Oh, das wusste ich garnicht. Sorry Richi. Ich hab die immer von irgendwo kopiert. Dank Hepi weiß ich jetzt mehr. 🙂


Anmelden zum Antworten