WinApi C ++ How to open a window by clicking a button?

I created a "check box" with a button, when the button is clicked it should open the "Edit" window, how can I do that?

thank

-2


source to share


3 answers


This depends entirely on the windowing system or graphics library you are using. Are you using .NET? ¿MFC?



Either way, your button object will have a way to bind a function to the click event. Just write a function that does what you want (in this case, open the Edit window), bind that function to your button's click event, and you're good to go.

+1


source


Make your edit window hidden by default in the resource editor and show it with ShowWindow (hEditWnd, SW_SHOW) on button click.



+1


source


You can create a new window and show it on the click event

0


source







All Articles