wxWidgets access html file in zip package
/************************************************************************
* Description: ·ÃÎÊzipÖеÄhtm Ö® Widgetsѧϰ
* Author: ³ÂÏàÀñ
* Compiled: VC8 + wxWidgets2.8.10
* Date: 04/02/10
************************************************************************/
/************************************************************************
* Description: ·ÃÎÊzipÖеÄhtm Ö® Widgetsѧϰ
* Author: ³ÂÏàÀñ
* Compiled: VC8 + wxWidgets2.8.10
* Date: 04/02/10
************************************************************************/
#include "wx/wx.h"
#include "wx/image.h"
#include "wx/html/htmlwin.h"
#include "wx/fs_zip.h"
class AppMain : public wxApp
{
public:
virtual bool OnInit();
protected:
private:
};
class FrameMain : public wxFrame
{
public:
FrameMain( const wxString& title, const wxPoint& pos, const wxSize& size );
void OnQuit( wxCommandEvent& event );
void OnBack( wxCommandEvent& event );
void OnForward( wxCommandEvent& event);
protected:
private:
DECLARE_EVENT_TABLE()
};
enum
{
// ²Ëµ¥ID
Minimal_Quit = 1,
Minimal_Back,
Minimal_Forward,
};
// ʼþ±í
BEGIN_EVENT_TABLE( FrameMain, wxFrame )
EVT_MENU( Minimal_Quit, FrameMain::OnQuit )
EVT_MENU( Minimal_Back, FrameMain::OnBack )
EVT_MENU( Minimal_Forward, FrameMain::OnForward )
END_EVENT_TABLE()
// Ö¸¶¨Èë¿ÚÀà
IMPLEMENT_APP( AppMain )
// Èë¿Ú¿ªÊ¼µã
bool AppMain::OnInit()
{
wxImage::AddHandler(new wxPNGHandler);
wxImage::AddHandler(new wxJPEGHandler);
wxFileSystem::AddHandler(new wxZipFSHandler);
FrameMain *frame = new FrameMain( wxT("Zip and Html²âÊÔ"), wxDefaultPosition, wxSize( 1024, 768 ) );
frame->Show( true );
SetTopWindow( frame );
return true;
}
wxHtmlWindow *html = NULL;
FrameMain::FrameMain( const wxString& title, const wxPoint& pos, const wxSize& size )
: wxFrame( (wxFrame *)NULL, wxID_ANY, title, pos, size )
{
wxMenu *menuFile = new wxMenu;
wxMenu
Ïà¹ØÎĵµ£º
ÔÚWEBÓ¦ÓÃÖÐ,Èç¹ûʹÓÃjsp×÷Ϊview²ãµÄÏÔʾģ°å,¶¼»á±»¿Õ¸ñ/¿Õ»»ÐÐÎÊÌâËùÀ§ÈÅ.
Õâ¸öÎÊÌâµ±ÄêÒ²À§ÈÅÁËÎұȽϳ¤µÄʱ¼ä.ÒòΪÔÚjspÄÚʹÓõÄEL±êÇ©ºÍÆäËû±êǩʱ,»á²úÉú´óÁ¿µÄ¿Õ¸ñºÍ»»Ðзû.ÀýÈç:
------- start ----------
<c:choose>
<c:when test="${fn:length(mainPageList)>1&}&q ......
·½Ê½Ò»£º »ò ×÷»»Ðзû
·½Ê½¶þ£ºÖ±½ÓÔÚÔ´ÂëÖÐÇûسµ
¡¾½¨Òé¡¿ ²ÉÓ÷½°¸Ò»¡£
¡¾Ô´Âë¡¿
<a href="#" title="µÚÒ»ÐÐ µÚ¶þÐÐ µÚÈýÐÐ">·½Ê½Ò»£ºÊó±ê·ÅÔÚÎÒÉÏÃæ¿´Ò»ÏÂtitle</a>
<br />
<br />
<a href="#" title="µÚÒ»ÐÐ
µÚ¶þÐÐ
µÚÈýÐÐ">·½Ê½¶þ£ºÊó± ......
ÔÚSQL Server2005ÖÐÑ¡ÖÐÒªµ¼ÈëÊý¾ÝµÄ¿â > ÓÒ¼ü > н¨²éѯ£º
Ö´ÐÐSQLÓï¾äÈçÏ£º
insert into
Ä¿±êÊý¾Ý¿â±íÃû (×Ö¶Î1,×Ö¶Î2,....) select
×Ö¶Î1,×Ö¶Î2... from
openrowset
('microsoft.jet.oledb.4.0',';database=Ô´Êý¾Ý¿â·¾¶£¨È磺d:\test.mdb£©','select * from Ô´±í where ²éѯÌõ¼þ')
SQL Óï¾äÆôÓÃ×é¼ ......
·ÃÎʿؼþµÄÖ÷Òª¶ÔÏóÊÇ:document¶ÔÏó¡£·Ö±ð¶ÔÓ¦µ±Ç°ÎĵµËùÓеģ¨×Ó¶ÔÏ󣩸öÈ˹۵㡣²¢ÇÒÒѾÌṩµÄ¼¸¸öÖ÷Òª·½·¨À´·ÃÎʶÔÏó¡£
1. document.getElementById
2. document.getElementsByName
3 &n ......
°Ù¶ÈÁËÏ ´óÌåÖªµÀ ÈçÏÂÇø±ð£º
id ´ú±íΨһ £¬ÔÚÕû¸öÒ³ÃæÊÇΨһµÄ£¬²»ÄÜÖظ´¡£
name ¿ÉÒÔÖظ´£¬Õû¸öÒ³ÃæµÄ name ¿ÉÒÔ¶¼Ò»Ñù
ÓÃÔÚJavaScript ÖРʱ
document.getElementById("str") ·µ»ØµÄÊÇ Î¨Ò»µÄÊý¾Ý¡£
document.getElementsByName("str") ·µ»ØµÄÊǸöÊý×é¡£
»¹ÓÐʲôÇø±ð£¿Óдý·ÈËÖ¸Ö¤£¡ ......