Click here to Skip to main content
15,904,494 members
Home / Discussions / COM
   

COM

 
GeneralConnecting to IE Events Pin
Alex Cramer14-Jul-02 16:05
Alex Cramer14-Jul-02 16:05 
GeneralRe: Connecting to IE Events Pin
Anonymous15-Jul-02 13:16
Anonymous15-Jul-02 13:16 
GeneralRe: Connecting to IE Events Pin
Alex Cramer15-Jul-02 17:30
Alex Cramer15-Jul-02 17:30 
GeneralCOM process killed and then reloaded Pin
sefip13-Jul-02 23:36
sefip13-Jul-02 23:36 
GeneralCompositeControl 's background Pin
Camel12-Jul-02 22:21
Camel12-Jul-02 22:21 
GeneralRe: CompositeControl 's background Pin
Brian van der Beek16-Jul-02 21:04
Brian van der Beek16-Jul-02 21:04 
QuestionCRichEditCtrl in a COM object... possible? Pin
jfugate12-Jul-02 4:39
jfugate12-Jul-02 4:39 
AnswerRe: CRichEditCtrl in a COM object... possible? Pin
Ernest Laurentin12-Jul-02 5:48
Ernest Laurentin12-Jul-02 5:48 
Hi Jason,
Using ATL CRichEditCtrl is about the same than using Win32 API call. If you have used MFC, then this is not really a problem, since it provides about the same interfaces (function name). Even though I didn't see how that would fix your problem (having ActiveX container) since your main
window will still capture the focus with every event. It is better to fix that with the main window, why does it need to capture the focus?
Anyway, just create it:
// one of them must be loaded
   //HINSTANCE hLibRichEdit = LoadLibrary(_T("RICHED32.DLL"));
   //HINSTANCE hLibRichEdit = LoadLibrary(_T("RICHED20.DLL"));
   DWORD dwStyle  = WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_HSCROLL;
         dwStyle |= ES_MULTILINE|ES_AUTOHSCROLL|ES_AUTOVSCROLL;
   // rc is position and size, and m_hWnd is parent (current dialog)
       m_ctlRichEdit.Create(m_hWnd, rc, NULL, dwStyle);

BTW, when do you plan to release your game? (it looks good)

Last Article:
Adding VBScript/JScript to C++ App

GeneralRe: CRichEditCtrl in a COM object... possible? Pin
jfugate12-Jul-02 5:58
jfugate12-Jul-02 5:58 
GeneralRe: CRichEditCtrl in a COM object... possible? Pin
Ernest Laurentin12-Jul-02 6:22
Ernest Laurentin12-Jul-02 6:22 
GeneralCOleDispatchDriver Pin
AJ12312-Jul-02 1:08
AJ12312-Jul-02 1:08 
GeneralRe: COleDispatchDriver Pin
AJ12312-Jul-02 5:48
AJ12312-Jul-02 5:48 
Questionhow to display data in grid Pin
Paul_S10-Jul-02 23:45
Paul_S10-Jul-02 23:45 
AnswerRe: how to display data in grid Pin
Ernest Laurentin11-Jul-02 10:34
Ernest Laurentin11-Jul-02 10:34 
GeneralComposite Property page control Pin
srisan10-Jul-02 9:31
srisan10-Jul-02 9:31 
GeneralImplemetation of Callback functions Pin
wins10-Jul-02 2:12
wins10-Jul-02 2:12 
GeneralAdd format for image icon on 2000 and XP file explorer Pin
Anonymous9-Jul-02 2:48
Anonymous9-Jul-02 2:48 
GeneralRe: Add format for image icon on 2000 and XP file explorer Pin
Anonymous13-Jul-02 6:59
Anonymous13-Jul-02 6:59 
GeneralObjectContext and it's role in COM+ Pin
MrGlover8-Jul-02 12:34
MrGlover8-Jul-02 12:34 
GeneralRe: ObjectContext and it's role in COM+ Pin
Paul Ingles20-Jul-02 13:54
Paul Ingles20-Jul-02 13:54 
GeneralRe: ObjectContext and it's role in COM+ Pin
MrGlover21-Jul-02 12:39
MrGlover21-Jul-02 12:39 
GeneralRe: ObjectContext and it's role in COM+ Pin
Paul Ingles22-Jul-02 4:10
Paul Ingles22-Jul-02 4:10 
GeneralDrag n drop within IE Pin
Per-Olov Jernberg8-Jul-02 1:43
Per-Olov Jernberg8-Jul-02 1:43 
GeneralRe: Drag n drop within IE Pin
Per-Olov Jernberg8-Jul-02 4:40
Per-Olov Jernberg8-Jul-02 4:40 
GeneralRe: Drag n drop within IE Pin
Per-Olov Jernberg10-Jul-02 4:09
Per-Olov Jernberg10-Jul-02 4:09 

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.