I remember seeing a program a while ago that created a button that you couldnt click on. I could do the anti-click stuff in visual basic, but i could never copy the button.. It would appear randomly on the screen, and it wouldnt belong to another window. (it was just a lonely button)

So I thought I'd be clever and use createwindowex and use button as the class. But it gives the button a titlebar and system buttons. Does anybody know anything about this?

The microsoft sdk didnt have anything about no-border styles in createwindowex, like they had in visual basic.. registerclassex didnt have anything interesting either - maybe you have to superclass the original windows button?
Posted on 2001-11-29 22:18:58 by matthew
You need to specify the WS_CHILD style.
Posted on 2001-11-30 10:10:47 by Hel
These are the styles i am using for something i am working on now:

Posted on 2001-11-30 14:11:33 by sluggy
If you just want a lone floating button then use CreateWindow with the class name as "BUTTON" and the style as WS_POPUP.
Posted on 2001-12-01 06:52:54 by Eóin