简体   繁体   中英

Win32 button appearance

I'm working on a GUI for a chess program using Win32, and my first thought was to make the board an 8X8 grid of buttons. However, I would prefer the squares on my board to be solid, single colors with no additional visual frills, while I haven't found a way to create a button that doesn't have a border around it. Is it possible to alter the appearance of a button arbitrarily, or are the borders unavoidable? If the latter, what other implementation could I look into for rendering a board that looks exactly how I want?

创建具有BS_OWNERDRAW样式的按钮并处理WM_DRAWITEM消息。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM