How do I create a message box that lets me display a variable? I also need to know how to display variables with text. Here is the code in the switch(message) statement that I have at the moment that doesn't work.
case WM_CREATE:
CreateWindow(
TEXT("button"), TEXT("Click"),
WS_VISIBLE | WS_CHILD | WS_BORDER,
10, 30, 55, 20,
hwnd, (HMENU) 1, NULL, NULL
);
break;
case WM_COMMAND:
if(LOWORD(wParam) == 1){
money--; //this has already been declared at 50.
MessageBox(hwnd, money, "New money value", MB_OK); //also tried money.toString() but that doesn't work either.
}
break;