AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) Delphi LoadIcon --> hIcon bekommen mit RCData Resource
Thema durchsuchen
Ansicht
Themen-Optionen

LoadIcon --> hIcon bekommen mit RCData Resource

Ein Thema von Zacherl · begonnen am 10. Sep 2007 · letzter Beitrag vom 11. Sep 2007
Antwort Antwort
Seite 2 von 2     12   
Benutzerbild von Zacherl
Zacherl

Registriert seit: 3. Sep 2004
4.629 Beiträge
 
Delphi 10.2 Tokyo Starter
 
#11

Re: LoadIcon --> hIcon bekommen mit RCData Resource

  Alt 11. Sep 2007, 10:09
Okey, muss gleich eh wieder zum Unterricht ..

Danke dir schonmal recht herzlich
  Mit Zitat antworten Zitat
Benutzerbild von turboPASCAL
turboPASCAL

Registriert seit: 8. Mai 2005
Ort: Sondershausen
4.274 Beiträge
 
Delphi 6 Personal
 
#12

Re: LoadIcon --> hIcon bekommen mit RCData Resource

  Alt 11. Sep 2007, 10:16
So, da ist es: http://www.delphipraxis.net/internal...=658715#658715

Musst du nur noch ummodeln.

Ich fine es aber einfacher es als Icon einzubinden.
Matti
Meine Software-Projekte - Homepage - Grüße vom Rüsselmops -Mops Mopser
  Mit Zitat antworten Zitat
Benutzerbild von sirius
sirius

Registriert seit: 3. Jan 2007
Ort: Dresden
3.443 Beiträge
 
Delphi 7 Enterprise
 
#13

Re: LoadIcon --> hIcon bekommen mit RCData Resource

  Alt 11. Sep 2007, 10:21
Zwei Fragen:
1. Warum hast du in deiner Messageschleife ein sleep(150)?
2. Wenn du die WM_Close an die DefWindowProc gibst, wird auch automatisch eine WM_Destroy losgeschickt.
Dieser Beitrag ist für Jugendliche unter 18 Jahren nicht geeignet.
  Mit Zitat antworten Zitat
Benutzerbild von turboPASCAL
turboPASCAL

Registriert seit: 8. Mai 2005
Ort: Sondershausen
4.274 Beiträge
 
Delphi 6 Personal
 
#14

Re: LoadIcon --> hIcon bekommen mit RCData Resource

  Alt 11. Sep 2007, 12:00
Zitat von sirius:
1. Warum hast du in deiner Messageschleife ein sleep(150)?
k.A. muss wohl ein Überbleibsel sein.

Zitat von sirius:
2. Wenn du die WM_Close an die DefWindowProc gibst, wird auch automatisch eine WM_Destroy losgeschickt.
Ja, das simmt. Ist aber auch ein Überbleibsel gewesen.
Matti
Meine Software-Projekte - Homepage - Grüße vom Rüsselmops -Mops Mopser
  Mit Zitat antworten Zitat
Benutzerbild von sirius
sirius

Registriert seit: 3. Jan 2007
Ort: Dresden
3.443 Beiträge
 
Delphi 7 Enterprise
 
#15

Re: LoadIcon --> hIcon bekommen mit RCData Resource

  Alt 11. Sep 2007, 12:53
Upps, das war gar nicht von Zacherl...
Dieser Beitrag ist für Jugendliche unter 18 Jahren nicht geeignet.
  Mit Zitat antworten Zitat
Benutzerbild von Zacherl
Zacherl

Registriert seit: 3. Sep 2004
4.629 Beiträge
 
Delphi 10.2 Tokyo Starter
 
#16

Re: LoadIcon --> hIcon bekommen mit RCData Resource

  Alt 11. Sep 2007, 15:13
