Click here to Skip to main content
15,893,337 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Write a COM object used by asp app the first time, need help Pin
Ju@ncho11-Sep-08 3:00
Ju@ncho11-Sep-08 3:00 
GeneralRe: Write a COM object used by asp app the first time, need help Pin
followait11-Sep-08 3:36
followait11-Sep-08 3:36 
GeneralRe: Write a COM object used by asp app the first time, need help Pin
SandipG 11-Sep-08 3:47
SandipG 11-Sep-08 3:47 
GeneralRe: Write a COM object used by asp app the first time, need help Pin
followait11-Sep-08 15:06
followait11-Sep-08 15:06 
QuestionHow to implement visual componenets relations Pin
reza matinnejad11-Sep-08 2:04
reza matinnejad11-Sep-08 2:04 
QuestionDetermine the CRichEditCtrl which holds the focus Pin
SutterA11-Sep-08 1:46
SutterA11-Sep-08 1:46 
AnswerRe: Determine the CRichEditCtrl which holds the focus Pin
SandipG 11-Sep-08 1:53
SandipG 11-Sep-08 1:53 
GeneralRe: Determine the CRichEditCtrl which holds the focus Pin
SutterA11-Sep-08 2:09
SutterA11-Sep-08 2:09 
Hi Sandip,

I tried this already, I compared GetFocus() with GetDlgItem('ID'), but it didn't work. They returned two different handles...

For 'ID' I inserted the number I used to create the CRichEditCtrl. Perhaps this is the problem?!

CRichEditCtrl *pRichEdit = new CRichEditCtrl;
		
// here I calculated the size (rectRichEdit)

pRichEdit->Create(WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_HSCROLL| 
      ES_MULTILINE | ES_READONLY, rectRichEdit, this, 2000+i);
m_oaAllRichEditCtrl.Add(pRichEdit);


Greetings
GeneralRe: Determine the CRichEditCtrl which holds the focus [modified] Pin
SandipG 11-Sep-08 2:44
SandipG 11-Sep-08 2:44 
GeneralRe: Determine the CRichEditCtrl which holds the focus Pin
SutterA11-Sep-08 3:06
SutterA11-Sep-08 3:06 
GeneralRe: Determine the CRichEditCtrl which holds the focus Pin
SandipG 11-Sep-08 3:10
SandipG 11-Sep-08 3:10 
GeneralRe: Determine the CRichEditCtrl which holds the focus Pin
SutterA11-Sep-08 3:24
SutterA11-Sep-08 3:24 
GeneralRe: Determine the CRichEditCtrl which holds the focus Pin
David Crow11-Sep-08 3:20
David Crow11-Sep-08 3:20 
GeneralRe: Determine the CRichEditCtrl which holds the focus Pin
SutterA11-Sep-08 3:26
SutterA11-Sep-08 3:26 
GeneralRe: Determine the CRichEditCtrl which holds the focus Pin
David Crow11-Sep-08 3:40
David Crow11-Sep-08 3:40 
GeneralRe: Determine the CRichEditCtrl which holds the focus Pin
SutterA11-Sep-08 3:45
SutterA11-Sep-08 3:45 
GeneralRe: Determine the CRichEditCtrl which holds the focus Pin
David Crow11-Sep-08 3:51
David Crow11-Sep-08 3:51 
GeneralRe: Determine the CRichEditCtrl which holds the focus Pin
enhzflep11-Sep-08 4:19
enhzflep11-Sep-08 4:19 
AnswerRe: Determine the CRichEditCtrl which holds the focus Pin
enhzflep11-Sep-08 5:01
enhzflep11-Sep-08 5:01 
GeneralRe: Determine the CRichEditCtrl which holds the focus Pin
SutterA11-Sep-08 5:45
SutterA11-Sep-08 5:45 
GeneralRe: Determine the CRichEditCtrl which holds the focus Pin
enhzflep11-Sep-08 5:53
enhzflep11-Sep-08 5:53 
GeneralRe: Determine the CRichEditCtrl which holds the focus Pin
SutterA11-Sep-08 21:54
SutterA11-Sep-08 21:54 
Questioncompiler in VC++6.0 Pin
aa_zz11-Sep-08 0:57
aa_zz11-Sep-08 0:57 
AnswerRe: compiler in VC++6.0 Pin
Rane11-Sep-08 1:01
Rane11-Sep-08 1:01 
AnswerRe: compiler in VC++6.0 Pin
_AnsHUMAN_ 11-Sep-08 1:12
_AnsHUMAN_ 11-Sep-08 1:12 

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.