What the...?

Something bad happened

We're not sure what, but we have a few guesses.

Problem: Object reference not set to an instance of an object.
Ticket: 7864830
Server: Web03
Makes any windows "Always On Top" - CodeProject Click here to Skip to main content
11,715,022 members (73,259 online)
Click here to Skip to main content

Makes any windows "Always On Top"

, 11 Dec 2004 95.5K 2.5K 55
Rate this:
Please Sign up or sign in to vote.
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

Share

About the Author

Ramanan.T
Software Developer (Senior)
Australia Australia
No Biography provided

You may also be interested in...

Comments and Discussions

 
GeneralAlways on top but with sound! Pin
FireballCH14-Jun-09 8:13
memberFireballCH14-Jun-09 8:13 
Generaluninstall Pin
gulffresh17-Dec-08 19:16
membergulffresh17-Dec-08 19:16 
GeneralphpDesigner 2007 Professional Crash Pin
riffo12-Oct-07 3:36
memberriffo12-Oct-07 3:36 
Questioncould you make it work on DOS based programs? Pin
pongup9-May-06 12:22
memberpongup9-May-06 12:22 
AnswerRe: could you make it work on DOS based programs? Pin
Sa6ry24-Nov-07 13:27
memberSa6ry24-Nov-07 13:27 
GeneralGood but has issues Pin
palantir25-Jan-06 6:52
memberpalantir25-Jan-06 6:52 
QuestionHow to uninstall winpin? Just in case... Pin
ncacar2-Dec-05 1:27
memberncacar2-Dec-05 1:27 
AnswerRe: How to uninstall winpin? Just in case... Pin
ThatsAlok9-Feb-06 21:09
memberThatsAlok9-Feb-06 21:09 
GeneralRe: How to uninstall winpin? Just in case... Pin
chameleon884-Oct-09 19:06
memberchameleon884-Oct-09 19:06 
GeneralIE Crashing! Pin
Badger372-Jan-05 1:20
memberBadger372-Jan-05 1:20 
GeneralRe: IE Crashing! Pin
datakprosto16-May-07 0:08
memberdatakprosto16-May-07 0:08 
GeneralStrange behaviour with 2 screens Pin
Tradiator16-Dec-04 2:42
memberTradiator16-Dec-04 2:42 
GeneralYou beat me to it! Pin
Paul S. Vickery14-Dec-04 22:13
memberPaul S. Vickery14-Dec-04 22:13 
GeneralExcEllent Jobs Pin
ThatsAlok12-Dec-04 19:54
memberThatsAlok12-Dec-04 19:54 
GeneralRe: ExcEllent Jobs Pin
Chiew Heng Wah14-Dec-04 22:10
memberChiew Heng Wah14-Dec-04 22:10 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150901.1 | Last Updated 11 Dec 2004
Article Copyright 2004 by Ramanan.T
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid