Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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


Ïà¹ØÎĵµ£º

ͨ¹ýHTML ×¢ÊÍÐÔÓï·¨ÅжÏIE°æ±¾

Example:
1.<!--[if !IE]><!--> ³ýIEÍâ¶¼¿Éʶ±ð <!--<![endif]-->
2.<!--[if IE]> ËùÓеÄIE¿Éʶ±ð <![endif]-->
3.<!--[if IE 5.0]> Ö»ÓÐIE5.0¿ÉÒÔʶ±ð <![endif]-->
4.<!--[if IE 5]> ½öIE5.0ÓëIE5.5¿ÉÒÔʶ±ð <![endif]-->
5.<!--[if gt IE 5.0]> IE ......

htmlÖØÐ¼ÓÔØÎÊÌâ

   ×î½üÔÚʹÓÃextǶÈëhtmlÒ³ÃæµÄ¹ý³ÌÖУ¬Óöµ½Ò»¸öÎÊÌâ¡£ÎÒÃÇÒ³Ãæ¶¼ÊÇÓÃhtmlÖÆ×÷µÄ£¬ÓÃiframeµÄ·½Ê½Ç¶Èëµ½extµÄpanelÀï¡£ÆäÖÐÓÐÒ»¸öÒ³ÃæÊÇÔÚ°´Å¥´¥·¢µÄʱºò¼ÓÔØ½øÈ¥µÄ£¬µ«ÊÇÖØÐÂË¢ÐÂä¯ÀÀÆ÷£¬Ò³ÃæÈÔȻǶÈëÔÚpanelÖУ¬²¢Ã»ÓÐÐ¶ÔØµô£¬ÔÚÒ³ÃæÉÏÉèÖÃÇå¿Õ»º´æÒ²Ã»ÓÐЧ¹û¡£
   ºóÀ´ÎÒ·¢ÏÖ£¬Ö»ÓÐÔÚä¯ÀÀÆ÷µØÖ·Àï ......

HTML ±êÇ©

<label> ±êǩΪ input ÔªËØ¶¨Òå±ê×¢£¨±ê¼Ç£©¡£
label ÔªËØ²»»áÏòÓû§³ÊÏÖÈκÎÌØÊâЧ¹û¡£²»¹ý£¬ËüΪÊó±êÓû§¸Ä½øÁË¿ÉÓÃÐÔ¡£Èç¹ûÄúÔÚ label ÔªËØÄÚµã»÷Îı¾£¬¾Í»á´¥·¢´Ë¿Ø¼þ¡£¾ÍÊÇ˵£¬µ±Óû§Ñ¡Ôñ¸Ã±êǩʱ£¬ä¯ÀÀÆ÷¾Í»á×Ô¶¯½«½¹µãתµ½ºÍ±êÇ©Ïà¹ØµÄ±íµ¥¿Ø¼þÉÏ¡£
<label> ±êÇ©µÄ for ÊôÐÔÓ¦µ±ÓëÏà¹ØÔªËØµÄ id ÊôÐÔÏ ......

[ת]ADO²Ù×÷accessÈ«¹ý³ÌºÍCListCtrlµÄÓ÷¨

Technorati ±êÇ©: VC,ListCtrl Ô­ÎĵØÖ·£ºhttp://www.vckbase.com/document/viewdoc/?id=1274 ADO²Ù×÷accessÈ«¹ý³ÌºÍCListCtrlµÄÓ÷¨
×÷ÕߣºÕÅÕ¹Ã÷ ÏÂÔØÔ´´úÂë
Ò»¸öADOºÍCListµÄʾÀý³ÌÐò£¨³ÌÐòÖеÄtele.log¼´ÎªaccessÎļþ£¬¿ÉÒÔÖ±½Ó¸ü¸ÄÀ©Õ¹Ãûºó´ò¿ª£©:
ʹÓÃADO²Ù×÷accessÊý¾Ý¿â.Ôö¼Ó,ɾ³ý,ÐÞ¸Ä,²éѯ ......

html ÖÐ id ºÍname µÄÇø±ð

°Ù¶ÈÁËÏ ´óÌåÖªµÀ ÈçÏÂÇø±ð£º
id ´ú±íΨһ £¬ÔÚÕû¸öÒ³ÃæÊÇΨһµÄ£¬²»ÄÜÖØ¸´¡£
name ¿ÉÒÔÖØ¸´£¬Õû¸öÒ³ÃæµÄ name ¿ÉÒÔ¶¼Ò»Ñù
ÓÃÔÚJavaScript ÖРʱ
document.getElementById("str") ·µ»ØµÄÊÇ Î¨Ò»µÄÊý¾Ý¡£
document.getElementsByName("str") ·µ»ØµÄÊǸöÊý×é¡£
»¹ÓÐÊ²Ã´Çø±ð£¿Óдý·ÈËÖ¸Ö¤£¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