How to draw custom button in Window Titlebar with Windows Forms?
问题 How do you draw a custom button next to the minimize, maximize and close buttons within the Titlebar of the Form? I know you need to use Win32 API calls and override the WndProc procedure, but I haven\'t been able to figure out a solution that works right. Does anyone know how to do this? More specifically, does anyone know a way to do this that works in Vista? 回答1: The following will work in XP, I have no Vista machine handy to test it, but I think your issues are steming from an incorrect