首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

怎么利用系统API打印图像,而且图像有起始坐标和高度宽度的限制

2013-04-20 
如何利用系统API打印图像,而且图像有起始坐标和高度宽度的限制如何利用系统API打印图像,而且图像有起始坐

如何利用系统API打印图像,而且图像有起始坐标和高度宽度的限制
如何利用系统API打印图像,而且图像有起始坐标和高度宽度的限制,怎么利用系统的API实现,请大神指教
[解决办法]
MSDN98\SAMPLES\VC98\MFC\TUTORIAL\SCRIBBLE\STEP1~7\*.*

SCRIBBLE: Illustrates Use of Foundation Class Libraries

Click to open or copy STEP1

Click to open or copy STEP2

Click to open or copy STEP3

Click to open or copy STEP4

Click to open or copy STEP5

Click to open or copy STEP6

Click to open or copy STEP7

SCRIBBLE is the tutorial sample application discussed in Visual C++? Tutorials. The SCRIBBLE sample directory has seven subdirectories that correspond to different steps in the tutorial. Each subdirectory contains the complete sources for a given step.

SCRIBBLE provides simple illustrations of a wide breadth of MFC features. Step 1 through Step 6 of theScribble Tutorial give the best introduction to the following framework features. 

Application objects


Documents, views, and document templates


Commands, message maps, and command user interface updating


MDI (multiple document interface) frame and child windows


Toolbars and status bars


Update hints from documents to views


Dialogs, data exchange, and validation


Scroll view


Splitter window


Printing and print preview


Context-sensitive Help 
Refer to other samples for illustrations of advanced use of the above features, and for illustrations of many other features not covered in the tutorial.

Step 7,Creating an OLE Server, of the Scribble Tutorial adds another step to the development of the SCRIBBLE application by introducing OLE Visual Editing server functionality.

The STEP1 sample demonstrates the following keywords:

CDC::LineTo; CDC::MoveTo; CDC::SelectObject; CDialog::DoModal; CDocument::DeleteContents; CDocument::OnNewDocument; CDocument::OnOpenDocument; CDocument::SetModifiedFlag; CFrameWnd::Create; CFrameWnd::DockControlBar; CFrameWnd::EnableDocking; CFrameWnd::LoadFrame; CObList::GetHeadPosition; CObList::GetNext; CObject::AssertValid; CObject::Dump; CObject::Serialize; CPen::CreatePen; CView::DoPreparePrinting; CView::GetDocument; CView::OnBeginPrinting; CView::OnDraw; CView::OnEndPrinting; CView::OnPreparePrinting; CWinApp::AddDocTemplate; CWinApp::Enable3dControls; CWinApp::EnableShellOpen; CWinApp::InitInstance; CWinApp::LoadStdProfileSettings; CWinApp::RegisterShellFileTypes; CWnd::DoDataExchange; CWnd::GetCapture; CWnd::OnCreate; CWnd::OnLButtonDown; CWnd::OnLButtonUp; CWnd::OnMouseMove; CWnd::PreCreateWindow; CWnd::SetCapture; CWnd::ShowWindow; CWnd::UpdateWindow; CreatePen; DragAcceptFiles; LineTo; MoveTo; RGB; ReleaseCapture; SelectObject



The STEP2 sample demonstrates the following keywords:
……

热点排行