Click here to Skip to main content
15,905,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: convert from 'std::string' to 'const char *' Pin
User 665827-Jan-05 1:37
User 665827-Jan-05 1:37 
QuestionHow to get the pixel value of the loaded image(jpg, bmp) Pin
tttyip27-Jan-05 0:32
tttyip27-Jan-05 0:32 
AnswerRe: How to get the pixel value of the loaded image(jpg, bmp) Pin
V.27-Jan-05 1:08
professionalV.27-Jan-05 1:08 
AnswerRe: How to get the pixel value of the loaded image(jpg, bmp) Pin
Chris Losinger27-Jan-05 5:42
professionalChris Losinger27-Jan-05 5:42 
GeneralGET WINDOW PROPERTIES Pin
kedar.dave27-Jan-05 0:18
kedar.dave27-Jan-05 0:18 
GeneralRe: GET WINDOW PROPERTIES Pin
RicoH27-Jan-05 0:36
RicoH27-Jan-05 0:36 
Generalsend file Pin
javad_200527-Jan-05 0:13
javad_200527-Jan-05 0:13 
GeneralRe: send file Pin
22491727-Jan-05 1:36
22491727-Jan-05 1:36 
GeneralRe: send file Pin
ThatsAlok27-Jan-05 19:05
ThatsAlok27-Jan-05 19:05 
GeneralHandle to other window Pin
pc_dev26-Jan-05 23:55
pc_dev26-Jan-05 23:55 
GeneralRe: Handle to other window Pin
kedar.dave27-Jan-05 0:10
kedar.dave27-Jan-05 0:10 
GeneralRe: Handle to other window Pin
pc_dev27-Jan-05 16:20
pc_dev27-Jan-05 16:20 
GeneralRe: Handle to other window Pin
22491727-Jan-05 0:35
22491727-Jan-05 0:35 
GeneralRe: Handle to other window Pin
pc_dev27-Jan-05 16:21
pc_dev27-Jan-05 16:21 
Generalping <IP Address> - Monitor Pin
tgprakash26-Jan-05 23:31
tgprakash26-Jan-05 23:31 
GeneralRe: ping <IP Address> - Monitor Pin
22491727-Jan-05 0:44
22491727-Jan-05 0:44 
GeneralRe: ping <IP Address> - Monitor Pin
Antony M Kancidrowski27-Jan-05 1:02
Antony M Kancidrowski27-Jan-05 1:02 
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:

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.