Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error Pin
radhika2826-Oct-06 22:41
radhika2826-Oct-06 22:41 
GeneralRe: error Pin
Hamid_RT27-Oct-06 8:09
Hamid_RT27-Oct-06 8:09 
QuestionArray Question Pin
Programm3r26-Oct-06 20:20
Programm3r26-Oct-06 20:20 
AnswerRe: Array Question Pin
User 58385226-Oct-06 20:32
User 58385226-Oct-06 20:32 
GeneralRe: Array Question Pin
Programm3r26-Oct-06 20:36
Programm3r26-Oct-06 20:36 
GeneralRe: Array Question Pin
User 58385226-Oct-06 20:45
User 58385226-Oct-06 20:45 
GeneralRe: Array Question Pin
Programm3r26-Oct-06 20:48
Programm3r26-Oct-06 20:48 
QuestionSetFocus problem Pin
prithaa26-Oct-06 19:03
prithaa26-Oct-06 19:03 
Hi,

The SetFocus() method of CWnd class works fine if the edit box is made on the window using the this pointer which is the current new window.
But SetFocus() method doesn't work if the edit box is made on a new window which is created using the following

AfxGetMainWnd()->SendMessage(WM_COMMAND, ID_FILE_NEW);
CMDIFrameWnd *pFrame =
(CMDIFrameWnd*)AfxGetApp()->m_pMainWnd;
CMDIChildWnd *pChild =
(CMDIChildWnd *) pFrame->GetActiveFrame();
CView *pView = (CView *)
pChild->GetActiveView();

CRichEditCtrl *r1 = new CRichEditCtrl;
r1->Create(WS_CHILD|WS_VISIBLE|ES_AUTOVSCROLL,
CRect(x1,y1,x2,y2), p, 1);

if p= this pointer then SetFocus() works but if
p=pView the SetFocus() doesn't work

Prithaa

AnswerRe: SetFocus problem Pin
Archyami26-Oct-06 22:15
Archyami26-Oct-06 22:15 
QuestionAccessing GetInvocationList method in event Pin
engsrini26-Oct-06 18:45
engsrini26-Oct-06 18:45 
Questionhow to format my xml file? Pin
sharkmouse26-Oct-06 17:51
sharkmouse26-Oct-06 17:51 
AnswerRe: how to format my xml file? Pin
Captain See Sharp26-Oct-06 18:10
Captain See Sharp26-Oct-06 18:10 
AnswerRe: how to format my xml file? Pin
sharkmouse26-Oct-06 18:35
sharkmouse26-Oct-06 18:35 
GeneralRe: how to format my xml file? Pin
User 58385226-Oct-06 20:30
User 58385226-Oct-06 20:30 
AnswerRe: how to format my xml file? Pin
kakan26-Oct-06 20:53
professionalkakan26-Oct-06 20:53 
AnswerRe: how to format my xml file? Pin
ThatsAlok28-Oct-06 1:43
ThatsAlok28-Oct-06 1:43 
GeneralRe: how to format my xml file? Pin
sharkmouse2-Nov-06 21:26
sharkmouse2-Nov-06 21:26 
QuestionHow to get all the flash's url from IHTMLDoument? Pin
314159265326-Oct-06 17:36
314159265326-Oct-06 17:36 
AnswerRe: How to get all the flash's url from IHTMLDoument? Pin
ThatsAlok28-Oct-06 1:30
ThatsAlok28-Oct-06 1:30 
AnswerRe: How to get all the flash's url from IHTMLDoument? Pin
ThatsAlok28-Oct-06 1:30
ThatsAlok28-Oct-06 1:30 
Question.Net Windows App installation Pin
vinkprasad26-Oct-06 16:31
vinkprasad26-Oct-06 16:31 
AnswerRe: .Net Windows App installation Pin
Lord Kixdemp27-Oct-06 8:21
Lord Kixdemp27-Oct-06 8:21 
Questioncapture stdout and stderr of cmd.exe concurrently? [modified] Pin
queshaw26-Oct-06 13:46
queshaw26-Oct-06 13:46 
QuestionDo I use wrong directshow includes? Pin
Talemin26-Oct-06 11:48
Talemin26-Oct-06 11:48 
AnswerRe: Do I use wrong directshow includes? Pin
Mark Salsbery26-Oct-06 15:21
Mark Salsbery26-Oct-06 15:21 

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.