0

There is a callback on the property sheet structure, PFNPROPSHEETCALLBACK, but the messages are limited to PSCB_INITIALIZED, PSCB_PRECREATE and PSCB_BUTTONPRESSED. I want to handle messages like WM_CTLCOLOR but can't seem to find a way to do it. Is it possible?

My end goal is to change the color of the tab controls and the outer frame of the property sheet dialog.

  • The `WM_CTLCOLOR*` messages are sent to the parent of the control. In this case the parent of the tab control, presumably a dialog you implemented. Though I don't know whether a tab control supports this customization at all. – IInspectable Oct 07 '21 at 11:26
  • https://learn.microsoft.com/en-us/windows/win32/controls/subclassing-overview – Hans Passant Oct 07 '21 at 13:05

1 Answers1

0

change the color of the tab controls

If you want to customize its appearance, I suggestm you should owner draw the tab control. And you could refer to the Doc: Owner-Drawn Tabs

change the outer frame of the property sheet dialog.

If you want to change the Themes and Visual Styles, I suggest you could try to enable Visual Styles.

Jeaninez - MSFT
  • 3,210
  • 1
  • 5
  • 20
  • @fidel espanto Have you got any updates? If your case has been solved, please help to mark answers. If not, just feel free to contact us. Your understanding and cooperation will be grateful. – Jeaninez - MSFT Oct 14 '21 at 06:10