Click here to Skip to main content
15,892,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralInconsistency behaviour of APIs - Help me Pin
MaharajM29-Dec-04 23:07
MaharajM29-Dec-04 23:07 
GeneralRe: Inconsistency behaviour of APIs - Help me Pin
David Crow30-Dec-04 3:06
David Crow30-Dec-04 3:06 
Generalsending midi thru usb!!!!!anyone plz help!!!! Pin
namaskaaram29-Dec-04 21:10
namaskaaram29-Dec-04 21:10 
Questionimporting third party library? Pin
Maverick29-Dec-04 20:31
Maverick29-Dec-04 20:31 
AnswerRe: importing third party library? Pin
Maverick29-Dec-04 21:01
Maverick29-Dec-04 21:01 
GeneralWindows service Pin
hou_12629-Dec-04 18:53
hou_12629-Dec-04 18:53 
GeneralRe: Windows service Pin
Joel Holdsworth30-Dec-04 1:50
Joel Holdsworth30-Dec-04 1:50 
GeneralA question about GetDlgItem Pin
IsaacLitingjun29-Dec-04 16:20
IsaacLitingjun29-Dec-04 16:20 
Hi,Everyone:

i create a project CFormView as its base class. i add "List Control" in the Mainform, and i use the "List Control" with code below:

-----------------------------------------------------------------------
class CvcydcjView : public CFormView

void CvcydcjView::OnInitialUpdate()
{
...
CListCtrl* pList = (CListCtrl*) GetDlgItem( IDC_LIST_MEM);
pList->InsertColumn(0, "TestColumn", LVCFMT_CENTER,40);
...
}
-----------------------------------------------------------------------


now i want to use the control in my other class, obviously i can't use that code to get the DlgItem, can anyone help me to solve the problem? -- use the Mainform Control in other class.

Thank you so much!


- - - - - - - - - - - - - - - - - - - - - - - - - -
Many nights we prayed with no proof anyone could hear, we were moving moutains long before we knew we could !
Yet now i'm standing here, although we know there's much to fear, hope seems like summer bird too swiftly flown away ...

There can be miracles! When you believe, though hope is frail, it's hard to kill !
Who knows what miracles, you can achieve! When you believe, somehow you will ...

YOU WILL WHEN YOU BELIEVE

GeneralRe: A question about GetDlgItem Pin
Rahim Rattani29-Dec-04 19:21
Rahim Rattani29-Dec-04 19:21 
GeneralRe: A question about GetDlgItem Pin
IsaacLitingjun29-Dec-04 20:23
IsaacLitingjun29-Dec-04 20:23 
GeneralRe: A question about GetDlgItem Pin
Rahim Rattani29-Dec-04 20:54
Rahim Rattani29-Dec-04 20:54 
GeneralRe: A question about GetDlgItem Pin
IsaacLitingjun29-Dec-04 21:26
IsaacLitingjun29-Dec-04 21:26 
GeneralRe: A question about GetDlgItem Pin
Rahim Rattani30-Dec-04 17:56
Rahim Rattani30-Dec-04 17:56 
Generali'm so ashamed! ... Pin
IsaacLitingjun30-Dec-04 18:25
IsaacLitingjun30-Dec-04 18:25 
GeneralAnd Learn this! ^.^ Pin
IsaacLitingjun29-Dec-04 20:47
IsaacLitingjun29-Dec-04 20:47 
GeneralThanks a billion !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Pin
IsaacLitingjun30-Dec-04 18:35
IsaacLitingjun30-Dec-04 18:35 
GeneralThank you Thank you! ^.^ Pin
IsaacLitingjun30-Dec-04 18:40
IsaacLitingjun30-Dec-04 18:40 
GeneralSth. wrong with thread Pin
IsaacLitingjun6-Jan-05 16:27
IsaacLitingjun6-Jan-05 16:27 
GeneralRe: Sth. wrong with thread Pin
Rahim Rattani6-Jan-05 17:10
Rahim Rattani6-Jan-05 17:10 
GeneralRe: Sth. wrong with thread Pin
IsaacLitingjun6-Jan-05 18:41
IsaacLitingjun6-Jan-05 18:41 
GeneralRe: Sth. wrong with thread Pin
Rahim Rattani6-Jan-05 18:50
Rahim Rattani6-Jan-05 18:50 
GeneralI'm really so lucky!! Pin
IsaacLitingjun6-Jan-05 19:13
IsaacLitingjun6-Jan-05 19:13 
GeneralProblem solved, thx! Pin
IsaacLitingjun8-Jan-05 16:05
IsaacLitingjun8-Jan-05 16:05 
GeneralUsing this can solve that problem Pin
IsaacLitingjun6-Jan-05 18:50
IsaacLitingjun6-Jan-05 18:50 
GeneralRe: A question about GetDlgItem Pin
V.29-Dec-04 21:07
professionalV.29-Dec-04 21:07 

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.