Windows.h C++ Tutorial 4: Preforming Button Actions

preview_player
Показать описание
This video is somewhat an extension of tutorial 3, which explained how to create a button. In this video, I will show you how to actually make that button run a segment of code when clicked.

If you have any questions please feel free to comment below and I will do my best to help you. I hope you enjoyed the video.
Рекомендации по теме
Комментарии
Автор

Thanks Ryan...for your good work. It's most helpful to be guided by a excellent instructor.

coyote
Автор

Greats tuts dude, finally something on the topic i want to explore without extra strangles. Thanks n respect.

gkSi
Автор

next video about how to create menu bar ...

kyawsanaung
Автор

Hello, all the five videos you made helped out a lot!
I want to make a button where if you press it, a completely new window will show up...
can you tell me how? 

研二-cg
Автор

Excellent tutorial. I'm having some issues assigning actions to some buttons What I'm trying to do is put my window (executable) in a folder with a bunch of other files, and open a specific file when clicking a specific button.

cesariushervelazco
Автор

Thank you so much! These videos are great for starting with win32 api

Daywalkr
Автор

Thanks Ryan ... What are the functions used for windows.h? I will be happy if you help. Çok iyi ingilizce bilmiyorum . Kusurum olursa affola. Teşekkürler...

nergulacar
Автор

hi sir your tutorials are greate i would like to learn more of win32 gui please continue your good work :)

vineedcool
Автор

Thanks for a great series of videos!!!

kevinjohnson
Автор

hi, I'm trying to make a simple calculator, but i face a problem on how to function the "Calculate"button that when the user click it run the math operation that user chose from the menu.

abdulwahabahmed
Автор

@ken minominogo im actually looking to do that in one of my own programs atm (its a side project, progress has been slow) ill get back to you in the event I get it working... If you don't want to wait the easiest fix I find is to just redraw the existing window as needed (let the user toggle back and forth), deleting the elements of the old window each time. You can also resize the window programmatically (SetWindowPos() will allow you to do that)

RyanShanks
Автор

Thank you, really usefull.. but I have a big deal, I need to create another window when I clicked on the botton and so, I wanted to know if this is possible because.. I copied everything into the case 1 of command window and that actually did create the different bottons and things I wanted BUT over the already existing window... so what can I do? is it possible to make another window  without delating the existing one???

sebastian
Автор

It is hard to write a program that clicks a button in another (commercial) program?

namey
Автор

Do we need to create a handle for every new button like HWND button2; HWND button3; etc?

EtemBavarian
Автор

Excellent bro this tutorials helped me a lot! Thanks!

stanchannelu
Автор

Can you tell me why the handle must be declared at Global Variables section?
I tried to declare it in the while loop. The compiler complains initialization of [variable] is skipped by 'case' label

HoyCheung
Автор

Firstly, thanks for the video. My question is when a window pops up and i click ok, the window having button also get closed. What did i miss?

ashishsenapati
Автор

what were you doing with wParam? What would go in place of that in my own code?

martinmiglio
Автор

yes please continue with gui, ,,i want to learn more of

vineedcool
Автор

awesome tutorial, thank you so much !

zoroC_howto