I want to check, if a style DWORD contains a certain style.
I know I can remove styles by using:
But I don't know how to check, if there is a style.Code:dwStyle &= ~(WS_MAXIMIZEBOX|WS_THICKFRAME);
I want to check, if a style DWORD contains a certain style.
I know I can remove styles by using:
But I don't know how to check, if there is a style.Code:dwStyle &= ~(WS_MAXIMIZEBOX|WS_THICKFRAME);
Will evaluate to true if either of the two is set, if you strictly want to check if both are set you doCode:dwStyle & (WS_MAXIMIZEBOX|WS_THICKFRAME)
Code:dwStyle & (WS_MAXIMIZEBOX|WS_THICKFRAME) == (WS_MAXIMIZEBOX|WS_THICKFRAME)
Thanks, now I can finish my little program.
I'll post the source code when I finish