Alex Kindel
Alex Kindel

Reputation: 173

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?

Upvotes: 0

Views: 255

Answers (1)

Anders
Anders

Reputation: 101764

Create the buttons with the BS_OWNERDRAW style and handle the WM_DRAWITEM message.

Upvotes: 2

Related Questions