Click here to Skip to main content
15,909,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTab Control (CPropertySheet) Pin
Anonymous1-Feb-04 7:19
Anonymous1-Feb-04 7:19 
GeneralRe: Tab Control (CPropertySheet) Pin
Michael P Butler1-Feb-04 7:57
Michael P Butler1-Feb-04 7:57 
GeneralRe: Tab Control (CPropertySheet) Pin
solostar***2-Feb-04 13:34
solostar***2-Feb-04 13:34 
GeneralBitmaps Pin
Dennis L1-Feb-04 6:35
Dennis L1-Feb-04 6:35 
GeneralRe: Bitmaps Pin
peterchen1-Feb-04 6:43
peterchen1-Feb-04 6:43 
GeneralHTTP URL get Pin
pmasknguyen1-Feb-04 6:32
pmasknguyen1-Feb-04 6:32 
GeneralSerializing Visual C++ 6 Pro Pin
wancopr1-Feb-04 6:24
wancopr1-Feb-04 6:24 
QuestionHow I Can use 1 document which can be accessed by multiple views in SDI app. Pin
crazymubashir1-Feb-04 5:25
crazymubashir1-Feb-04 5:25 
Hi There,
I want to know how I can support multiple ‘FormViews’ by having a single ‘Document’ class in my ‘SDI’ Application. The class which ‘MFC Wizard’ makes it for us supports the document. But the additional ‘FormViews’ which I put in doesn’t have access to the ‘Documents’ variables.

The code which I tried my self are as follows:

These are the additional or the ‘Nth’ classes

Class CSection : public CFormView
{

};

void CSection:: OnInitUpdate(void)
{
CMyDoc* pDoc = (CMyDoc*) GetDocument();
This code works in an SDI application in which classes are derived from ‘CRecordView’.
}

void CCourse:: OnInitUpdate(void)
{
CMyDoc* pDoc = reinterpret_cast<cmydoc*> (GetDocument());
}
AnswerRe: How I Can use 1 document which can be accessed by multiple views in SDI app. Pin
Michael P Butler1-Feb-04 8:12
Michael P Butler1-Feb-04 8:12 
GeneralAnimation picture Pin
Member 6488281-Feb-04 5:12
Member 6488281-Feb-04 5:12 
GeneralValues from a list of data Pin
Goh Hui Beng1-Feb-04 4:33
Goh Hui Beng1-Feb-04 4:33 
GeneralRe: Values from a list of data Pin
valikac1-Feb-04 5:12
valikac1-Feb-04 5:12 
GeneralRe: Values from a list of data Pin
Goh Hui Beng1-Feb-04 5:21
Goh Hui Beng1-Feb-04 5:21 
GeneralRe: Values from a list of data Pin
Ian Darling1-Feb-04 5:55
Ian Darling1-Feb-04 5:55 
GeneralRe: Values from a list of data Pin
Goh Hui Beng1-Feb-04 14:44
Goh Hui Beng1-Feb-04 14:44 
GeneralGetting a pixel color from a JPG image Pin
__Cerb1-Feb-04 3:58
__Cerb1-Feb-04 3:58 
GeneralRe: Getting a pixel color from a JPG image Pin
RicoH2-Feb-04 1:00
RicoH2-Feb-04 1:00 
Questioncan someone write a simple programm for me it should just take a minute Pin
jaapdeboer1-Feb-04 1:26
jaapdeboer1-Feb-04 1:26 
AnswerRe: can someone write a simple programm for me it should just take a minute Pin
Diddy1-Feb-04 1:40
Diddy1-Feb-04 1:40 
GeneralRe: can someone write a simple programm for me it should just take a minute Pin
jaapdeboer1-Feb-04 1:49
jaapdeboer1-Feb-04 1:49 
GeneralRe: can someone write a simple programm for me it should just take a minute Pin
Michael P Butler1-Feb-04 2:36
Michael P Butler1-Feb-04 2:36 
GeneralRe: can someone write a simple programm for me it should just take a minute Pin
Diddy1-Feb-04 7:56
Diddy1-Feb-04 7:56 
GeneralRe: can someone write a simple programm for me it should just take a minute Pin
jaapdeboer1-Feb-04 8:31
jaapdeboer1-Feb-04 8:31 
GeneralRe: can someone write a simple programm for me it should just take a minute Pin
Dev5781-Feb-04 9:02
Dev5781-Feb-04 9:02 
GeneralRe: can someone write a simple programm for me it should just take a minute Pin
Diddy1-Feb-04 9:17
Diddy1-Feb-04 9:17 

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.