I don't think this has happened to me before. I was defining a few IDs for some buttons and Edit boxes I was going to use and it comes up with this error when I try to compile:
If it can't be defined as an integer what can it be defined as? The only value that works is 0, but you can't define more than one thing as the same value. This is probably a simple question. Thanks.
passing `int' to argument 10 of `CreateWindowExA(long unsigned int, const CHAR *, const CHAR *, long unsigned int, int, int, int, int, HWND__ *, HMENU__ *, HINSTANCE__ *, void *)' lacks a cast
Try casting it to a HMENU.
It lets me define and apply that ID to the button, in the CreateWindowEx function, but then I wrote this code to make it does something:
It's saying the ID needs to be an integer to use the WM_COMMAND on it. Do I need to write a whole different window processing function to make it receive messages telling the window it has been clicked? Thanks for answering me, Dante Shamest.
//code to execute when clicked
Use LOWORD(wParam), not HIWORD(wParam). :)