title image


Smiley Klar, denn diese Message geht dem Button ja nicht viel an...
The WM_COMMAND message is sent when the user selects a command item from a menu,

when a control sends a notification message to its parent window, or when an

accelerator keystroke is translated.





außer die Buttons haben Shortcuts (unterstrichener Buchstabe), dann muß aber der

wParam-Wert richtig eingestellt sein.



wParam

The high-order word specifies the notification code if the message is from a control.

If the message is from an accelerator, this value is 1.

If the message is from a menu, this value is zero.

The low-order word specifies the identifier of the menu item, control, or accelerator.









mit den Messages WM_LBUTTONDOWN und WM_LBUTTONUP könnte das auch funktionieren.



The WM_LBUTTONDOWN message is posted when the user presses the left mouse button while

the cursor is in the client area of a window. If the mouse is not captured, the message

is posted to the window beneath the cursor. Otherwise, the message is posted to the window

that has captured the mouse.



The WM_LBUTTONUP message is posted when the user releases the left mouse button while the

cursor is in the client area of a window. If the mouse is not captured, the message is

posted to the window beneath the cursor. Otherwise, the message is posted to the window

that has captured the mouse



Wichtig ist, daß der lParam-Wert richtig eingestellt ist:

lParam

The low-order word specifies the x-coordinate of the cursor.

The high-order word specifies the y-coordinate of the cursor.

The coordinate is relative to the upper-left corner of the client area.



Die Position und Größe des Buttons kannst du ja über GetWindowRect abfragen




Gruß
Gaga

___________________________________________________________________

Profilösungen für VB6
wenn nicht anders angegeben, sind alle Codebeispiele nicht getestet, nur getippt


geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: