Willkommen ~Gast!
Registrieren || Einloggen || Hilfe/FAQ || Staff
Probleme mit der Registrierung im Forum? Melde dich unter registerEin Bild.
Autor Beitrag
000
17.05.2001, 20:21
BraucheInfo



Also

wie kann ich die Mausbewegung und position in Windows über einfaches MessageHandling checken!!!!
DirectInput geht noch nicht!!!!!!!

brauchs bis morgen!

cya

--

zum Seitenanfang zum Seitenende Profil || Suche
001
18.05.2001, 00:18
Hessie J.



Wenn mich meine alten, grauen Zellen nicht mal wieder im Stich lassen, sollte die WM_MOUSEMOVE-Message dafür zu gebrauchen sein.

--

zum Seitenanfang zum Seitenende Profil || Suche
002
18.05.2001, 01:49
Kriz



CWnd::OnMouseMove

afx_msg void OnMouseMove( UINT nFlags, CPoint point );

Parameters

nFlags

Indicates whether various virtual keys are down. This parameter can be any combination of the following values:

MK_CONTROL Set if the CTRL key is down.
MK_LBUTTON Set if the left mouse button is down.
MK_MBUTTON Set if the middle mouse button is down.
MK_RBUTTON Set if the right mouse button is down.
MK_SHIFT Set if the SHIFT key is down.

point

Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.

Remarks

The framework calls this member function when the mouse cursor moves. If the mouse is not captured, the WM_MOUSEMOVE message is received by the CWnd object beneath the mouse cursor; otherwise, the message goes to the window that has captured the mouse.

Note This member function is called by the framework to allow your application to handle a Windows message. The parameters passed to your function reflect the parameters received by the framework when the message was received. If you call the base-class implementation of this function, that implementation will use the parameters originally passed with the message and not the parameters you supply to the function.

© by MSDN

Das sollte wohl helfen...

Cu

--

K:R-I)Z++
"CSS ist cascading style sheets. Und nicht so'n Ranzspiel." - dp
In memory of Voice († 2005/03/30)

zum Seitenanfang zum Seitenende Profil || Suche
003
18.05.2001, 08:57
Hessie J.



Igitt MFC! Vade retro, Satanas :-)

--

zum Seitenanfang zum Seitenende Profil || Suche
004
18.05.2001, 13:54
DarKnight



MFC ist kein Schrott, sondern das beste um schnell funktionelle Programme in C++ zu schreiben. Allerdings würd eich es ja nicht gerade in einem Spiel verwenden... =)

--

void CHudSayText :: EnsureTextFitsInOneLineAndWrapIfHaveTo( int line ) -- Aja?

zum Seitenanfang zum Seitenende Profil || Suche
005
18.05.2001, 14:03
Hessie J.



Ich mach doch schon extra 'nen Smily hintendran! Nehmt mich doch nicht immer so ernst ...

--

zum Seitenanfang zum Seitenende Profil || Suche
006
18.05.2001, 14:08
DarKnight



Okay. Sry! =))))

--

void CHudSayText :: EnsureTextFitsInOneLineAndWrapIfHaveTo( int line ) -- Aja?

zum Seitenanfang zum Seitenende Profil || Suche
007
20.05.2001, 12:48
mani



@DK wieso net in Spielen????
schau dir B&W an, die ham alles mit den MFC gemacht, du siehst ja was draus geworden is ;)

--

zum Seitenanfang zum Seitenende Profil || Suche
008
20.05.2001, 18:59
BraucheInfo



Danke jungs,

es funzt°

Chris " aka BraucheInfo "

--

zum Seitenanfang zum Seitenende Profil || Suche