如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
OLEVIEW示例:ActiveX对象查看器VisualC++示例OLEVIEW示例:ActiveX对象查看器DownloadsampleOLEVIEW示例阐释如何通过自定义ActiveX接口来实现ActiveX对象查看器。这些自定义接口是在Iviewers.dll中实现的。安全注意提供该示例代码是为了阐释一个概念,并不代表着最安全的编码实践,因此不应在应用程序或网站中使用该示例代码。Microsoft并不保证将该示例代码用于除此以外的其他用途时不会造成意外或连带损坏。生成并运行示例生成并运行OLEVIEW示例打开解决方案oleview.sln。在“生成”菜单中单击“生成”。应用程序具有含两个窗格的SDI界面。左窗格使您可以通过树控件浏览注册表。一旦选择一个节点后,右窗格将显示相关信息。请注意,该示例应用程序无法显示所有对象的信息,而是仅显示支持IViewer接口的对象的信息。关键字此示例说明以下关键字:AfxGetInstanceHandle;AfxMessageBox;AfxOleInit;AfxThrowMemoryException;AfxThrowOleException;BitBlt;CBitmap::CreateBitmap;CBitmap::LoadBitmap;CBrush::CreateSolidBrush;CCmdTarget::BeginWaitCursor;CCmdTarget::EndWaitCursor;CDC::Attach;CDC::BitBlt;CDC::CreateCompatibleDC;CDC::DeleteDC;CDC::Detach;CDC::GetPixel;CDC::GetTextMetrics;CDC::SelectObject;CDialog::DoModal;CDialog::OnInitDialog;CDocument::OnCloseDocument;CDocument::OnNewDocument;CDocument::UpdateAllViews;CFileDialog::DoModal;CFileDialog::GetPathName;CFont::CreateFontIndirect;CFrameWnd::Create;CFrameWnd::GetActiveDocument;CFrameWnd::LoadFrame;CFrameWnd::OnCreateClient;CFrameWnd::SetActiveView;CGdiObject::DeleteObject;CListBox::SetCurSel;CObject::AssertValid;CObject::Dump;CRect::Height;CRect::Width;CScrollView::SetScrollSizes;CSplitterWnd::CreateStatic;CSplitterWnd::CreateView;CSplitterWnd::GetColumnInfo;CSplitterWnd::GetPane;CSplitterWnd::SetColumnInfo;CStatic::SetIcon;CString::Format;CString::GetBuffer;CString::IsEmpty;CString::LoadString;CString::ReleaseBuffer;CView::GetDocument;CView::OnDragEnter;CView::OnDragLeave;CView::OnDragOver;CView::OnDrop;CView::OnInitialUpdate;CView::OnUpdate;CWinApp::AddDocTemplate;CWinApp::ExitInstance;CWinApp::InitInstance;CWinApp::OnFileNew;CWinApp::SetRegistryKey;CWnd::DoDataExchange;CWnd::DragAcceptFiles;CWnd::GetParent;CWnd::GetSafeHwnd;CWnd::GetStyle;CWnd::GetWindowPlacement;CWnd::GetWindowRect;CWnd::OnCreate;CWnd::OnDestroy;CWnd::OnSize;CWnd::OnSysColorChange;CWnd::ScreenToClient;CWnd::SetFocus;CWnd::SetFont;CWnd::SetRedraw;CWnd::SetWindowPlacement;CWn