
MFC
文章平均质量分 66
EricYeung
这个作者很懒,什么都没留下…
展开
-
MFC handle user defined message
----------------------------------1)#define WM_MYMESSAGE1 WM_USER + 1000----------------------------------2)protected: afx_msg LRESULT OnMyMessage1(WPARAM wParam, LPARAM lParam);LRESULT CMFCTest1Vi原创 2008-03-08 23:37:00 · 821 阅读 · 0 评论 -
Create Ocx control step by step (VS 2008)
Create Ocx control step by step (VS 2008)原创 2011-02-26 09:29:00 · 734 阅读 · 0 评论 -
Create Ocx control CLIENT Application step by step (VS 2008)
Create Ocx control CLIENT Application step by step (VS 2008)原创 2011-02-26 09:44:00 · 890 阅读 · 0 评论 -
VM_COPYDATA
VM_COPYDATA原创 2010-08-04 19:30:00 · 752 阅读 · 0 评论 -
MFC tips 1
1)View/SubWindow communication:--Inside SubWindowCMyObject *pObject = new CMyObject;pObject->SetProperties();m_pView->PostMessage(WM_XXX, (WPARAM)pObject, NULL)--Viw Msg handlerOnMessage原创 2008-04-30 13:38:00 · 834 阅读 · 0 评论 -
bug in MFC Ocx BEGIN_DISPATCH_MAP
An wrong BEGIN_DISPATCH_MAPdispidOnEvent1 = 1,dispidFunction1 = 1OnEvent1 is ocx event, Function1 is ocx functionBEGIN_DISPATCH_MAP(CMyOcx2Ctrl, COleControl) DISP_FUNCTION_ID(CMyOcx2Ctrl, "AboutBox原创 2008-04-21 08:31:00 · 3077 阅读 · 0 评论 -
how to use ocx control in console app.
-------------------------------------------------------------------Control Class:-------------------------------------------------------------------class CDMyOcxCtrl1 : public CWnd{protected: DECLA原创 2008-01-16 09:41:00 · 808 阅读 · 0 评论 -
How to import Ocx into MFC project
1) In MFC dialog app, open dialog resource, right click and click "Insert ActiveX control",then add class and variable2) In Class view, right project, select "Add Class...", "Add Class from MFC Active原创 2008-01-16 09:32:00 · 1109 阅读 · 0 评论 -
ocx function and the order of BEGIN_DISPATCH_MAP
the order of function and event is vatal:******************If you add Ocx function/event, MFC will NOT arrange the right order for you!!!!!!!!!!you should separate the function group and event group,原创 2008-01-16 09:43:00 · 1747 阅读 · 0 评论 -
csharp.delphi event vs mfc ocx event
client ocxocx function subject (provide service)ocx event (for callback) subject1) event in CSharp/Delphi is only a funcion pointer, no concreate原创 2008-01-11 09:43:00 · 1587 阅读 · 0 评论 -
MFC Ocx: Using ActiveX Controls in Nondialog Windows
Using ActiveX Controls in Nondialog WindowsMFC and ClassWizard make it wonderfully easy to use ActiveX controls in dialogs, but what about nondialog windows? It turns out that MFC allows any CWnd obje原创 2008-03-15 12:58:00 · 1218 阅读 · 0 评论 -
MFC how to handle ocx event
Insert ActiveX control in a dialog resource, and add event handler with wizard, then copy the macro/event codeto your project.ON_EVENT/ DataExchange....原创 2008-03-11 09:30:00 · 624 阅读 · 0 评论 -
MFC Macro
DECLARE_DYNAMIC/IMPLEMENT_DYNAMIC: use CObject::IsKindOf DECLARE_EVENTSINK_MAP/BEGIN_EVENTSINK_MAP/END_EVENTSINK_MAP: OLE container event sink (accept control event)DECLARE_MESSAGE_MAP/BEGIN_MESSAGE_M原创 2008-03-11 09:18:00 · 709 阅读 · 0 评论 -
figure out windows message queue size
figure out windows message queue size原创 2011-03-09 14:05:00 · 1250 阅读 · 0 评论