Thema: Delphi Cursor aus Bitmap laden

Einzelnen Beitrag anzeigen

Benutzerbild von turboPASCAL
turboPASCAL

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

Re: Cursor aus Bitmap laden

  Alt 2. Sep 2009, 08:54
Hi,

von deinem Sourcecode her ist soweit alles in Ordnung.
Der Fehler liegt warscheinlich an deinen Bitmaps.

Da du beschreibst das um deinen Cursor ein viereckiger schwarzer Hintergrund ist,
nehme ich einfach mal an das du folgendes nicht beachtet hast:

Zitat:
hbmMask
Specifies the icon bitmask bitmap. If this structure defines a black and white icon, this bitmask is formatted so that the upper half is the icon AND bitmask and the lower half is the icon XOR bitmask. Under this condition, the height should be an even multiple of two. If this structure defines a color icon, this mask only defines the AND bitmask of the icon.

hbmColor
Identifies the icon color bitmap. This member can be optional if this structure defines a black and white icon. The AND bitmask of hbmMask is applied with the SRCAND flag to the destination; subsequently, the color bitmap is applied (using XOR) to the destination by using the SRCINVERT flag.
Verwende mal die Bitmaps aus dem Anhang.
Die Namen der Bitmaps sind hoffe ich eindeutig.


Noch eine Frage, wieso nutzt du nicht gleich Icons als Cursor ?
Angehängte Dateien
Dateityp: zip cursorbitmaps_460.zip (2,5 KB, 35x aufgerufen)
Matti
Meine Software-Projekte - Homepage - Grüße vom Rüsselmops -Mops Mopser
  Mit Zitat antworten Zitat