Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extra button in TitleBar
Message
De
13/11/2001 03:03:32
 
 
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00580401
Message ID:
00580760
Vues:
19
Thanks Vlad,

I already figured out that it is difficult. I found an example in code to create a button on www.planetsourcecode.com

http://www.planetsourcecode.com/xq/ASP/txtCodeId.11292/lngWId.1/qx/vb/scripts/ShowCode.htm

The author (Druid Developing) writes:
> This code shows you how to place an own CommandButton into
> the Titlebar of your program. Great for special commands in
> your app. Easy to implement and a cool thing that will impress
> your users. Enjoy! AND VOTE FOR ME! To users of WinNT4 or Win2k:
> I am sorry I have to tell you that this code won´t work on your
> system. That might be because NT Technology has got a higher
> security level and doesn´t allow this program to hook windows.

I tried to get it to work on NT4 and discovered that it is NOT the window hook function that causes the problem. I tried a breakpoint in the message handler and several messages triggered the breakpoint.

Can somebody explain why the buttonclick is not handled in NT ?

BE CAREFUL:
Never close the program using the end button in the IDE, it will cause a crash of the IDE. This program hooks in the message handler, the form unload event restores the original handler.
============================================================
'C' is shorthand for Confusion, 'C++' much more confusion...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform