Click here to Skip to main content
15,896,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question0xC0000417 exception params Pin
Chesnokov Yuriy5-Aug-09 7:29
professionalChesnokov Yuriy5-Aug-09 7:29 
Questionerror connecrting sybase using ex_connect from a vc++ dll Pin
intermediate5-Aug-09 7:14
intermediate5-Aug-09 7:14 
QuestionWriting on Document form Dialog in SDI Pin
kudlaty795-Aug-09 5:56
kudlaty795-Aug-09 5:56 
AnswerRe: Writing on Document form Dialog in SDI Pin
David Crow5-Aug-09 6:04
David Crow5-Aug-09 6:04 
GeneralRe: Writing on Document form Dialog in SDI Pin
kudlaty795-Aug-09 9:15
kudlaty795-Aug-09 9:15 
AnswerRe: Writing on Document form Dialog in SDI Pin
David Crow5-Aug-09 9:22
David Crow5-Aug-09 9:22 
GeneralRe: Writing on Document form Dialog in SDI Pin
kudlaty7929-Aug-09 3:43
kudlaty7929-Aug-09 3:43 
AnswerRe: Writing on Document form Dialog in SDI Pin
David Crow29-Aug-09 16:02
David Crow29-Aug-09 16:02 
Assuming the dialog is modeless, call PostMessage() with some user-defined message and a pointer to some heap-based data (i.e., new) as the LPARAM. Provide a handler for that message in the document class. In that handler, update the document's data with the contents of LPARAM. Then call UpdateAllViews(). In the view' OnUpdate() method, it will get the latest data from the document and render it.

Aside from the dialog, all the rest is just plain MFC stuff.

You can test most of this by creating a sample SDI application. Add a CString member variable to the document and assign it some value. In the view's OnUpdate() method, get access to the document's data by calling GetDocument() plus whatever name you gave the member variable. Now render that data using the supplied DC's TextOut() method.

"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


GeneralNew Project Pin
MrMcIntyre5-Aug-09 5:23
MrMcIntyre5-Aug-09 5:23 
GeneralRe: New Project Pin
Maximilien5-Aug-09 9:44
Maximilien5-Aug-09 9:44 
GeneralRe: New Project Pin
molesworth6-Aug-09 1:49
molesworth6-Aug-09 1:49 
GeneralRe: New Project Pin
MrMcIntyre6-Aug-09 1:59
MrMcIntyre6-Aug-09 1:59 
GeneralRe: New Project [modified] Pin
molesworth6-Aug-09 2:55
molesworth6-Aug-09 2:55 
GeneralRe: New Project Pin
MrMcIntyre6-Aug-09 4:55
MrMcIntyre6-Aug-09 4:55 
GeneralRe: New Project Pin
molesworth6-Aug-09 7:04
molesworth6-Aug-09 7:04 
GeneralRe: New Project Pin
MrMcIntyre6-Aug-09 9:03
MrMcIntyre6-Aug-09 9:03 
GeneralRe: New Project Pin
molesworth6-Aug-09 11:14
molesworth6-Aug-09 11:14 
GeneralRe: New Project Pin
MrMcIntyre7-Aug-09 0:30
MrMcIntyre7-Aug-09 0:30 
GeneralRe: New Project Pin
molesworth7-Aug-09 4:41
molesworth7-Aug-09 4:41 
QuestionView with Larger Dimension Pin
Madhu_Rani5-Aug-09 2:45
Madhu_Rani5-Aug-09 2:45 
QuestionThe new Office2007 Ribbonbar - Are there pushlike checkboxes for it? Pin
sashoalm5-Aug-09 2:01
sashoalm5-Aug-09 2:01 
AnswerRe: The new Office2007 Ribbonbar - Are there pushlike checkboxes for it? Pin
sashoalm5-Aug-09 4:39
sashoalm5-Aug-09 4:39 
QuestionRe: The new Office2007 Ribbonbar - Are there pushlike checkboxes for it? Pin
AksharRoop11-Jun-10 3:13
AksharRoop11-Jun-10 3:13 
Questiondisabling finish button on property sheet wizard Pin
si_695-Aug-09 0:04
si_695-Aug-09 0:04 
AnswerRe: disabling finish button on property sheet wizard Pin
_AnsHUMAN_ 5-Aug-09 0:13
_AnsHUMAN_ 5-Aug-09 0:13 

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.