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.

Bilder je nach Button anzeigen

Empfohlene Antworten

Veröffentlicht

Hallo,

ich habe 2 Bilder im Visual Studio hochgeladen und will zuerst einfach je nach Knopfdruck entsprechendes Bild im Dialog anzeigen lassen. In meinem Dialog gibt es 2 Picture-Rahmen (vom Panel Controls) Und in den properties steht:

ID: IDB_BITMAP1, Type: Bitmap, Image IDB_BITMAP1

ID: IDB_BITMAP2, Type: Bitmap, Image IDB_BITMAP2

dann gibt´s noch 2 Buttons:

void CBilderChangeDlg::OnButton1()

{

CBitmap bmp;

bmp.LoadBitmap(IDB_BITMAP1);

}

void CBilderChangeDlg::OnButton2()

{

CBitmap bmp;

bmp.LoadBitmap(IDB_BITMAP2);

}

Wenn ich das Programm starte, werden beide Bilder geladen. Unabhängig davon ob man die Buttons drückt oder nicht, sogar dann wenn ich den Inhalt der Funktionen auskommentiere.

Das heist also die Bilder laden sich (oder werden nur sichtbar?) durch die properties-Einstellung "Visible"

Wie kann man aber das Problem lösen?

aifl :)

Du willst also, dass die bilder erst dann geladen werden wenn sie angezeigt werden sollen? Dann darfst du sie in der Entwicklungsumgebung noch nicht einbinden, sondern eben erst dann laden wenn sie gebraucht werden.

hm.. irgendwie logisch :) mal schauen, ob es sich schnell lösen läßt

aifl

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.