Re: Frage zu Treeview mit API
From: Mark Doerbandt (spamreceiver_at_doerbandt.de)
Date: 06/05/04
- Next message: Peter Steffen: "Auswahl aus Liste"
- Previous message: Mark Doerbandt: "Re: einen Berichtsausdruck aus einzelnen erstellen"
- In reply to: Philipp Stiefel: "Re: Frage zu Treeview mit API"
- Next in thread: Klaus Oberdalhoff [MVP]: "Re: Frage zu Treeview mit API"
- Reply: Klaus Oberdalhoff [MVP]: "Re: Frage zu Treeview mit API"
- Reply: Philipp Stiefel: "Re: Frage zu Treeview mit API"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 05 Jun 2004 11:38:09 GMT
Hallo, Phil,
* Philipp Stiefel (Sa, 05 Jun 2004 11:19:43 GMT):
> IIRC arbeitet das API-Tree View _nicht_ mit einem Hook (obwohl
> die Benamsung der enstpechenden Prozeduren das andeutet), sondern
> mit Subclassing.
Vielen Dank fuer die Korrektur. Ich habe daraufhin mal etwas gegoogelt.
Fuer mich war bisher die Window Procedure beim SubClassing der "Hook"
in den Nachrichtenstrom, aber ...
<http://www.thescarms.com/vbasic/subclassform.asp>
Subclassing lets you watch for messages sent to any object. In this
case it was the form. It could have been a textbox, toolbar, etc.
Although the two are very similar, do not confuse subclassing with
using hooks. Briefly, a hook allows you to see all messages sent to
an entire thread, regardless of the active window. When using hooks,
you do not replace the window procedure with your own. Instead, you
add your procedure to the top of a chain of procedures. Each hook
procedure is responsible for calling the next procedure in the chain.
Failure to do so does not cancel the message but merely prevents the
other procedures in the chain from seeing the message.
</http://www.thescarms.com/vbasic/subclassform.asp>
... wieder was gelernt!
> Leider gibt es seit A00 ein Problem mit Subclassing, dass dazu
> fuehrt, dass so bald einmal die VBA-IDE geoeffnet war, die
> MessageQueue mit unsinnigen Nachrichten vollgestopft wird und
> dadurch Access blockiert wird.
In der Tat habe ich den API-Tree hauptsaechlich unter 97 genutzt und
damit entwickelt. Inzwischen ist die Anwendung aber nach XP portiert
und mir sind, obwohl ich daran weiter entwickle, solche Probleme noch
nicht aufgetaucht. Hast Du eine Referenz dazu (KB o.ae.) parat?
Gruss - Mark
-- Informationen fuer Neulinge in den Access-Newsgroups unter http://www.doerbandt.de/Access/Newbie.htm Bitte keine eMails auf Newsgroup-Beiträge senden.
- Next message: Peter Steffen: "Auswahl aus Liste"
- Previous message: Mark Doerbandt: "Re: einen Berichtsausdruck aus einzelnen erstellen"
- In reply to: Philipp Stiefel: "Re: Frage zu Treeview mit API"
- Next in thread: Klaus Oberdalhoff [MVP]: "Re: Frage zu Treeview mit API"
- Reply: Klaus Oberdalhoff [MVP]: "Re: Frage zu Treeview mit API"
- Reply: Philipp Stiefel: "Re: Frage zu Treeview mit API"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|