Solved

Using Buttons In A Regular Window

Posted on 1998-12-25
3
197 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

757 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now