Why is this acting so funny?

See the first SetWindowText works, but the second one dose not, I am trying to make it to where if you click the first one it says something, or the second one it says something, or if you have one picked already it will change it to the second one you have picked.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

case WM_COMMAND:
{
    switch( LOWORD(wParam) )
    {
        case Men1Button1:
        MODE = "CMD Mode";
        std::cout << MODE << std::endl;
        SetWindowText(nurb, TEXT("Command Prompt Text-Based has been chosen"));

        HWND nubben11 = CreateWindow(TEXT("STATIC"), TEXT("Now select play to play your game in your selected type."), WS_VISIBLE | WS_CHILD,
                     80,120,400,25, hwnd, (HMENU)NULL, NULL, NULL);

        static HBRUSH brus1 = NULL;
        }
            break;

        case Men1Button2:
        MODE = "Windows Mode(SGB)";
        SetWindowText(nurb, "Windows Mode Semi-Graphics-Based has been chosen");
            break;

           case Men1Button3:
           MODE = "Windows Mode(TB)";
           std::cout << MODE << std::endl;
           break;

           case Men1Button4:
            MODE = "2D Mode";
            std::cout << MODE << std::endl;
            break;

           case Men1Button5:
            MODE = "3D Mode";
            std::cout << MODE << std::endl;

            break;
    }
I even dded TEXT("My Text In Here"), TO THE SECCOND PARAMATER OF THE SECCOND CALL OF THIS FUNCTION WITHIN MY CODE.
Topic archived. No new replies allowed.