Click here to Skip to main content
15,900,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: basic C struct newbee question Pin
Member 811717127-Jul-11 10:34
Member 811717127-Jul-11 10:34 
GeneralRe: basic C struct newbee question Pin
Albert Holguin27-Jul-11 12:12
professionalAlbert Holguin27-Jul-11 12:12 
AnswerRe: basic C struct newbee question Pin
«_Superman_»27-Jul-11 10:59
professional«_Superman_»27-Jul-11 10:59 
QuestionHow to Validate User's Password Pin
rick222227-Jul-11 7:53
rick222227-Jul-11 7:53 
AnswerRe: How to Validate User's Password Pin
Rajesh R Subramanian27-Jul-11 8:09
professionalRajesh R Subramanian27-Jul-11 8:09 
GeneralRe: How to Validate User's Password Pin
rick222230-Jul-11 4:46
rick222230-Jul-11 4:46 
QuestionHow to create CMFCLinkCtrl hyperlink multiline? Pin
yogish29327-Jul-11 4:44
yogish29327-Jul-11 4:44 
AnswerRe: How to create CMFCLinkCtrl hyperlink multiline? Pin
«_Superman_»27-Jul-11 5:00
professional«_Superman_»27-Jul-11 5:00 
Questionhow to save file name with unicode format??? Pin
shashankacharya26-Jul-11 23:29
shashankacharya26-Jul-11 23:29 
QuestionRe: how to save file name with unicode format??? Pin
Rajesh R Subramanian27-Jul-11 0:06
professionalRajesh R Subramanian27-Jul-11 0:06 
AnswerRe: how to save file name with unicode format??? Pin
shashankacharya27-Jul-11 0:17
shashankacharya27-Jul-11 0:17 
AnswerRe: how to save file name with unicode format??? Pin
Rajesh R Subramanian27-Jul-11 0:22
professionalRajesh R Subramanian27-Jul-11 0:22 
AnswerRe: how to save file name with unicode format??? Pin
«_Superman_»27-Jul-11 4:35
professional«_Superman_»27-Jul-11 4:35 
GeneralRe: how to save file name with unicode format??? Pin
Rajesh R Subramanian27-Jul-11 5:32
professionalRajesh R Subramanian27-Jul-11 5:32 
JokeRe: how to save file name with unicode format??? Pin
«_Superman_»27-Jul-11 7:28
professional«_Superman_»27-Jul-11 7:28 
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 

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.