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

Hallo leute

Versuch grad eine einfach CDragListBox zu machen.

Hab ihm internet gelesen dass man nur eine ListBox in den Resourcen zeichnen muß, und dann eine ListBox Variable zuweisen muß.

Dann hab ich einfach die Deklaration von CListBox in CDragListBox ungeändert....

Aber jetzt bekomme ich eine Debug Assertion

File: winctrl2.cpp

Line: 43

Das komische ist, wenn ich auf "Ignorieren" klicke, funktioniert die DragListBox einwandfrei!!

aber woran liegt diese Assertion und wie bring ich die weg?

Thx SwordMaster

  • Autor
Original geschrieben von Guybrush Threepwood

Da meine Glaskugel im Moment irgendwie Störungen hat, wäre es ganz praktisch wenn du den Entsprechenden Code und die Debug Assertion posten würdest ;)

Die Glaskugeln sind auch nicht mehr dass was sie mal waren :P

Aber das Problem war, dass ich ja nicht mal einen Quellcode hatte....

Ich hab nur eine ListBox in den Dialog reingezogen und ihm dann eine Variable von Typ CDragListBox zugeteilt, und schon kam beim start die Assertion

Aber nach langem suchen und stöbern hab ichs endlich die Lösung gefunden!!

Eine ListBox hat Standardmäßig bei Eigenschaften das "Sortieren" ausgewählt!

und dieses Flag darf bei einer CDragListBox scheinbar nicht gesetzt sein!!

=> Häckchen raus, und schon ist die Assertion weg :)

MFG SwordMaster

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.