Solved

Using Buttons In A Regular Window

Posted on 1998-12-25
3
205 Views
Last Modified: 2013-11-20
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
Comment
Question by:amp2112
3 Comments
 
LVL 10

Accepted Solution

by:
viktornet earned 50 total points
ID: 1326724
You need to use its OnClick() event in order to be able to do anything...
0
 
LVL 4

Expert Comment

by:pagladasu
ID: 1326725
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
 
LVL 1

Expert Comment

by:The_Brain
ID: 1326726
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hibernate methods 2 72
FizzBuzz challenge 9 81
fix34  challenge 9 122
Modbus - whats the maximum I can store in one register? 4 80
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question