Mh ja, also die Resource auslesen kann ich dann schon noch Trotzdem Danke ..
Mir gehts allerdings eher darum, wie genau ich von dem ausgelesenen Pointer ein Icon Handle bekomme, welches ich meiner TrayIcon Funktion übergeben kann.
  Mit Zitat antworten Zitat
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#17

Re: LoadIcon --> hIcon bekommen mit RCData Resource

  Alt 11. Sep 2007, 15:16
Versuch es mal damit:
Delphi-Quellcode:
IconByteArray : array[0..3239] of Byte = (
    $28, $00, $00, $00, $20, $00, $00,
    $00, $40, $00, $00, $00, $01, $00, $18, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C2, $C2, $C2, $A8, $A8, $A8, $A8, $A8, $A8, $C2, $C2, $C2,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $CB, $CB, $CB, $98, $98, $98, $98, $98, $98,
    $98, $98, $98, $A8, $A8, $A8,
    $A8, $A8, $A8, $57, $57, $57, $C2, $C2, $C2, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $67, $67, $67,
    $98, $98, $98, $98, $98, $98,
    $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $D9, $D9, $D9, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $98, $98, $98, $98, $98, $98, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8,
    $A8, $A8, $A8, $A8, $67, $67,
    $67, $A8, $A8, $A8, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $CB, $CB, $CB, $98, $98, $98, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8,
    $A8, $B7, $B7, $B7, $B7, $B7,
    $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $46, $46, $46, $A8, $A8, $A8, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $CB, $CB, $CB, $98, $98, $98, $98, $98, $98, $98, $98,
    $98, $98, $98, $98, $98, $98,
    $98, $A8, $A8, $A8, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $46, $46, $46, $46,
    $46, $46, $A8, $A8, $A8, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C2, $C2, $C2, $67, $67,
    $67, $98, $98, $98, $98, $98,
    $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $A8, $A8, $A8, $B7, $B7, $B7, $B7, $B7, $B7, $B7,
    $B7, $B7, $C2, $C2, $C2, $79,
    $79, $79, $57, $57, $57, $57, $57, $57, $46, $46, $46, $46, $46, $46, $46, $46, $46, $79, $79, $79, $CB, $CB, $CB,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $CB, $CB,
    $CB, $98, $98, $98, $98, $98, $98, $88, $88, $88, $57, $57, $57, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67,
    $67, $67, $67, $67, $67, $67,
    $67, $67, $67, $67, $67, $57, $57, $57, $57, $57, $57, $57, $57, $57, $46, $46, $46, $67, $67, $67, $46, $46, $46,
    $2B, $2B, $2B, $2B, $2B, $2B,
    $2B, $2B, $2B, $2B, $2B, $2B, $2B, $2B, $2B, $67, $67, $67, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $CB, $CB, $CB, $98, $98, $98, $98, $98, $98, $79, $79, $79, $67, $67, $67, $67, $67, $67, $67,
    $67, $67, $67, $67, $67, $67,
    $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $57, $57, $57, $57, $57, $57, $46, $46, $46,
    $46, $46, $46, $57, $57, $57,
    $57, $57, $57, $67, $67, $67, $67, $67, $67, $79, $79, $79, $3B, $3B, $3B, $2B, $2B, $2B, $2B, $2B, $2B, $98, $98,
    $98, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C2, $C2, $C2, $88, $88, $88, $98, $98, $98, $79,
    $79, $79, $67, $67, $67, $67,
    $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $57, $57, $57,
    $57, $57, $57, $57, $57, $57,
    $46, $46, $46, $46, $46, $46, $57, $57, $57, $57, $57, $57, $67, $67, $67, $79, $79, $79, $79, $79, $79, $88, $88,
    $88, $88, $88, $88, $88, $88,
    $88, $2B, $2B, $2B, $98, $98, $98, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $CB,
    $CB, $CB, $98, $98, $98, $98,
    $98, $98, $79, $79, $79, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67, $67,
    $67, $67, $67, $57, $57, $57,
    $57, $57, $57, $57, $57, $57, $46, $46, $46, $46, $46, $46, $46, $46, $46, $57, $57, $57, $57, $57, $57, $67, $67,
    $67, $79, $79, $79, $88, $88,
    $88, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $B7, $B7, $B7, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $C2,
    $C2, $C2, $79, $79, $79, $98, $98, $98, $98, $98, $98, $79, $79, $79, $67, $67, $67, $67, $67, $67, $67, $67, $67,
    $67, $67, $67, $67, $67, $67,
    $67, $67, $67, $67, $67, $67, $67, $67, $67, $57, $57, $57, $57, $57, $57, $46, $46, $46, $46, $46, $46, $46, $46,
    $46, $57, $57, $57, $67, $67,
    $67, $79, $79, $79, $79, $79, $79, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $A8, $A8, $A8, $98,
    $98, $98, $B7, $B7, $B7, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $CB, $CB, $CB, $98, $98, $98, $98, $98, $98, $79, $79, $79, $57, $57, $57,
    $57, $57, $57, $A8, $A8, $A8,
    $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $2B, $2B, $2B, $67, $67, $67, $C2, $C2,
    $C2, $88, $88, $88, $79, $79,
    $79, $67, $67, $67, $67, $67, $67, $79, $79, $79, $79, $79, $79, $88, $88, $88, $98, $98, $98, $98, $98, $98, $A8,
    $A8, $A8, $A8, $A8, $A8, $A8,
    $A8, $A8, $B7, $B7, $B7, $CB, $CB, $CB, $00, $00, $00, $00, $00, $00, $00, $00, $00, $CB, $CB, $CB, $98, $98, $98,
    $98, $98, $98, $79, $79, $79,
    $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $98, $98, $98, $2B, $2B, $2B, $2B, $2B, $2B, $2B, $2B,
    $2B, $2B, $2B, $2B, $67, $67,
    $67, $C2, $C2, $C2, $98, $98, $98, $67, $67, $67, $67, $67, $67, $67, $67, $67, $46, $46, $46, $2B, $2B, $2B, $67,
    $67, $67, $57, $57, $57, $A8,
    $A8, $A8, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $CB, $CB, $CB, $00, $00, $00,
    $00, $00, $00, $CB, $CB, $CB,
    $98, $98, $98, $98, $98, $98, $79, $79, $79, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $98, $98, $98, $2B, $2B,
    $2B, $A8, $A8, $A8, $A8, $A8,
    $A8, $2B, $2B, $2B, $67, $67, $67, $C2, $C2, $C2, $C2, $C2, $C2, $79, $79, $79, $79, $79, $79, $67, $67, $67, $67,
    $67, $67, $46, $46, $46, $2B,
    $2B, $2B, $2B, $2B, $2B, $3B, $3B, $3B, $57, $57, $57, $46, $46, $46, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7,
    $B7, $B7, $B7, $CB, $CB, $CB,
    $00, $00, $00, $C2, $C2, $C2, $79, $79, $79, $98, $98, $98, $98, $98, $98, $98, $98, $98, $79, $79, $79, $A8, $A8,
    $A8, $A8, $A8, $A8, $2B, $2B,
    $2B, $A8, $A8, $A8, $A8, $A8, $A8, $98, $98, $98, $88, $88, $88, $79, $79, $79, $C2, $C2, $C2, $C2, $C2, $C2, $79,
    $79, $79, $79, $79, $79, $67,
    $67, $67, $67, $67, $67, $46, $46, $46, $2B, $2B, $2B, $2B, $2B, $2B, $2B, $2B, $2B, $46, $46, $46, $88, $88, $88,
    $57, $57, $57, $B7, $B7, $B7,
    $B7, $B7, $B7, $CB, $CB, $CB, $00, $00, $00, $00, $00, $00, $D9, $D9, $D9, $A8, $A8, $A8, $A8, $A8, $A8, $98, $98,
    $98, $98, $98, $98, $98, $98,
    $98, $C2, $C2, $C2, $2B, $2B, $2B, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $98, $98, $98, $98, $98, $98, $79,
    $79, $79, $C2, $C2, $C2, $C2,
    $C2, $C2, $79, $79, $79, $79, $79, $79, $79, $79, $79, $79, $79, $79, $57, $57, $57, $2B, $2B, $2B, $2B, $2B, $2B,
    $2B, $2B, $2B, $67, $67, $67,
    $57, $57, $57, $B7, $B7, $B7, $B7, $B7, $B7, $CB, $CB, $CB, $00, $00, $00, $00, $00, $00, $00, $00, $00, $D9, $D9,
    $D9, $A8, $A8, $A8, $A8, $A8,
    $A8, $A8, $A8, $A8, $98, $98, $98, $98, $98, $98, $00, $00, $00, $00, $00, $00, $C2, $C2, $C2, $A8, $A8, $A8, $A8,
    $A8, $A8, $98, $98, $98, $98,
    $98, $98, $67, $67, $67, $C2, $C2, $C2, $79, $79, $79, $79, $79, $79, $79, $79, $79, $79, $79, $79, $79, $79, $79,
    $88, $88, $88, $88, $88, $88,
    $98, $98, $98, $98, $98, $98, $98, $98, $98, $A8, $A8, $A8, $A8, $A8, $A8, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $D9, $D9, $D9, $A8, $A8, $A8, $A8, $A8, $A8, $98, $98, $98, $98, $98, $98, $98, $98, $98, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $C2,
    $C2, $C2, $A8, $A8, $A8, $A8, $A8, $A8, $79, $79, $79, $C2, $C2, $C2, $C2, $C2, $C2, $98, $98, $98, $79, $79, $79,
    $79, $79, $79, $79, $79, $79,
    $79, $79, $79, $88, $88, $88, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $B7, $B7, $B7, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C2, $C2, $C2, $79, $79, $79, $A8, $A8, $A8, $A8, $A8, $A8, $98,
    $98, $98, $98, $98, $98, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $D9, $D9, $D9, $C2, $C2, $C2,
    $C2, $C2, $C2, $98, $98, $98,
    $79, $79, $79, $79, $79, $79, $79, $79, $79, $98, $98, $98, $B7, $B7, $B7, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $C2, $C2, $C2, $79,
    $79, $79, $A8, $A8, $A8, $A8,
    $A8, $A8, $98, $98, $98, $98, $98, $98, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $D9, $D9, $D9, $C2, $C2, $C2,
    $C2, $C2, $C2, $A8, $A8, $A8, $88, $88, $88, $88, $88, $88, $88, $88, $88, $B7, $B7, $B7, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $D9, $D9, $D9, $B7, $B7, $B7, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $A8, $CB, $CB, $CB, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $D9, $D9, $D9, $B7, $B7, $B7, $C2, $C2, $C2, $79, $79, $79, $88, $88, $88, $88, $88, $88, $88, $88, $88, $88, $88,
    $88, $B7, $B7, $B7, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $D9, $D9, $D9, $B7, $B7, $B7, $A8, $A8, $A8, $A8, $A8, $A8,
    $A8, $A8, $A8, $A8, $A8, $A8,
    $A8, $A8, $A8, $A8, $A8, $A8, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $C2, $C2, $C2, $A8, $A8, $A8, $98, $98,
    $98, $88, $88, $88, $88, $88,
    $88, $C2, $C2, $C2, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $B7, $B7, $B7,
    $88, $88, $88, $B7, $B7, $B7,
    $B7, $B7, $B7, $B7, $B7, $B7, $A8, $A8, $A8, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $C2, $C2,
    $C2, $A8, $A8, $A8, $98, $98,
    $98, $98, $98, $98, $98, $98, $98, $88, $88, $88, $B7, $B7, $B7, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $C2, $C2, $C2, $79, $79, $79, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7, $B7,
    $B7, $C2, $C2, $C2, $C2, $C2,
    $C2, $B7, $B7, $B7, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $98, $C2, $C2, $C2, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $B7, $B7, $B7, $67, $67, $67, $79, $79, $79, $B7, $B7,
    $B7, $B7, $B7, $B7, $B7, $B7,
    $B7, $B7, $B7, $B7, $79, $79, $79, $A8, $A8, $A8, $B7, $B7, $B7, $A8, $A8, $A8, $98, $98, $98, $98, $98, $98, $98,
    $98, $98, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $D9, $D9, $D9, $D9, $D9,
    $D9, $C2, $C2, $C2, $A8, $A8, $A8, $B7, $B7, $B7, $CB, $CB, $CB, $CB, $CB, $CB, $C2, $C2, $C2, $B7, $B7, $B7, $B7,
    $B7, $B7, $A8, $A8, $A8, $A8,
    $A8, $A8, $CB, $CB, $CB, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $D9, $D9, $D9, $D9, $D9, $D9, $D9, $D9, $D9, $D9, $D9, $D9, $D9, $D9, $D9, $CB,
    $CB, $CB, $C2, $C2, $C2, $C2,
    $C2, $C2, $B7, $B7, $B7, $B7, $B7, $B7, $CB, $CB, $CB, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $D9, $D9, $D9, $D9,
    $D9, $D9, $D9, $D9, $D9, $D9,
    $D9, $D9, $D9, $D9, $D9, $CB, $CB, $CB, $CB, $CB, $CB, $C2, $C2, $C2, $D9, $D9, $D9, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $B7, $B7, $B7, $B7, $B7, $B7, $D9, $D9, $D9, $D9, $D9, $D9, $B7, $B7, $B7, $B7, $B7, $B7, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00,
    $00, $00, $00, $00, $00, $00,
    $00, $00, $FF, $FF, $FF, $FF, $FF, $87, $FF, $FF, $FE, $01, $FF, $FF, $FC, $00, $FF, $FF, $FC, $00, $7F, $FF, $F8,
    $00, $3F, $FF, $F0, $00, $1F,
    $FF, $E0, $00, $00, $FF, $E0, $00, $00, $1F, $C0, $00, $00, $0F, $C0, $00, $00, $07, $C0, $00, $00, $07, $80, $00,
    $00, $03, $80, $00, $00, $03,
    $80, $00, $00, $01, $80, $00, $00, $01, $00, $00, $00, $03, $00, $00, $00, $07, $03, $00, $00, $1F, $03, $80, $00,
    $3F, $03, $F0, $07, $FF, $03,
    $E0, $1F, $FF, $81, $C0, $1F, $FF, $80, $00, $3F, $FF, $80, $00, $3F, $FF, $C0, $00, $7F, $FF, $C0, $00, $FF, $FF,
    $E0, $00, $FF, $FF, $F0, $01,
    $FF, $FF, $F8, $03, $FF, $FF, $FC, $0F, $FF, $FF, $FF, $FF, $FF, $FF);

hIcon := CreateIconFromResource(PByte(@IconByteArray[0]), SizeOf(IconByteArray), True, $00030000);
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
Benutzerbild von Zacherl
Zacherl

Registriert seit: 3. Sep 2004
4.629 Beiträge
 
Delphi 10.2 Tokyo Starter
 
#18

Re: LoadIcon --> hIcon bekommen mit RCData Resource

  Alt 11. Sep 2007, 15:43
Danke danke CreateIconFromResource hatte mir gefehlt. Über diese API als Suchbegriff kommt man auch wieder zu dem Thread wo du versucht hattest ein Icon aus einem Array zu lesen. Nach Entfernen des 22 Byte Headers funktioniert alles wunderbar.
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:27 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz