Einzelnen Beitrag anzeigen

Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#4

Re: [NonVCL] TreeView PopUp Menü zuordnen

  Alt 6. Nov 2004, 13:23
Dafür gibt es extra MSDN-Library durchsuchenwm_contextmenu:
Zitat von PSDK:
The WM_CONTEXTMENU message notifies a window that the user clicked the right mouse button ( right clicked) in the window.
Da musst du nicht erst übert die Cursor-Position fetsstellen wo geklickt wurde da:
Zitat von PSDK:
wParam
Handle to the window in which the user right clicked the mouse. This can be a child window of the window receiving the message. For more information about processing this message, see the Remarks section.
Und wenn du das benutzt, dann fuinktioniert auch automatisch die "Kontextmenü"-Taste von der Tastatur:
Zitat von PSDK:
The WM_CONTEXTMENU message is also generated when the user presses and releases the VK_APPS key.
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat