TrackMouseEvent

Wohl das A & O in der Windows-Programmierung

Moderatoren: crack, Krüsty, Marwin

Antworten
Rainer
Alter Hase
Beiträge: 81
Registriert: Freitag 21. Juli 2006, 14:39
Wohnort: Senftenberg
Kontaktdaten:

TrackMouseEvent

Beitrag von Rainer » Montag 18. Februar 2008, 16:59

Hallo,

ich möchte über einem Ownerdraw-Button reagieren, wenn sich der Mauscursor über dem Button befindet. Das ist so mit WM_DRAWITEM nicht lösbar, also habe ich's jetzt mit TrackMouseEvent probiert.
Die Struktur TRACKMOUSEEVENT habe ich global declariert, bei WM_CREATE habe ich nach der Erzeugung des Buttons die Struktur gefüllt

(global)
tme TRACKMOUSEEVENT <>

(WndProc, WM_CREATE)
mov tme.cbSize, sizeof tme
mov tme.dwFlags, TME_HOVER or TME_LEAVE
mov tme.hwndTrack, eax ;eax = Handle des Btns
mov tme.dwHoverTime, HOVER_DEFAULT
invoke TrackMouseEvent, addr tme

und warte nun in der WndProc, leider vergeblich, auf WM_MOUSEHOVER bzw. WM_MOUSELEAVE, wenn ich mit der Maus über dem Button bin. Weiß jemand, was ich da falsch mache?

Gruß Rainer

Benutzeravatar
crack
Administrator
Beiträge: 280
Registriert: Dienstag 21. Dezember 2004, 15:02
Wohnort: 53783 Eitorf
Kontaktdaten:

Re: TrackMouseEvent

Beitrag von crack » Dienstag 9. Dezember 2008, 01:36

Axo, ich glaube Du musst WM_MOUSEOVER bzw. WM_MOUSELEAVE in der MessageLoop abfangen und nicht in der WndProc ...
mit freundlichen grüssen,
with best regards,

crack

Rainer
Alter Hase
Beiträge: 81
Registriert: Freitag 21. Juli 2006, 14:39
Wohnort: Senftenberg
Kontaktdaten:

Re: TrackMouseEvent

Beitrag von Rainer » Donnerstag 16. Juli 2009, 18:26

Hallo crack,

danke, mit Subclassing ging's dann auch..

Gruß Rainer

Mdivvqbd
Newbie
Beiträge: 1
Registriert: Dienstag 17. September 2019, 22:43

cure for heat stroke single health insurance

Beitrag von Mdivvqbd » Dienstag 17. September 2019, 22:49

Wind-storm Dorian updates
As of the 1 p.m. EDT update provided by the storm center, http://viagranodoctor.com pfizer generic *(ICH SPAMME!!!)* the samiel was located about 630 miles east of the southeastern Bahamas, heart-rending at 4 mph. Dorian doesn’t figure to hit U.S. topography until Monday.
The seedy service said that on its current misplace, Dorian should action over with the Atlantic *(ICH SPAMME!!!)* without doctor prescription usa proficiently east of the southeastern and important Bahamas tonight and on Friday, overtures the northwestern Bahamas Saturday, and split for almost or one more time portions of the northwest Bahamas on Sunday.
insurance health plans buy *(ICH SPAMME!!!)* online

scodadet
Supermann
Beiträge: 430
Registriert: Samstag 14. September 2019, 10:49

12 TopTier but Undervalued Burgundy

Beitrag von scodadet » Mittwoch 18. September 2019, 07:48

Netanyahu claims Iran had secret nuclear weapons site. Netanyahu claims Iran had secret nuclear weapons site. DAVID GILBERT How patients can improve the health of the NHS (not the other way around). DAVID GILBERT How patients can improve the health of the NHS (not the other way around). Bed sensor keeps unobtrusive eye on vital signs. Bed sensor keeps unobtrusive eye on vital signs. Naomi Osaka records 16th-straight Grand Slam win as world No 1 beats Victoria Azarenka. Naomi Osaka records 16th-straight Grand Slam win as world No 1 beats Victoria Azarenka. Lilly Singh talks about paving a path in late-night TV. Lilly Singh talks about paving a path in late-night TV. Apple's app store eyed in U.S. Congress antitrust probe. Apple's app store eyed in U.S. Congress antitrust probe. NASA's Mars Reconnaissance Orbiter captures a massive avalanche on the red planet. NASA's Mars Reconnaissance Orbiter captures a massive avalanche on the red planet. This Week in Business E-Cigarettes Take a Hit, and Gig Workers Get Good News. This Week in Business E-Cigarettes Take a Hit, and Gig Workers Get Good News. Trump says Iran appears to be culprit for Saudi oil attacks. Trump says Iran appears to be culprit for Saudi oil attacks. Does Best Buy take old computers Where is skip the month on JustFab How much is Telstra International Roaming An Anthony Bourdain Auction Will Include His Treasured Knife. An Anthony Bourdain Auction Will Include His Treasured Knife. Ferdinand Pich, Domineering Volkswagen Chief, Dies at 82. Ferdinand Pich, Domineering Volkswagen Chief, Dies at 82.

Robin Goodfellow's racing tips Best bets for Monday, September 16. Robin Goodfellow's racing tips Best bets for Monday, September 16. This Dubai AI start-up wants to transform healthcare. This Dubai AI start-up wants to transform healthcare. Saudi Arabia, Hong Kong, Banksy Your Tuesday Briefing. Saudi Arabia, Hong Kong, Banksy Your Tuesday Briefing. Key Points About the U.A.W. Strike Against General Motors. Key Points About the U.A.W. Strike Against General Motors. Rioja roll! These brands of this well-loved are wine are ready to rock! Rioja roll! These brands of this well-loved are wine are ready to rock! Doctor Who star Christopher Eccleston hailed for 'bravery' after depression and anorexia admission. Doctor Who star Christopher Eccleston hailed for 'bravery' after depression and anorexia admission. MIDAS SHARE TIPS UPDATE Drugs for pets firm Dechra booms. MIDAS SHARE TIPS UPDATE Drugs for pets firm Dechra booms. Warren vows to tackle U.S. corruption. Warren vows to tackle U.S. corruption. Bunnings worker Brett Wolff Jacques is suing after being chased by a machete wielding shoplifter. Bunnings worker Brett Wolff Jacques is suing after being chased by a machete wielding shoplifter. In an Ancient Woodland, One of Italys Rare Gated Communities Flourishes. In an Ancient Woodland, One of Italys Rare Gated Communities Flourishes.

This Week in Business E-Cigarettes Take a Hit, and Gig Workers Get Good News. This Week in Business E-Cigarettes Take a Hit, and Gig Workers Get Good News.

Man picks up a furball and discovers it's a swarm of HUNDREDS of tiny daddy long legs. Man picks up a furball and discovers it's a swarm of HUNDREDS of tiny daddy long legs.

Antworten