91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 36KB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-06-08
  • 語言: C/C++
  • 標(biāo)簽: C++??百度地圖??

資源簡介

一個(gè)簡單的C++加載百度地圖的例子

資源截圖

代碼片段和文件信息

////////////////////////////////////////////////////////////////
//?Vckbase?Online?Journal?--?Feb?2000
//?Compiles?with?Visual?C++?6.0?runs?on?Windows?98?and?probably?NT?too.
//
//?---
//?AboutHtml?shows?how?to?implement?an?HTML?About?Dialog?using?a
//?new?class?CHtmlCtrl?that?lets?you?use?CHtmlView?as?a?control?in?a?dialog.

#include?“StdAfx.h“
#include?“resource.h“
#include?“HtmlCtrl.h“
//#include?

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////
//?Ordinary?main?frame--very?boring.
//
class?CMainframe?:?public?CframeWnd?{
public:
CMainframe(){?}
virtual?~CMainframe()?{?}
protected:
CStatusBar ?m_wndStatusBar;
CToolBar?????m_wndToolBar;
virtual?BOOL?PreCreateWindow(CREATESTRUCT&?cs);
afx_msg?int??OnCreate(LPCREATESTRUCT?lpCreateStruct);
afx_msg?void?OnPaint();
DECLARE_DYNCREATE(CMainframe)
DECLARE_MESSAGE_MAP()
};

IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
ON_WM_CREATE()
ON_WM_PAINT()
END_MESSAGE_MAP()

BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
cs.cx?=?300;
cs.cy?=?200;
return?TRUE;
}

int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;

if?(!m_wndToolBar.Create(this)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))?{
return?-1;??????//?fail?to?create
}

if?(!m_wndStatusBar.Create(this))?{
return?-1;??????//?fail?to?create
}

//?TODO:?Remove?this?if?you?don‘t?want?tool?tips?or?a?resizeable?toolbar
m_wndToolBar.SetBarstyle(m_wndToolBar.GetBarstyle()?|
CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC);

return?0;
}

void?CMainframe::OnPaint()
{
CPaintDC?dc(this);
CRect?rc;
GetClientRect(&rc);
dc.DrawText(_T(“請(qǐng)點(diǎn)擊查看按鈕......“)
rc?DT_CENTER|DT_VCENTER|DT_SINGLELINE);
}

class?CMyApp?:?public?CWinApp?{
public:
CMyApp();
virtual?BOOL?InitInstance();
protected:
afx_msg?void?OnAppAbout();
DECLARE_MESSAGE_MAP()
};

BEGIN_MESSAGE_MAP(CMyApp?CWinApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
// ON_COMMAND(ID_APP_BAIDU?OnAppAbout)
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
END_MESSAGE_MAP()

CMyApp::CMyApp()
{
}

CMyApp?theApp;

BOOL?CMyApp::InitInstance()
{
???//?Create?main?frame?window?(don‘t?use?doc/view?stuff)
???//?
???CMainframe*?pMainframe?=?new?CMainframe;
???if?(!pMainframe->Loadframe(IDR_MAINframe))
??????return?FALSE;
???pMainframe->ShowWindow(m_nCmdShow);
???pMainframe->UpdateWindow();
???m_pMainWnd?=?pMainframe;

return?TRUE;
}

//////////////////
//?Specialized?derivation?to?handle?“button“?click
//
class?CMyHtmlCtrl?:?public?CHtmlCtrl?{
virtual?void?OnAppCmd(LPCTSTR?lpszWhere);
};

/////////////////
//?Handle?“app:ok“?link?by?closing?dialog
//
void?CMyHtmlCtrl::OnAppCmd(LPCTSTR?lpszWh

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件??????43424??2014-04-01?22:12??百度地圖\AboutHtml.aps

?????文件???????8065??2012-03-13?20:27??百度地圖\AboutHtml.cpp

?????文件????????414??1999-09-09?17:59??百度地圖\AboutHtml.dep

?????文件???????4034??2012-03-13?22:04??百度地圖\AboutHtml.dsp

?????文件????????541??1999-06-18?14:43??百度地圖\AboutHtml.dsw

?????文件???????5863??1999-09-09?17:59??百度地圖\AboutHtml.mak

?????文件??????49664??2012-03-13?22:04??百度地圖\AboutHtml.opt

?????文件???????7319??2014-04-01?22:12??百度地圖\AboutHtml.rc

?????文件????????883??2014-06-01?21:24??百度地圖\AboutHtml.sln

????..A..H.?????10240??2014-04-01?22:42??百度地圖\AboutHtml.suo

?????文件???????7162??2014-06-01?21:24??百度地圖\AboutHtml.vcproj

?????文件???????2770??2014-07-07?21:25??百度地圖\HtmlCtrl.cpp

?????文件???????1117??2000-03-07?13:10??百度地圖\HtmlCtrl.h

?????文件????????209??1999-09-09?17:59??百度地圖\makefile

?????文件???????1823??2012-03-13?17:01??百度地圖\RES\about.htm

?????文件???????8800??2012-03-13?18:29??百度地圖\RES\AboutHtml.rc

?????文件????????766??2000-03-04?20:46??百度地圖\RES\app.ico

?????文件????????395??1995-11-20?18:10??百度地圖\RES\app.rc2

?????文件????????766??2012-03-13?17:43??百度地圖\RES\Doc.ico

?????文件???????6012??2014-04-01?22:42??百度地圖\RES\map.htm

?????文件????????866??2012-03-13?20:28??百度地圖\RES\Toolbar.bmp

?????文件????????644??2012-03-13?20:24??百度地圖\resource.h

?????文件?????????23??1995-11-11?17:54??百度地圖\StdAfx.cpp

?????文件????????445??1999-06-17?17:32??百度地圖\StdAfx.h

????..AD...?????????0??2014-04-01?22:42??百度地圖\RES

?????目錄??????????0??2014-04-01?22:43??百度地圖

-----------?---------??----------?-----??----

???????????????162245????????????????????26


評(píng)論

共有 條評(píng)論