Click here to Skip to main content
15,935,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
David Crow2-Aug-07 10:44
David Crow2-Aug-07 10:44 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
Sternocera2-Aug-07 22:13
Sternocera2-Aug-07 22:13 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
David Crow3-Aug-07 2:43
David Crow3-Aug-07 2:43 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
Sternocera2-Aug-07 22:24
Sternocera2-Aug-07 22:24 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
David Crow3-Aug-07 2:45
David Crow3-Aug-07 2:45 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
Sternocera3-Aug-07 2:46
Sternocera3-Aug-07 2:46 
GeneralRe: MFC: CListCtrl derived class, "creportctrl" tutorial problem Pin
Haroon Sarwar2-Aug-07 18:26
Haroon Sarwar2-Aug-07 18:26 
QuestionGet controlls of a dialog if handle is known? Pin
robshere2-Aug-07 4:52
robshere2-Aug-07 4:52 
Hai All,

Can anybody please expalin me a way.I'm having a handle value(say hnd) to a dialog.I want to acess the controlls of that dialog (say edit control).I know the ID (say IDD1)of the controll also.But when I'm using the ::GetDlItem(hnd,IDD1) it is showing unreferenced memory.

MyCode is like this

hnd=::GetForegroundWindow();
HWND hWnd = ::GetDlgItem(hnd, IDD1);
CEdit* pEdit = (CEdit*)CWnd::FromHandle(hWnd);
pEdit->SetWindowText("HELLO");

My intenetion is to change the text of the edit controll(IDD1).

Thanks in advance
Robs here
AnswerRe: Get controlls of a dialog if handle is known? Pin
Hamid_RT2-Aug-07 5:05
Hamid_RT2-Aug-07 5:05 
QuestionRe: Get controlls of a dialog if handle is known? Pin
David Crow2-Aug-07 5:18
David Crow2-Aug-07 5:18 
QuestionDisplay detection Pin
Trollslayer2-Aug-07 3:55
mentorTrollslayer2-Aug-07 3:55 
AnswerRe: Display detection Pin
Randor 2-Aug-07 7:58
professional Randor 2-Aug-07 7:58 
Questionhow to write a program that would swap the left and right audio channel Pin
rajneshmalik2-Aug-07 3:45
rajneshmalik2-Aug-07 3:45 
AnswerRe: how to write a program that would swap the left and right audio channel Pin
Russell'2-Aug-07 4:02
Russell'2-Aug-07 4:02 
QuestionCFileDialog how to select file Pin
Romiks2-Aug-07 3:17
Romiks2-Aug-07 3:17 
AnswerRe: CFileDialog how to select file Pin
Hamid_RT2-Aug-07 3:51
Hamid_RT2-Aug-07 3:51 
QuestionRe: CFileDialog how to select file Pin
David Crow2-Aug-07 3:51
David Crow2-Aug-07 3:51 
AnswerRe: CFileDialog how to select file Pin
gvisgr83-Aug-07 0:19
gvisgr83-Aug-07 0:19 
QuestionRe: Rewriting from vb.net to VC++(VS2005) Pin
David Crow2-Aug-07 2:55
David Crow2-Aug-07 2:55 
AnswerRe: Rewriting from vb.net to VC++(VS2005) Pin
Rivezle2-Aug-07 2:59
Rivezle2-Aug-07 2:59 
GeneralRe: Rewriting from vb.net to VC++(VS2005) Pin
David Crow2-Aug-07 3:03
David Crow2-Aug-07 3:03 
QuestionRe: Rewriting from vb.net to VC++(VS2005) Pin
Hamid_RT2-Aug-07 3:55
Hamid_RT2-Aug-07 3:55 
AnswerRe: Rewriting from vb.net to VC++(VS2005) Pin
Rivezle2-Aug-07 4:07
Rivezle2-Aug-07 4:07 
QuestionWhy functions _cexit, _c_exit, exit and _exit do not work in debug mode? Pin
Arris742-Aug-07 2:43
Arris742-Aug-07 2:43 
QuestionRe: Why functions _cexit, _c_exit, exit and _exit do not work in debug mode? Pin
Mark Salsbery2-Aug-07 7:36
Mark Salsbery2-Aug-07 7:36 

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.