Click here to Skip to main content
15,877,574 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionManaging PushButton notifications under MFC Pin
tiwal26-Jul-11 23:01
tiwal26-Jul-11 23:01 
AnswerRe: Managing PushButton notifications under MFC Pin
Richard MacCutchan26-Jul-11 23:11
mveRichard MacCutchan26-Jul-11 23:11 
GeneralRe: Managing PushButton notifications under MFC Pin
tiwal26-Jul-11 23:37
tiwal26-Jul-11 23:37 
GeneralRe: Managing PushButton notifications under MFC Pin
Richard MacCutchan26-Jul-11 23:43
mveRichard MacCutchan26-Jul-11 23:43 
GeneralRe: Managing PushButton notifications under MFC Pin
tiwal26-Jul-11 23:56
tiwal26-Jul-11 23:56 
GeneralRe: Managing PushButton notifications under MFC Pin
Richard MacCutchan27-Jul-11 2:39
mveRichard MacCutchan27-Jul-11 2:39 
GeneralRe: Managing PushButton notifications under MFC Pin
tiwal27-Jul-11 3:07
tiwal27-Jul-11 3:07 
GeneralRe: Managing PushButton notifications under MFC Pin
Richard MacCutchan27-Jul-11 3:19
mveRichard MacCutchan27-Jul-11 3:19 
tiwal wrote:
I was convinced that the only source code I should put my hands on was the xxxApp class

No, that's probably the one class that you won't need to change very much. The majority of actual work in your application will be done, first in the CDocument class, which handles the data that you are to process, and second in your CView class where your data will be presented to the user. Outside these two classes there is only a small bit of administration to link things together.

tiwal wrote:
creating the Push Button in the OnDraw () message handler of the View class

I don't think so! The OnDraw() handler should only be concerned with rendering your data onto the view for the user to read. If you need to have a button on your view then you should make it a member of your view class and create it in the OnCreate() function of the view class.

It is probably worth looking for some introductory MFC articles to get a feel for how these classes fit together, and what each should do during the life of the application.
The best things in life are not things.

GeneralRe: Managing PushButton notifications under MFC Pin
tiwal27-Jul-11 3:23
tiwal27-Jul-11 3:23 
GeneralRe: Managing PushButton notifications under MFC Pin
Richard MacCutchan27-Jul-11 3:29
mveRichard MacCutchan27-Jul-11 3:29 
AnswerRe: Managing PushButton notifications under MFC Pin
Madhu Nair26-Jul-11 23:35
Madhu Nair26-Jul-11 23:35 
GeneralRe: Managing PushButton notifications under MFC [modified] Pin
tiwal26-Jul-11 23:46
tiwal26-Jul-11 23:46 
QuestionHow to compile a file using unicode charset Pin
Cold_Fearing_Bird26-Jul-11 21:50
Cold_Fearing_Bird26-Jul-11 21:50 
AnswerRe: How to compile a file using unicode charset Pin
Madhu Nair26-Jul-11 22:01
Madhu Nair26-Jul-11 22:01 
QuestionDelete doesn't ^delete^ a reference? Pin
Dean Seo25-Jul-11 20:58
Dean Seo25-Jul-11 20:58 
AnswerRe: Delete doesn't ^delete^ a reference? Pin
Richard MacCutchan25-Jul-11 21:24
mveRichard MacCutchan25-Jul-11 21:24 
GeneralRe: Delete doesn't ^delete^ a reference? Pin
Dean Seo26-Jul-11 14:11
Dean Seo26-Jul-11 14:11 
AnswerRe: Delete doesn't ^delete^ a reference? Pin
Chris Losinger26-Jul-11 1:45
professionalChris Losinger26-Jul-11 1:45 
GeneralRe: Delete doesn't ^delete^ a reference? Pin
Dean Seo26-Jul-11 14:10
Dean Seo26-Jul-11 14:10 
AnswerRe: Delete doesn't ^delete^ a reference? Pin
jschell26-Jul-11 9:48
jschell26-Jul-11 9:48 
GeneralRe: Delete doesn't ^delete^ a reference? Pin
Dean Seo26-Jul-11 14:09
Dean Seo26-Jul-11 14:09 
AnswerRe: Delete doesn't ^delete^ a reference? Pin
Stefan_Lang27-Jul-11 3:00
Stefan_Lang27-Jul-11 3:00 
GeneralRe: Delete doesn't ^delete^ a reference? Pin
jschell27-Jul-11 12:32
jschell27-Jul-11 12:32 
QuestionWorking with XML file in MFC Dialog based application? Pin
Le@rner25-Jul-11 20:27
Le@rner25-Jul-11 20:27 
AnswerRe: Working with XML file in MFC Dialog based application? Pin
Rajesh R Subramanian25-Jul-11 20:31
professionalRajesh R Subramanian25-Jul-11 20:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.