Solved

Handling OnOK and OnCancel in a FormView

Posted on 1998-11-07
1
298 Views
Last Modified: 2013-11-20
I have a formview that has OK and CANCEL buttons on it.  I understand these aren't handled automatically in a formview like they are in a dialog.  I've added handlers for them with ClassWizard, but they aren't getting hit.  What do you have to do special here?
0
Comment
Question by:appleby
1 Comment
 
LVL 1

Accepted Solution

by:
TheGrinch earned 50 total points
ID: 1324335
Change the resource IDs of the buttons from IDOK and IDCANCEL to something else, like IDC_CANCEL and IDC_OK, and add new handlers.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

760 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

19 Experts available now in Live!

Get 1:1 Help Now