Click here to Skip to main content
15,879,613 members
Articles / Programming Languages / C++
Article

Makes any windows "Always On Top"

Rate me:
Please Sign up or sign in to vote.
4.60/5 (22 votes)
11 Dec 2004 116K   2.8K   57   15
This is a simple tool which places PushPin button on all windows through system wide hook.

Sample Image - WinPin.jpg

Introduction

This is the mixed version tool of "CPushPinButton v1.13 - A Push Pin Implementation", the article by P.J. Naughter and "Iconizer", the article by Bart Gysens. This tool has very much simpler code. I have eliminated most of the complicated stuffs.

This tool places a PushPin like button on any windows through system wide hook. The clicked window will be on top of all windows. This is very useful when you have some thing from one window to see and type to another huge window.

Source

Source ZIP file includes two projects.

  • WinPinApp - Executable to start the hook.
  • WinPinDll - System wide hooking DLL.

Additional Note

On the WinPinDll project if you define FRAME_CONTROL, this DLL will draw a blank button using DrawFramControl API on all window caption. If you undefine FRAME_CONTROL, DLL will draw PushPin like bitmap button on all window captions (see the above figure).

Execute

Place the WinPinApp.Exe and WinPinDll.Dll in to one folder and execute the exe. Immediately you can PushPin button on all your windows.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralAlways on top but with sound! Pin
FireballCH14-Jun-09 8:13
FireballCH14-Jun-09 8:13 
Generaluninstall Pin
gulffresh17-Dec-08 19:16
gulffresh17-Dec-08 19:16 
GeneralphpDesigner 2007 Professional Crash Pin
riffo12-Oct-07 3:36
riffo12-Oct-07 3:36 
Questioncould you make it work on DOS based programs? Pin
pongup9-May-06 12:22
pongup9-May-06 12:22 
AnswerRe: could you make it work on DOS based programs? Pin
Sa6ry24-Nov-07 13:27
Sa6ry24-Nov-07 13:27 
GeneralGood but has issues Pin
palantir25-Jan-06 6:52
palantir25-Jan-06 6:52 
QuestionHow to uninstall winpin? Just in case... Pin
ncacar2-Dec-05 1:27
ncacar2-Dec-05 1:27 
AnswerRe: How to uninstall winpin? Just in case... Pin
ThatsAlok9-Feb-06 21:09
ThatsAlok9-Feb-06 21:09 
GeneralRe: How to uninstall winpin? Just in case... Pin
chameleon884-Oct-09 19:06
chameleon884-Oct-09 19:06 
GeneralIE Crashing! Pin
Badger372-Jan-05 1:20
Badger372-Jan-05 1:20 
GeneralRe: IE Crashing! Pin
datakprosto16-May-07 0:08
datakprosto16-May-07 0:08 
GeneralStrange behaviour with 2 screens Pin
Tradiator16-Dec-04 2:42
Tradiator16-Dec-04 2:42 
I am getting a strange behaviour with some windows located on a 2nd screen:
The PushPin button sometimes does not appear, sometimes appears but then disappears.
If you move a window from the 2nd to the 1st window the button appears then remains.
I tested with Internet Explorer windows (under Win Xp Pro and with Matrox Dual card).

GeneralYou beat me to it! Pin
Paul Vickery14-Dec-04 22:13
professionalPaul Vickery14-Dec-04 22:13 
GeneralExcEllent Jobs Pin
ThatsAlok12-Dec-04 19:54
ThatsAlok12-Dec-04 19:54 
GeneralRe: ExcEllent Jobs Pin
Chiew Heng Wah14-Dec-04 22:10
Chiew Heng Wah14-Dec-04 22:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.