Michael Lin mlin@corvu.com.au writes:
inline static UINT get_button_type( LONG window_style ) {
- return (window_style & 0x0f);
- if ((window_style & BS_OWNERDRAW) == BS_OWNERDRAW)
return BS_OWNERDRAW;
- else
return (window_style & 0x0f);
BS_OWNERDRAW is not a bit mask, this won't work right. What is the problem you are trying to fix?