Good morning everyone.
I'm trying to create a window with the WS_OVERLAPPEDWINDOW style however my RegisterClassEx() function fails and GetLastError() returns value 87 which is an incorrect parameter.
I've traced this to the window style member in WNDCLASSEX where (I haven't tried this extensively with all of the styles) the WS_OVERLAPPEDWINDOW style produces this error. If I use simpler styles i.e. VREDRAW & HREDRAW then the RegisterClassEx() executes and the window is created.
If I try to use the individual styles that WS_OVERLAPPEDWINDOW incorporates, even just one of them, then RegisterClassEx() fails.
Anybody have an insight into this?
Apologies but I'm at work and don't have access to my code until I get in this afternoon - it's just bothering me so I needed to post it
I'm using VS 2019 if that helps.
Thanks for reading,
R