Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Listen a port using CSocket class ?? Pin
Cris14-Aug-02 7:21
Cris14-Aug-02 7:21 
GeneralRe: Listen a port using CSocket class ?? Pin
User 665814-Aug-02 7:50
User 665814-Aug-02 7:50 
GeneralRe: Listen a port using CSocket class ?? Pin
Cris14-Aug-02 9:20
Cris14-Aug-02 9:20 
GeneralRe: Listen a port using CSocket class ?? Pin
User 665814-Aug-02 9:46
User 665814-Aug-02 9:46 
GeneralRe: Listen a port using CSocket class ?? Pin
Cris14-Aug-02 10:21
Cris14-Aug-02 10:21 
QuestionListbox, how to make only full items visible? Pin
Anonymous14-Aug-02 4:21
Anonymous14-Aug-02 4:21 
AnswerRe: Listbox, how to make only full items visible? Pin
Anonymous14-Aug-02 15:54
Anonymous14-Aug-02 15:54 
GeneralDirection with MDI's Pin
NickOne14-Aug-02 3:58
NickOne14-Aug-02 3:58 
Hello guys,

I have a question in reagrds to MDIs. I have a MDI application that has 2 different CMDIChildWnd classes. I need both of these classes to be able to access the same variables in the MyDoc or MyView class.

This is what I do know.
I know that if I want to access a variable from the Doc or View class from the default MDI application CMDIChildWnd class (ChildFrm.cpp), then to access these variables I can use GetActiveDocument or GetActiveView.

Here is my problem.
When I open a new window from the CMDIChildWnd class that I added into my project (MyCMDIChildWnd), then it becomes the current Doc/View. So if I use GetActiveDocument on this, I get a return value of NULL.

What I want to do then is to access the variables that the 1st CMDIChildWnd class (ChildFrm) with the second CMDIChildWnd class (MyCMDICHildWnd). How can I do this?

I was thinking that maybe if I assigned a number to each of the windows, then I could always say, "Access the information in ChildFrm, which is window number 1"
Is there a way to enumerate the open windows? Or to access information that the first window opened?


Thanks a whole lot,

NickOne

p.s. If I wrote this all wordy or too confusing, just yell at me and I'll try to rephrase. I am really stuck with this and I want to solve my problem, so any driection or advice could help.Smile | :)
GeneralRe: Direction with MDI's Pin
Steen Krogsgaard15-Aug-02 4:05
Steen Krogsgaard15-Aug-02 4:05 
General2 Qs. (MFC basic level) Pin
RalfPeter14-Aug-02 3:56
RalfPeter14-Aug-02 3:56 
GeneralRe: 2 Qs. (MFC basic level) Pin
567890123414-Aug-02 4:47
567890123414-Aug-02 4:47 
GeneralRe: 2 Qs. (MFC basic level) Pin
Roman Fadeyev14-Aug-02 5:09
Roman Fadeyev14-Aug-02 5:09 
GeneralFormatting Large doubles Pin
gm_coll14-Aug-02 3:46
gm_coll14-Aug-02 3:46 
GeneralRe: Formatting Large doubles Pin
Tomasz Sowinski14-Aug-02 4:21
Tomasz Sowinski14-Aug-02 4:21 
GeneralVector Question Pin
Nick Parker14-Aug-02 3:38
protectorNick Parker14-Aug-02 3:38 
GeneralRe: Vector Question Pin
Shog914-Aug-02 3:46
sitebuilderShog914-Aug-02 3:46 
GeneralRe: Vector Question Pin
Nick Parker14-Aug-02 3:46
protectorNick Parker14-Aug-02 3:46 
GeneralRe: Vector Question Pin
Brian Delahunty14-Aug-02 3:45
Brian Delahunty14-Aug-02 3:45 
GeneralRe: Vector Question Pin
Nick Parker14-Aug-02 3:46
protectorNick Parker14-Aug-02 3:46 
GeneralRe: Vector Question Pin
Tomasz Sowinski14-Aug-02 4:24
Tomasz Sowinski14-Aug-02 4:24 
GeneralRe: Vector Question Pin
Brian Delahunty15-Aug-02 21:52
Brian Delahunty15-Aug-02 21:52 
Questionwhat path format does CFileDialog return? C:\ or C:\\? Pin
ns14-Aug-02 3:31
ns14-Aug-02 3:31 
AnswerRe: what path format does CFileDialog return? C:\ or C:\\? Pin
Nish Nishant14-Aug-02 3:35
sitebuilderNish Nishant14-Aug-02 3:35 
GeneralRe: what path format does CFileDialog return? C:\ or C:\\? Pin
ns14-Aug-02 3:59
ns14-Aug-02 3:59 
GeneralRe: what path format does CFileDialog return? C:\ or C:\\? Pin
Nish Nishant14-Aug-02 4:05
sitebuilderNish Nishant14-Aug-02 4:05 

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.