I've already found a lot of posts about the adding of a button to a window's titlebar, but none of them was suitable to use on other windows. The only thing I actually need is a kind of class which only requires hWnd.