如下图所示,要记得勾选Capture Win32和Capture Global Win32。Capture Global Win32用于网络模式下捕获网络主机的Debug输出的时候。如果需要捕获内核模式的调试输出,记得勾选Capture Kernel Win32。 如果点击Capture Global Win32菜单出现提示: 重新以管理员的身份启动DebugView。
// Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(rect); int x = (rect.Width() - cxIcon + 1) / 2; int y = (rect.Height() - cyIcon + 1) / 2;
// Draw the icon dc.DrawIcon(x, y, m_hIcon); } else { //选入DC CClientDC cdc(this); CDC comdc; comdc.CreateCompatibleDC(cdc); comdc.SelectObject(m_bitmapBack);
if(phtmlStyle != NULL) { phtmlStyle->put_overflow(L"hidden"); //需要设置网页源码DOCTYPE为<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> //去除边框才有效 phtmlStyle->put_border(L"none");// 去除边框
phtmlStyle->Release(); pEl->Release(); } } }
关键函数是HideScrollBar()。
第三步:在浏览器内嵌网页的最前面添加,
1
<!DOCTYPE HTMLPUBLIC"-//W3C//DTD HTML 4.01 Transitional//EN">
#ifdef WPRFLAG int wWinMainCRTStartup( #else /* WPRFLAG */ int WinMainCRTStartup( #endif /* WPRFLAG */
#else /* _WINMAIN_ */
#ifdef WPRFLAG int wmainCRTStartup( #else /* WPRFLAG */ int mainCRTStartup( #endif /* WPRFLAG */
#endif /* _WINMAIN_ */ void ) { /* * The /GS security cookie must be initialized before any exception * handling targetting the current image is registered. No function * using exception handling can be called in the current image until * after __security_init_cookie has been called. */ __security_init_cookie();
__declspec(noinline) int __tmainCRTStartup( void ) { int initret; int mainret=0; int managedapp; #ifdef _WINMAIN_ _TUCHAR *lpszCommandLine; STARTUPINFO StartupInfo;
__try { /* Note: MSDN specifically notes that GetStartupInfo returns no error, and throws unspecified SEH if it fails, so the very general exception handler below is appropriate */ GetStartupInfo( amp;StartupInfo ); } __except(EXCEPTION_EXECUTE_HANDLER) { return 255; } #endif /* _WINMAIN_ */ /* * Determine if this is a managed application */ managedapp = check_managed_app();
if ( !_heap_init(1) ) /* initialize heap */ fast_error_exit(_RT_HEAPINIT); /* write message and die */
if( !_mtinit() ) /* initialize multi-thread */ fast_error_exit(_RT_THREAD); /* write message and die */
/* Enable buffer count checking if linking against static lib */ _CrtSetCheckCount(TRUE);
/* * Initialize the Runtime Checks stuff */ #ifdef _RTC _RTC_Initialize(); #endif /* _RTC */ /* * Guard the remainder of the initialization code and the call * to user's main, or WinMain, function in a __try/__except * statement. */
int __cdecl _cinit ( int initFloatingPrecision ) { int initret;
/* * initialize floating point package, if present */ #ifdef CRTDLL _fpmath(initFloatingPrecision); #else /* CRTDLL */ if (_FPinit != NULL amp;amp; _IsNonwritableInCurrentImage((PBYTE)amp;_FPinit)) { (*_FPinit)(initFloatingPrecision); } _initp_misc_cfltcvt_tab(); #endif /* CRTDLL */
/* * do initializations */ initret = _initterm_e( __xi_a, __xi_z ); if ( initret != 0 ) return initret;
#ifdef _RTC atexit(_RTC_Terminate); #endif /* _RTC */ /* * do C++ initializations */ _initterm( __xc_a, __xc_z );
#ifndef CRTDLL /* * If we have any dynamically initialized __declspec(thread) * variables, then invoke their initialization for the thread on * which the DLL is being loaded, by calling __dyn_tls_init through * a callback defined in tlsdyn.obj. We can't rely on the OS * calling __dyn_tls_init with DLL_PROCESS_ATTACH because, on * Win2K3 and before, that call happens before the CRT is * initialized. */ if (__dyn_tls_init_callback != NULL amp;amp; _IsNonwritableInCurrentImage((PBYTE)amp;__dyn_tls_init_callback)) { __dyn_tls_init_callback(NULL, DLL_THREAD_ATTACH, NULL); } #endif /* CRTDLL */
\documentclass{beamer} \usetheme{Warsaw} \usepackage{fontspec,xunicode,xltxtra} \usepackage[slantfont,boldfont]{xeCJK} % 允许斜体和粗体 \setbeamercovered{transparent} \usepackage[english]{babel} % or whatever \usepackage{hyperref} \usepackage[T1]{fontenc} % or whatever \usefonttheme{professionalfonts} \usepackage{times} \usepackage{mathptmx} \usepackage{tabularx} % Or whatever. Note that the encoding and the font should match. If T1 % does not look nice, try deleting the line with the fontenc. \usepackage{xcolor} \usepackage{booktabs, multirow, enumerate} \usepackage{animate} \usepackage{multimedia}
% ... or whatever. Note that the encoding and the font should match. % If T1 does not look nice, try deleting the line with the fontenc. \usepackage{lmodern} %optional \usepackage{listings}
% Delete this, if you do not want the table of contents to pop up at % the beginning of each subsection: \AtBeginSection[] { \begin{frame}<beamer> \frametitle{内容大纲} \tableofcontents[currentsection] \end{frame} }
native final function SetBool(string Member, bool b); native final function SetFloat(string Member, float f); native final function SetDouble(string Member,double d); native final function SetInt(string Member,int i); native final function SetString(string Member, string s); native final function SetObject(string Member, GFxObject val);
//军衔列表每项的数据 struct RankListData { var int Level;//等级 var string Name;//军衔名 }; var array<RankListData> RankListDatas; var string path; function SetFlashRankListDatas() { local int Index; local GFxObject GfxRankListDatas; local GFxObject GfxTempObj;
struct RankAwardData { var string RankAwardTitle; var array<AwardData> AwardDatas; }; var array<RankAwardData> RankAwardDatas; var string path;
function SetFlashRankAwardDatas() { local int Index; local int i; local GFxObject GfxRankAwardDatas; local GFxObject GfxTempObj; local GFxObject GfxAwardDatas; local GFxObject GfxAwardTempObj;
GfxRankAwardDatas = CreateArray(); for (Index = 0; Index < RankAwardDatas.Length; Index++) { GfxTempObj = CreateObject("Object"); GfxTempObj.SetString("RankAwardTitle", RankAwardDatas[Index].RankAwardTitle);
GfxAwardDatas = CreateArray(); for (i = 0; i < RankAwardDatas[Index].AwardDatas.Length; ++i) { GfxAwardTempObj = CreateObject("Object"); GfxAwardTempObj.SetString("IconSource", RankAwardDatas[Index].AwardDatas[i].IconSource); GfxAwardDatas.SetElementObject(i, GfxAwardTempObj); GfxAwardTempObj.DestroyObject(); } GfxTempObj.SetObject("RankAward", GfxAwardDatas); GfxRankAwardDatas.SetElementObject(Index, GfxTempObj); GfxAwardDatas.DestroyObject(); GfxTempObj.DestroyObject(); }