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.

Mauszeiger ändern

Empfohlene Antworten

Veröffentlicht

Ich hab da mal wieder ein kleines Problem ;-)

Und zwar möchte ich, während eine Methode in CMainFrame abgearbeitet wird den Mauszeiger verändern und später wieder den normalen Pfeil anzeigen.

Dass klappt auch soweit, nur muss die Maus nach Ablauf der Methode wieder bewegt werden, damit der Standardpfeil angezeigt wird.

Wenn man die Methode per Mausklick aufruft ist das auch kein Problem, nur wenn man es per Shortcut macht, denkt man halt, die Methode ist noch nicht abgeschlossen...

Das ganze sieht bei mir so aus:

void CMainFrame::yxz()

{

SetCursor(LoadCursor(NULL, IDC_APPSTARTING));

/*

Tu was...

*/

SetCursor(LoadCursor(NULL, IDC_ARROW));

}

Hab ich vergessen zu schreiben, dass habe ich auch schon probiert und es klappt auch nicht.

Etwa so in der Art:

void CMainFrame::xyz()

{

SetCursor(LoadCursor(NULL, IDC_APPSTARTING));

/*

...

*/

SetCursor(LoadCursor(NULL, IDC_ARROW));

CPoint Point;

GetCursorPos(&Point);

SetCursorPos(Point.x+1,Point.y);

}

Den Thread habe ich auch schon gefunden, aber hier wird der Mauszeiger geändert wenn er sich über einen Button bewegt und wenn er den Button verlässt wieder zurückgesetz.

Dass heißt die Maus wird bewegt, dann klappts ja auch bei mir...

Hab mal etwas gesucht und gefunden: genau das was du möchtest, mit dem Unterschied, daß es bei mir funktioniert. Vieleicht stimmt ja was mit dem Rest des Codes nicht..Poste doch mal die gesamte funktion.

Jetzt klappts bei mir auch! :D

Ist schon doof wenn man eine if-Anweisung mit einem return hat, und in der den Mauszeiger nicht wieder zurücksetzt...

Man bin ich blöd!!!

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.