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.

Empfohlene Antworten

Veröffentlicht

Hi,

für die folgende Funktion der CListCtrl Klasse finde ich nicht den passenden HBITMAP hbm - Parameter :

BOOL SetBkImage( HBITMAP hbm, BOOL fTile = TRUE, int xOffsetPercent = 0, int yOffsetPercent = 0);

Wer kann mir dabei helfen?

Wenn es auch andere Wege gibt, wie man ein Image als Hintergrund in dem Listen-Steuerelement beim Windows CE erstellen kann, bitte ich um Info.

Wie bekomme ich HBITMAP hbm? Mit welcher Funktion?

Ich habe eine bmp-Datei mit 256 Farben als Bitmapressource geladen.

Ich habe eine bmp-Datei mit 256 Farben als Bitmapressource geladen.

In ein CBitmap-Objekt? Dann solltest du das einfach als ersten Parameter für SetBkImage angeben können.

Zeig doch mal ein wenig Code, dann können wird dir viel besser helfen. Deine Fehlerbeschreibung ist nämlich recht dürftig. ;)

Bei diesem Code

CBitmap bm;

CListCtrl m_Liste;

bm.LoadBitmap(IDB_HINTERGRUNDBILD);

m_Liste.SetBkImage(bm,TRUE, 0,0);

(IDB_HINTERGRUND habe ich vorher mit Assistenten in die Ressourcen geladen)

meldet der Compiler:

int __cdecl CListCtrl::SetBkImage(struct HBITMAP__ *,int,int,int)" (?SetBkImage@CListCtrl@@QAAHPAUHBITMAP__@@HHH@Z) referenced in function "protected: virtual int __cdecl CQuerschn

itt::OnInitDialog(void)" (?OnInitDialog@CQuerschnitt@@MAAHXZ)

ARMDbg/www.exe : fatal error LNK1120: 1 unresolved externals

Error executing link.exe.

und ich verstehe nur Bahnhof.

und ich verstehe nur Bahnhof.
Aber mir ist jetzt alles klar. Das ist keine Meldung des Compilers, sondern des Linkers. Offenbar ist diese Methode in den MFC für CE nicht implementiert. Hättest du gleich diese Fehlermeldung gepostet, hätten wir sehr viel Zeit sparen können.

Und hättest du "CListCtrl::SetBkImage unresolved" bei Google Groups eingegeben, hättest du diesen Thread gefunden.;)

Vielen Dank! :)

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.