Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Bitmap - VC6++

Empfohlene Antworten

Veröffentlicht

Hallo,

da nerv ich doch gleich nochmal

Ich habe in meinen Dialog ein Steuerelement vom Typ "Bild" eingebunden.

Ich will während der Laufzeit das Bild ändern.

Ich habe hierzu meinen Ressourcen 2 Bilder hinzugefügt.

Wie schaffe ich es nun das sich das Steuerelement variabel belegen kann.

Ich habe auch schon eine Membervariable m_bitmap generiert...

Aber mit SetBitmap allein funktioniert das nicht. ?

Danke :)

Aber mit SetBitmap allein funktioniert das nicht. ?

Danke :)

Doch mit SetBitmap funktioniert das.

Wie genau hasts denn versucht?

Ich vermute, dass du halt einfach kein entsprechendes Handle uebergeben hast.

Goos

Doch mit SetBitmap funktioniert das.

Wie genau hasts denn versucht?

Ich vermute, dass du halt einfach kein entsprechendes Handle uebergeben hast.

Goos

Hi ich habs so versucht


CBitmap	bitmap;


  bitmap.LoadBitmap(IDB_BITMAPGR); 	

  m_bitmap.SetBitmap(bitmap);

Versuch da doch mal ein

m_bitmap.SetBitmap(HBITMAP(bitmap));

Goos :)

Hi bekomme trotzdem kein Bild angezeigt.

Die Fläche habe ich als Standard grau ( über den Dialog) definiert aber das bild wird nicht angezeigt..

Hi bekomme trotzdem kein Bild angezeigt.

Die Fläche habe ich als Standard grau ( über den Dialog) definiert aber das bild wird nicht angezeigt..

Na dann nochmal von vorne :)

"Ich habe in meinen Dialog ein Steuerelement vom Typ "Bild" eingebunden."

Damit meinst du wahrscheinlich ein CStatic mit Bitmap Type?

Deine Bitmaps hast du in den Resourcen als Bitmaps hinzugefuegt?

Das erste Bitmap hast du schon im Properties Dialog des CStatic ausgewaehlt und es wird auch beim Start ganz normal angezeigt?

Goos

Na dann nochmal von vorne :)

"Ich habe in meinen Dialog ein Steuerelement vom Typ "Bild" eingebunden."

Damit meinst du wahrscheinlich ein CStatic mit Bitmap Type?

Deine Bitmaps hast du in den Resourcen als Bitmaps hinzugefuegt?

Das erste Bitmap hast du schon im Properties Dialog des CStatic ausgewaehlt und es wird auch beim Start ganz normal angezeigt?

Goos

*ARGS ICH DEPP, falschen Typ ausgewählt gehabt...

Jetzt gehts danke :)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.