Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

Using Buttons In A Regular Window

How do I use button controls, CButton, in a regular window?
I can get the buttons to appear, but when I click the button
nothing happens, it doesnt animate the click, or send a
button clicked message.
0
amp2112
Asked:
amp2112
1 Solution
 
viktornetCommented:
You need to use its OnClick() event in order to be able to do anything...
0
 
pagladasuCommented:
Create your view as being derived from CFormView.
Use the resource editor to create the buttons and other controls.
Use the classwizard to map the BN_CLICKED event of the buttons to different functions.
Write code for these functions.

0
 
The_BrainCommented:
look at www.codeguru.com   this is a very good site, and there is a topic for just buttons, it is REALLY cool.  
The_Brain
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now