Einzelnen Beitrag anzeigen

Mephistopheles
(Gast)

n/a Beiträge
 
#8

Re: WndProc funktioniert nicht mit Buttons auf Formular

  Alt 3. Mai 2005, 18:55
Zitat von Poolspieler:
Du hattest recht und es funktioniert wunderbar - aber wie kommt man denn auf diese Lösung?
Hast Du dafür irgendwo eine tolle Doku gefunden?
Ja, da gibt es eine "tolle Doku", die jeder der unter Windows programmiert bereits auf seinem Rechner haben sollte!

http://www.microsoft.com/msdownload/...msdk/sdkupdate

Wenn du es installiert hast, findest du die entsprechenden Infos unter diesen URLs:
  • ms-help://MS.PSDK.1033/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowmessages/wm_parentnotify.htm
    Zitat:
    The WM_PARENTNOTIFY message is sent to the parent of a child window when the child window is created or destroyed, or when the user clicks a mouse button while the cursor is over the child window. When the child window is being created, the system sends WM_PARENTNOTIFY just before the CreateWindow or CreateWindowEx function that creates the window returns. When the child window is being destroyed, the system sends the message before any processing to destroy the window takes place.
  • ms-help://MS.PSDK.1033/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/createwindowex.htm
    Zitat:
    WS_EX_NOPARENTNOTIFY
    Specifies that a child window created with this style does not send the WM_PARENTNOTIFY message to its parent window when it is created or destroyed.

Da man sich darauf nicht bei allen Child-Controls verlassen kann, wurde dies (zumindest von mir) oben noch nicht angeführt.
  Mit Zitat antworten Zitat