Interesting, didn't know about that message. Here's the official documentation.
Recommend using the standard documented names for the constants.
Link also describes the hierarchy applied.
Note: WM_QUERYUISTATE returns the current setting.