Click here to Skip to main content
15,939,960 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ping <IP Address> - Monitor Pin
tgprakash27-Jan-05 18:13
tgprakash27-Jan-05 18:13 
GeneralRe: ping <IP Address> - Monitor Pin
Antony M Kancidrowski28-Jan-05 10:13
Antony M Kancidrowski28-Jan-05 10:13 
GeneralRichEditView Pin
Yulianto.26-Jan-05 23:10
Yulianto.26-Jan-05 23:10 
GeneralRe: RichEditView Pin
David Crow27-Jan-05 3:06
David Crow27-Jan-05 3:06 
QuestionHow to add Horizental Scroll in CCheckListBox Control Pin
zahid_ash26-Jan-05 22:41
zahid_ash26-Jan-05 22:41 
AnswerRe: How to add Horizental Scroll in CCheckListBox Control Pin
Ravi Bhavnani27-Jan-05 3:44
professionalRavi Bhavnani27-Jan-05 3:44 
GeneralUsing CArray From Dialog Box Pin
jw8126-Jan-05 22:40
jw8126-Jan-05 22:40 
GeneralRe: Using CArray From Dialog Box Pin
Abyss27-Jan-05 1:48
Abyss27-Jan-05 1:48 
Try the following:

CFrameWnd* pFrame = (CFrameWnd*)AfxGetMainWnd();<br />
CYourView* pView =  (CYourView*)pFrame->GetActiveView();<br />
pView->GetArray()<br />
...


In case of SDI the first call returns the application frame window which contains the active document, view etc. The active view is your current view where your array is implemented. What you need to do is implement a member function GetArray which gives access to your data.;)
However generaly it is not a good idea to have data in CView, use rather CDocument for your data and then access it using pFrame->GetActiveDocument()

CheersRoll eyes | :rolleyes:
GeneralRe: Using CArray From Dialog Box Pin
jw8127-Jan-05 3:00
jw8127-Jan-05 3:00 
GeneralRe: Using CArray From Dialog Box Pin
Abyss27-Jan-05 3:31
Abyss27-Jan-05 3:31 
GeneralRe: Using CArray From Dialog Box Pin
David Crow27-Jan-05 3:13
David Crow27-Jan-05 3:13 
GeneralRe: Using CArray From Dialog Box Pin
jw8127-Jan-05 4:20
jw8127-Jan-05 4:20 
GeneralRe: Using CArray From Dialog Box Pin
David Crow27-Jan-05 4:29
David Crow27-Jan-05 4:29 
GeneralRe: Using CArray From Dialog Box Pin
jw8127-Jan-05 4:58
jw8127-Jan-05 4:58 
GeneralRe: Using CArray From Dialog Box Pin
David Crow27-Jan-05 5:20
David Crow27-Jan-05 5:20 
GeneralRe: Using CArray From Dialog Box Pin
jw8129-Jan-05 18:45
jw8129-Jan-05 18:45 
GeneralRe: Using CArray From Dialog Box Pin
David Crow31-Jan-05 3:12
David Crow31-Jan-05 3:12 
GeneralRe: Using CArray From Dialog Box Pin
jw813-Feb-05 5:01
jw813-Feb-05 5:01 
GeneralRe: Using CArray From Dialog Box Pin
David Crow3-Feb-05 5:37
David Crow3-Feb-05 5:37 
GeneralRe: Using CArray From Dialog Box Pin
jw813-Feb-05 5:40
jw813-Feb-05 5:40 
GeneralRe: Using CArray From Dialog Box Pin
jw8112-Feb-05 3:50
jw8112-Feb-05 3:50 
GeneralHexadecimal Pin
dex_ter1126-Jan-05 22:31
dex_ter1126-Jan-05 22:31 
GeneralRe: Hexadecimal Pin
toxcct26-Jan-05 23:38
toxcct26-Jan-05 23:38 
GeneralCreating xml file in vc++ Pin
imajit26-Jan-05 22:14
imajit26-Jan-05 22:14 
GeneralCreating xml file in vc++ Pin
Anonymous26-Jan-05 22:13
Anonymous26-Jan-05 22: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.