0

Hey, I am trying to make a program where when you click on a button, the button will open a new window and on that new window has different buttons you can click on. I use DEV-C++. Any solutions?

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by thecoolman5
0

Yeah. I have read that that tutorial. Here I will give you an example of the code. I started a new windows application project.

switch (message)

                   case WM_CREATE:
                       
                         CreateWindow( TEXT(" button"), TEXT("my ten questions"),
                         WM_VISIBLE | WM_CHILD,
                         10, 10, 80, 25,
                          hwnd, (HMENU) 1, NULL, NULL); 
                          
                           break;

                           case WM_COMMAND:

                            if(LOWORD(wParam) == 1)
                            {
                                    // here is where I would create my new window with my new buttons
                             }

All I need is the code to be able to create a new window when you click on the buttons.
Thanks.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.