锘??xml version="1.0" encoding="utf-8" standalone="yes"?>C++鍗氬-澶╀笅http://www.2676208.com/aaxron/璁板綍淇?#29723;?#37928;?#37719;?#29825;? zh-cnTue, 06 Aug 2019 11:37:44 GMTTue, 06 Aug 2019 11:37:44 GMT60c#鏉′欢缂栬瘧http://www.2676208.com/aaxron/archive/2019/06/26/216462.html澶╀笅澶╀笅Wed, 26 Jun 2019 10:03:00 GMThttp://www.2676208.com/aaxron/archive/2019/06/26/216462.htmlhttp://www.2676208.com/aaxron/comments/216462.htmlhttp://www.2676208.com/aaxron/archive/2019/06/26/216462.html#Feedback0http://www.2676208.com/aaxron/comments/commentRss/216462.htmlhttp://www.2676208.com/aaxron/services/trackbacks/216462.html Conditional compilation symbols
缂栬瘧鍣ㄥ懡浠?#29723;?#38315;夐」锛堜緥濡?#38171;?define:DEBUG锛?
    鍙?#28000;?#37734;╒S2008鐨処DE杩涜璁剧疆, Project Property--->Build--->Conditional compilation symbols(濡傛灉澶氫釜绉戠爺浣跨敤閫?#37721;?#38341;斿紑)
    绯荤粺榛?#29825;?#29825;剧疆浜?DEBUG 鍜?TRACE
鎿?#28003;?#32495;荤粺澶栧3绋嬪簭涓?#37928;?#37916;鍙橀噺锛堜緥濡?#38171;宻et DEBUG=1锛夈?/div>
婧?#28000;?#37934;?#28051;?#37928;?#37833;傛敞锛堜緥濡?#38171;岀敤浜庡?#27691;箟缂栬瘧鍙橀噺鐨?#define DEBUG锛?#28000;?#37721;婄敤浜?#37721;?#23057;堝?#27691;?#22794;畠鐨?#undef DEBUG锛夈?/div>
     蹇呴』鍦╢ile鐨勬渶鍓嶆柟璁剧疆,#define debug鎴栬呯?#21227;悎鎿?#28003;?/div>
    #if (Debug && Trace)
        #define DebugAndTrace 
    #endif
ps:Conditional浣?#27996;巙sing System.Diagnostics;
浠涔堟儏鍐典笅浣跨敤璇ユ爣璇嗙?
褰?#32459;嬪簭涓?#28051;?#37340;?#26591;娉?#37812;栧?#28852;?#28051;嶆兂鍐?#28003;跨敤鏃?濡傛灉鎶婂畠鍒犳?#22794;?#36941;渶瑕?#37814;婂?#26336;敤鐨勫湴?#26591;涓?#37340;涓?#37340;?#21455;閮?#37714;犳帀涓?#37906;?#28751;?#28028;?#32514;栬瘧?#25930;璇?杩?#37827;?#37812;?#28000;?#28751;?#37721;?#28000;?#37734;?#28617;?#37928;?#28051;婇潰鍔?#28051;?#37340;[Conditional("string")] 鐒?#37722;?#32459;嬪簭杩愯鏃?#28751;?#28028;氬拷鐣ュ畠
ps:[Conditional("string")]閲岄潰瀛楃涓?#38341;?#37808;?#37721;?nbsp; 
濡傛灉鎯?#37712;嶆?#30367;?#25956;?#20549;?#37340;?#26591;娉?#37812;栧?#28852;ф?#28052;堝姙?
杩欎釜寰堢畝鍗?浣?#37721;渶鍦?#23534;曠敤?#25057;鍚嶇┖闂撮偅?#37340;鍦版柟杩涜涓?#37340;瀹忓?#27691;箟鎶?#28003;?#37734;╗Conditional("string")]閲岄潰鐨勫?#26947;涓?#28729;氫?#22794;嚭鏉?#28751;辫兘?#25956;浜?/div>
C#-#define鏉′欢缂栬瘧
C#鐨勯澶勭悊鍣ㄦ寚浠?#28000;?#37833;?#28051;嶄?#27699;浆鍖?#28051;?#37721;墽琛?#28000;?#37934;?#37928;勫懡浠?#38171;?#28003;?#37828;?#28028;氬?#21342;搷缂栬瘧杩?#32459;?#37928;勫悇?#37340;?#26591;?#28528;锛?#29999;哥敤鐨勯澶勭悊鍣ㄦ寚浠ゆ湁#define銆?undef銆?if,#elif,#else鍜?endif绛夌瓑锛屼笅?#28528;浠?#32513;岰#涓?#28003;跨敤#define杩涜鏉′欢缂栬瘧鐨勫疄?#32229;銆?/div>
C#涓?#37833;′欢缂栬瘧?#23514;浠ょ敤浜庢寜鏉′欢鍖?#37722;?#37812;?#37818;?#38340;?#23143;?#37826;囦欢涓?#37928;勬煇浜?#38318;?#37714;?#37510;?#37734;╒isual Studio涓?#38171;屼?#27697;?#23338;?#25292;鎺?#38340;?#37928;?#28000;?#37934;佹?#21095;ず涓?#37903;拌壊銆?/div>
涓銆?define鍙?#28000;ョ敤鏉?#37707;?#28000;涔?/div>
1銆?#35120;?#29825;?#37714;?#37721;戝竷涓や釜鐗堟湰鐨?#28000;?#37934;?#37928;勬?#36346;?#37510;?#37719;冲?#28888;湰鐗?#37724;?#37815;ユ湁鏇?#28598;氱?#22559;湰鐨?#28028;?#28051;氱増锛?#28751;?#37721;?#28000;ョ敤鍒?#37833;′欢缂栬瘧?#23514;浠?#38171;?/div>
2銆佷緥濡?#37722;?#28051;?#37340;鏂囦欢缁檚ilverlight銆亀pf銆亀inform绛?#28003;跨敤锛屽苟涓?#26473;樿冭檻Debug鍜孯elease绛?#38171;屾湁澶?#38318;?#37714;?#28000;?#37934;佹槸涓鏍?#37928;?#38171;?/div>
3銆佹寚瀹氬嚱鏁板拰灞炴?#37828;?#37722;?#32514;栬瘧鍒版渶缁堜骇鍝?#28051;?#37720;?#37510;?/div>
浜?#37510;?define?#25956;娉?/div>
璇?#23049;?#38171;?define 鍚?#32457;?/div>
娉?#37808;?#38171;?#26473;?#38322;?#37722;?#32457;板彇Debug锛?#28003;?#28052;?#37721;?#28000;?#37721;栧叾浠栧悕绉板?#20401;ragon
1 #define Debug
璇?#37828;?#38171;?/div>
1銆丏ebug鍙?#28000;?#37930;嬪仛鏄0鏄?#37928;?#28051;?#37340;鍙橀噺锛?#28003;嗘鍙橀噺娌?#37832;夌?#29112;鐨勫?#38171;?#28699;?#37734;?#37827;?if Debug缁撴灉涓簍rue锛?#37722;?#37714;?#28051;篺alse锛?/div>
2銆?define鍗曠嫭?#25956;娌?#28000;涔堟剰涔?#38171;?#28051;鑸?#37828;?#37724;?if鎴栬匔onditional鐗规?#32513;?#37722;堜?#36328;敤锛?/div>
3銆?define蹇呴』瀹氫箟鍦ㄦ墍?#28225;using?#25057;鍚嶇┖闂?#37715;嶉潰锛?/div>
4銆丏ebug涓嶥EBUG鏄?#28051;?#37722;?#37928;?#38171;孋#鍖?#37714;?#28598;?#28751;?#37712;?/div>
 


]]>spring 瀹樻柟?#31493;?#27975;鍦板潃锛圫pring Framework 3.2.x&Spring Framework 4.0.x锛?/title><link>http://www.2676208.com/aaxron/archive/2019/02/12/216238.html</link><dc:creator>澶╀笅</dc:creator><author>澶╀笅</author><pubDate>Tue, 12 Feb 2019 03:44:00 GMT</pubDate><guid>http://www.2676208.com/aaxron/archive/2019/02/12/216238.html</guid><wfw:comment>http://www.2676208.com/aaxron/comments/216238.html</wfw:comment><comments>http://www.2676208.com/aaxron/archive/2019/02/12/216238.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.2676208.com/aaxron/comments/commentRss/216238.html</wfw:commentRss><trackback:ping>http://www.2676208.com/aaxron/services/trackbacks/216238.html</trackback:ping><description><![CDATA[<p>spring 瀹樻柟?#31493;?#27975;鍦板潃锛圫pring Framework 3.2.x&Spring Framework 4.0.x锛?br />2017骞?2鏈?4鏃?15:53:59 </p> <p>SPRING瀹樻柟缃戠?#27408;敼鐗堝悗锛屽缓璁?#38318;?#37828;?#38315;?#26473;?Maven鍜孏radle?#31493;?#27975;锛屽涓?#28003;跨敤Maven鍜孏radle?#32017;鍙戦?#22317;洰鐨?#38171;屼笅?#27975;灏遍潪甯?#27001;荤儲锛屼笅缁?#37713;篠pring Framework jar瀹樻柟鐩?#37818;ヤ笅?#27975;璺?#23536;?</p> <p><a href="http://repo.spring.io/libs-release-local/org/springframework/spring/">http://repo.spring.io/libs-release-local/org/springframework/spring/</a></p> <p> </p> <p>spring 4.0.x(Spring Framework 4.0.5)?#31493;?#27975;</p> <p><a href="http://repo.spring.io/libs-release-local/org/springframework/spring/4.0.5.RELEASE/spring-framework-4.0.5.RELEASE-dist.zip">http://repo.spring.io/libs-release-local/org/springframework/spring/4.0.5.RELEASE/spring-framework-4.0.5.RELEASE-dist.zip</a></p> <p> </p> <p>spring 3.2.x锛圫pring Framework 3.2.9锛変笅?#27975;锛?/p> <p><a href="http://repo.spring.io/libs-release-local/org/springframework/spring/3.2.9.RELEASE/spring-framework-3.2.9.RELEASE-dist.zip">http://repo.spring.io/libs-release-local/org/springframework/spring/3.2.9.RELEASE/spring-framework-3.2.9.RELEASE-dist.zip</a></p> <p> </p> <p> </p> <p>spring 3.2.x锛圫pring Framework 3.2.4锛変笅?#27975;锛?/p> <p><a href="http://repo.springsource.org/libs-release-local/org/springframework/spring/3.2.4.RELEASE/spring-framework-3.2.4.RELEASE-dist.zip">http://repo.springsource.org/libs-release-local/org/springframework/spring/3.2.4.RELEASE/spring-framework-3.2.4.RELEASE-dist.zip</a></p> <p><br /> </p> <p>鍙pring security?#31493;?#27975;璺?#23536;?#38171;?/p> <p><a href="http://repo.spring.io/libs-release-local/org/springframework/security/spring-security/">http://repo.spring.io/libs-release-local/org/springframework/security/spring-security/</a></p> <p><a href="http://repo.spring.io/libs-release-local/org/springframework/security/spring-security/3.2.4.RELEASE/spring-security-3.2.4.RELEASE-dist.zip">http://repo.spring.io/libs-release-local/org/springframework/security/spring-security/3.2.4.RELEASE/spring-security-3.2.4.RELEASE-dist.zip</a></p><img src ="http://www.2676208.com/aaxron/aggbug/216238.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/aaxron/" target="_blank">澶╀笅</a> 2019-02-12 11:44 <a href="http://www.2676208.com/aaxron/archive/2019/02/12/216238.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;?#29825;?/a></div>]]></description></item><item><title>spring婧?#37934;?#37714;嗘瀽锛?锛堿nnotationMethodHandlerAdapterhttp://www.2676208.com/aaxron/archive/2018/04/11/215585.html澶╀笅澶╀笅Wed, 11 Apr 2018 08:40:00 GMThttp://www.2676208.com/aaxron/archive/2018/04/11/215585.htmlhttp://www.2676208.com/aaxron/comments/215585.htmlhttp://www.2676208.com/aaxron/archive/2018/04/11/215585.html#Feedback0http://www.2676208.com/aaxron/comments/commentRss/215585.htmlhttp://www.2676208.com/aaxron/services/trackbacks/215585.htmlpublic class AnnotationMethodHandlerAdapter extends WebContentGenerator
        
implements HandlerAdapter, Ordered, BeanFactoryAware {
    
//

    
public ModelAndView handle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        
return invokeHandlerMethod(request, response, handler);
    }

    
protected ModelAndView invokeHandlerMethod(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        ServletHandlerMethodResolver methodResolver 
= getMethodResolver(handler);
        Method handlerMethod 
= methodResolver.resolveHandlerMethod(request);
        ServletHandlerMethodInvoker methodInvoker 
= new ServletHandlerMethodInvoker(methodResolver);
        ServletWebRequest webRequest 
= new ServletWebRequest(request, response);
        ExtendedModelMap implicitModel 
= new BindingAwareModelMap();

        Object result 
= methodInvoker.invokeHandlerMethod(handlerMethod, handler, webRequest, implicitModel);
        ModelAndView mav 
=
                methodInvoker.getModelAndView(handlerMethod, handler.getClass(), result, implicitModel, webRequest);
        methodInvoker.updateModelAttributes(handler, (mav 
!= null ? mav.getModel() : null), implicitModel, webRequest);
        
return mav;
    }

    
public ModelAndView getModelAndView(Method handlerMethod, Class<?> handlerType, Object returnValue,
            ExtendedModelMap implicitModel, ServletWebRequest webRequest) 
throws Exception {}
}


鍏?#28000;?
public final class Method extends Executable {
    
public Object invoke(Object obj, Object args)
    
throws IllegalAccessException, IllegalArgumentException,InvocationTargetException
    {
        
if (!override) {
            
if (!Reflection.quickCheckMemberAccess(clazz, modifiers)) {
                Class
<?> caller = Reflection.getCallerClass();
                checkAccess(caller, clazz, obj, modifiers);
            }
        }
        MethodAccessor ma 
= methodAccessor;             // read volatile
        if (ma == null) {
            ma 
= acquireMethodAccessor();
        }
        
return ma.invoke(obj, args);
    }
}
public class ModelMap extends LinkedHashMap<String, Object> {}

public abstract class AbstractView extends WebApplicationObjectSupport implements View, BeanNameAware {
    
/**
     * Prepares the view given the specified model, merging it with static
     * attributes and a RequestContext attribute, if necessary.
     * Delegates to renderMergedOutputModel for the actual rendering.
     * 
@see #renderMergedOutputModel
     
*/
    @Override
    
public void render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response) throws Exception {
        
if (logger.isTraceEnabled()) {
            logger.trace(
"Rendering view with name '" + this.beanName + "' with model " + model +
                
" and static attributes " + this.staticAttributes);
        }

        Map
<String, Object> mergedModel = createMergedOutputModel(model, request, response);
        prepareResponse(request, response);
        renderMergedOutputModel(mergedModel, getRequestToExpose(request), response);
    }
}
浠?#37934;?#38171;?br />

]]>spring婧?#37934;?#37714;嗘瀽锛?锛塂ispatcherServlethttp://www.2676208.com/aaxron/archive/2018/04/11/215584.html澶╀笅澶╀笅Wed, 11 Apr 2018 08:39:00 GMThttp://www.2676208.com/aaxron/archive/2018/04/11/215584.htmlhttp://www.2676208.com/aaxron/comments/215584.htmlhttp://www.2676208.com/aaxron/archive/2018/04/11/215584.html#Feedback0http://www.2676208.com/aaxron/comments/commentRss/215584.htmlhttp://www.2676208.com/aaxron/services/trackbacks/215584.htmlpublic class DispatcherServlet extends FrameworkServlet {
    
private List<HandlerMapping> handlerMappings;

    
protected void doService(HttpServletRequest request, HttpServletResponse response) throws Exception {
        doDispatch(request, response);
    }
    
    
protected void doDispatch(HttpServletRequest request, HttpServletResponse response) throws Exception {
        HttpServletRequest processedRequest 
= request;
        HandlerExecutionChain mappedHandler 
= null;
        
boolean multipartRequestParsed = false;
        
try {
            ModelAndView mv 
= null;
            Exception dispatchException 
= null;
            
try {
                processedRequest 
= checkMultipart(request);
                multipartRequestParsed 
= (processedRequest != request);

                
// Determine handler for the current request.  //鏄?#28751;?#28598;勭悊鍣?/span>
                mappedHandler = getHandler(processedRequest); //HandlerExecutionChain
                if (mappedHandler == null || mappedHandler.getHandler() == null) {
                    noHandlerFound(processedRequest, response);
                    
return;
                }

                
// Determine handler adapter for the current request. //閫傞厤澶勭悊鍣?/span>
                HandlerAdapter ha = getHandlerAdapter(mappedHandler.getHandler());

                
if (!mappedHandler.applyPreHandle(processedRequest, response)) {
                    
return;
                }

                
// Actually invoke the handler. 
                mv = ha.handle(processedRequest, response, mappedHandler.getHandler());

                applyDefaultViewName(processedRequest, mv); 
                mappedHandler.applyPostHandle(processedRequest, response, mv);
            }

            
//?#35206;鏌?#29785;嗗浘
            processDispatchResult(processedRequest, response, mappedHandler, mv, dispatchException); 
        }
        
catch (Exception ex) {
            triggerAfterCompletion(processedRequest, response, mappedHandler, ex);
        }
        
finally {
        }
    }
    
private void processDispatchResult(HttpServletRequest request, HttpServletResponse response,
        HandlerExecutionChain mappedHandler, ModelAndView mv, Exception exception) 
throws Exception {
        
// Did the handler return a view to render?
        if (mv != null && !mv.wasCleared()) {
            render(mv, request, response);
        }
        
else {
            
if (logger.isDebugEnabled()) {
                logger.debug(
"Null ModelAndView returned to DispatcherServlet with name '" + getServletName() +
                        
"': assuming HandlerAdapter completed request handling");
            }
        }
        
if (mappedHandler != null) {
            mappedHandler.triggerAfterCompletion(request, response, 
null);
        }
    }
    
    
protected void render(ModelAndView mv, HttpServletRequest request, HttpServletResponse response) throws Exception {
        
// Determine locale for request and apply it to the response.
        Locale locale = this.localeResolver.resolveLocale(request);
        response.setLocale(locale);

        View view;
        
if (mv.isReference()) {
            
// We need to resolve the view name.
            view = resolveViewName(mv.getViewName(), mv.getModelInternal(), locale, request);
            
if (view == null) {
                
throw new ServletException("Could not resolve view with name '" + mv.getViewName() +
                        
"' in servlet with name '" + getServletName() + "'");
            }
        }
        
else {
            
// No need to lookup: the ModelAndView object contains the actual View object.
            view = mv.getView();
            
if (view == null) {
                
throw new ServletException("ModelAndView [" + mv + "] neither contains a view name nor a " +
                        
"View object in servlet with name '" + getServletName() + "'");
            }
        }

        
// Delegate to the View object for rendering.
        if (logger.isDebugEnabled()) {
            logger.debug(
"Rendering view [" + view + "] in DispatcherServlet with name '" + getServletName() + "'");
        }
        
try {
            view.render(mv.getModelInternal(), request, response);
        }
        
catch (Exception ex) {
            logger.debug(
"Error rendering view [" + view + "] in DispatcherServlet with name '" +    getServletName() + "'", ex);
            
throw ex;
        }
}


]]>MoveWindow() SetWindowPos()鐨勫尯鍒?#28051;?#38001;?#32495;?/title><link>http://www.2676208.com/aaxron/archive/2017/05/17/214944.html</link><dc:creator>澶╀笅</dc:creator><author>澶╀笅</author><pubDate>Wed, 17 May 2017 10:56:00 GMT</pubDate><guid>http://www.2676208.com/aaxron/archive/2017/05/17/214944.html</guid><wfw:comment>http://www.2676208.com/aaxron/comments/214944.html</wfw:comment><comments>http://www.2676208.com/aaxron/archive/2017/05/17/214944.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.2676208.com/aaxron/comments/commentRss/214944.html</wfw:commentRss><trackback:ping>http://www.2676208.com/aaxron/services/trackbacks/214944.html</trackback:ping><description><![CDATA[<div style="font-size: 13px; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; width: 98%; border-bottom: #cccccc 1px solid; word-break: break-all; padding-bottom: 4px; padding-top: 4px; padding-left: 4px; border-left: #cccccc 1px solid; padding-right: 5px; background-color: #eeeeee"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000">MoveWindow() SetWindowPos()鐨勫尯鍒?#28051;?#38001;?#32495;?br /></span><span style="color: #008000">?#27974;?#22172;<a href="http://www.cnblogs.com/songliquan/p/3359002.html">http://www.cnblogs.com/songliquan/p/3359002.html</a><br /></span><span style="color: #000000"><br />鍏堢湅MoveWindow()鍑?#37825;?#38171;岀敤浜庢敼鍙樼獥鍙?#37928;?#28003;嶇疆鍜?#28751;哄锛屽浜?#26916;?#28766;傜獥鍙?#38171;?#37816;夌収灞忓箷瀵?#27067;?#28051;庡乏涓?#29785;?#38171;屽浜庡?#24878;獥鍙?#38171;?#37714;欏榻?#28051;庣?#21057;獥鍙?#37928;勫乏涓?#29785;?#37510;?br /><br />BOOL MoveWindow( HWND hWnd,</span><span style="color: #0000ff">int</span><span style="color: #000000"> x, </span><span style="color: #0000ff">int</span><span style="color: #000000"> y, </span><span style="color: #0000ff">int</span><span style="color: #000000"> nWidth, </span><span style="color: #0000ff">int</span><span style="color: #000000"> nHeight,BOOL bRepaint </span><span style="color: #000000">=</span><span style="color: #000000"> TRUE);<br />鍙傛暟hWnd琛?#32448;虹獥鍙?#37721;?#37836;?#38171;?br />鍙傛暟x,y琛?#32448;虹獥鍙?#37928;勫乏涓?#29785;?#29863;风偣锛?br />鍙傛暟nwidth锛宯Height 琛?#32448;虹獥鍙?#26946;?#25652;?#37724;?#28729;?#25652;?#38171;?br />?#28214;鍚?#28051;?#37340;bRepaint琛?#32448;烘槸鍚?#32468;?#37719;?#38322;嶇粯銆?#28051;簍rue鏃?#32495;荤粺浼氱珛鍗?#37721;?#38315;乄M_PAINT鍒扮獥鍙?#32459;嬪簭锛堜?#27699;皟?#25956;UpdateWindow()鍑?#37825;?#38171;?#38171;?#28051;篺alse鏃?#28051;嶄?#27692;?#25120;敓浠讳綍?#34987;鍨?#37928;?#38322;嶇粯鎿?#28003;?#37510;?br /><br />MoveWindow浼氱粰?#29541;鍙?#37721;?#38315;乄M_WINDOWPOSCHANGING锛學M_WINDOWPOSCHANGED锛學M_MOVE锛學M_SIZE鍜學M_NCCALCSIZE娑堟伅銆?br /><br />鎺ヤ笅鏉ョ湅SetWindowPos(),杩欎釜鍑?#37825;板悓鏍风敤鏉?#28729;?#37916;扮獥鍙?#32457;?#37716;?#37823;?#28003;?#38171;?#37721;?#28051;?#26473;?#37716;熻兘鏇?#28598;氫竴?#20579;銆?br /><br />BOOL SetWindowPos(HWND hWnd,</span><span style="color: #0000ff">const</span><span style="color: #000000"> CWnd</span><span style="color: #000000">*</span><span style="color: #000000"> pWndInsertAfter, </span><span style="color: #0000ff">int</span><span style="color: #000000"> x, </span><span style="color: #0000ff">int</span><span style="color: #000000"> y,</span><span style="color: #0000ff">int</span><span style="color: #000000"> cx, </span><span style="color: #0000ff">int</span><span style="color: #000000"> cy, UINT nFlags);<br />绗?#28051;?#37340;鍙傛暟鏄獥鍙?#37721;?#37836;?#38171;?br />绗?#27996;屼釜鍙傛暟鏄獥鍙?#37928;刏 order锛?#28751;?#37828;湁澶氫釜?#29541;鍙?#37827;?#38171;屾湰?#29541;鍙?#37828;剧ず鐨勯?#21700;簭锛屾渶涓婇潰鎴栬呮渶?#31493;?#28528;锛?#37721;?#38315;?#37721;傛暟?#28225;:HWND_BOTTOM,HWND_NOTOPMOST,HWND_TOP,HWND_TOPMOST.<br />HWND_BOTTOM锛氬?#21977;獥鍙g疆浜嶼?#31789;鐨勫簳閮?#37510;?#28641;傛灉鍙傛暟hWnd?#29219;璇?#27996;?#28051;?#37340;椤?#28766;傜獥鍙?#38171;?#37714;欑獥鍙?#28598;卞幓椤剁骇浣嶇疆锛屽苟涓?#29722;疆鍦?#37711;?#28000;栫獥鍙?#37928;勫簳閮?#37510;?nbsp; 銆銆 <br />HWND_NOTOPMOST锛氬?#21977;獥鍙g疆浜庢墍鏈夐潪椤?#28766;傜獥鍙?#28052;?#28051;?#38171;?#37719;?#37734;ㄦ墍鏈夐《灞傜獥鍙?#28052;嬪悗锛夈?#28641;傛灉?#29541;鍙?#23480;?#32513;?#37828;?#38344;?#26916;?#28766;傜獥鍙?#37714;?#29831;ユ爣蹇?#28051;?#29863;?#28003;滅敤銆?nbsp; 銆銆 <br />HWND_TOP:灏嗙獥鍙g疆浜嶼?#31789;鐨勯《閮?#37510;?nbsp; 銆銆 <br />HWND_TOPMOST:灏嗙獥鍙g疆浜庢墍鏈夐潪椤?#28766;傜獥鍙?#28052;?#28051;?#37510;?#37719;?#28003;跨獥鍙?#37832;?#29722;縺娲荤獥鍙?#28052;?#28751;?#28103;?#37816;?#26916;剁骇浣嶇疆銆?nbsp;<br />鎺ヤ笅鏉ュ洓?#37340;鍙傛暟鏄獥鍙?#37928;?#28003;嶇疆鍜?#28751;哄銆?br />?#28214;鍚?#28051;?#37340;鍙傛暟nFlags鏄獥鍙?#37828;剧?#28888;柟寮?#37928;勬爣蹇?#38171;?#26473;欎釜鍙傛?#26495;緢澶?#38171;?#37721;?#28000;?#32513;勫?#22556;?#36328;敤锛?#29831;?#32513;?#28641;備笅锛?br />SWP_ASNCWINDOWPOS锛氬?#20635;灉?#30367;?#25956;杩?#32459;?#28051;嶆嫢鏈夌獥鍙?#38171;?#32495;荤粺浼氬?#25118;嫢鏈夌獥鍙?#37928;勭?#36328;▼鍙戝?#27946;渶?#30512;銆?#26473;?#28751;遍?#21449;?#30367;?#25956;绾跨▼鍦?#37711;?#28000;?#32510;跨▼澶勭悊?#28214;?#30512;鐨勬?#36346;?#37721;戠?#29112;?#23130;攣銆?nbsp; 銆銆<br />SWP_DEFERERASE锛氶?#21449;浜?#37922;焀M_SYNCPAINT娑堟伅銆?nbsp; 銆銆<br />SWP_DRAWFRAME锛氬湪?#29541;鍙?#37723;ㄥ洿鐢?#28051;?#37340;杈规锛堝?#27691;箟鍦ㄧ獥鍙g被鎻?#26473;?#28051;?#38171;夈?nbsp; 銆銆<br />SWP_FRAMECHANGED锛氱粰?#29541;鍙?#37721;?#38315;乄M_NCCALCSIZE娑堟伅锛?#37719;?#28003;跨獥鍙?#28751;哄娌℃湁鏀?#37721;?#28052;?#28028;氬彂閫?#29831;?#23057;堟伅銆?#28641;傛灉鏈寚?#30078;杩欎釜?#29219;蹇?#38171;?#37721;湁鍦?#37824;?#37721;?#27996;嗙獥鍙?#28751;哄鏃?#37813;?#37721;?#38315;乄M_NCCALCSIZE銆?nbsp;<br />SWP_HIDEWINDOW;闅愯?#24533;獥鍙?#37510;?nbsp;<br />SWP_NOACTIVATE锛氫?#23942;縺娲荤獥鍙?#37510;?#28641;傛灉鏈?#29825;剧疆?#29219;蹇?#38171;?#37714;欑獥鍙?#29722;縺娲?#38171;屽苟琚?#29825;剧疆鍒板叾浠栨渶楂樼骇?#29541;鍙?#37812;?#38344;炴渶楂樼骇?#31885;鐨勯《閮?#38171;堟?#35268;嵁鍙傛暟hWndlnsertAfter璁剧疆锛夈?nbsp;<br />SWP_NOCOPYBITS锛?#23059;呴櫎瀹?#37812;?#37718;?#37928;勬墍鏈夊唴瀹?#37510;?#28641;傛灉鏈?#29825;剧疆璇ユ爣蹇?#38171;?#28729;?#37812;?#37718;?#37928;勬湁鏁堝唴瀹硅淇?#28699;?#39582;?#28051;?#37734;ㄧ獥鍙?#28751;哄鏇?#37826;板拰閲?#28729;氫綅鍚庢嫹璐濆洖瀹?#37812;?#37718;?#37510;?nbsp;<br />SWP_NOMOVE锛氱淮鎸?#35120;?#37715;?#28003;嶇疆锛堝拷鐣鍜孻鍙傛暟锛夈?nbsp; 銆銆<br />SWP_NOOWNERZORDER锛氫?#23942;敼鍙榸?#31789;涓?#37928;勬墍?#28225;鑰呯獥鍙?#37928;?#28003;嶇疆銆?nbsp;<br />SWP_NOREDRAW:涓?#38322;?#37922;?#37824;?#37721;?#37928;勫唴瀹?#37510;?#28641;傛灉璁剧疆浜?#26473;欎釜?#29219;蹇?#38171;?#37714;?#28051;?#37721;戠敓浠讳綍閲?#37922;?#37716;?#28003;?#37510;?#38315;傜敤浜庡鎴?#37718;?#37724;岄潪瀹?#37812;?#37718;?#38171;堝寘鎷爣棰?#37837;?#37724;屾?#27692;姩鏉?#38171;?#37724;?#28000;讳綍鐢?#27996;庣?#26944;洖绉?#37716;ㄨ岄湶鍑?#37928;勭?#21057;獥鍙?#37928;勬墍鏈夐儴鍒?#37510;?#28641;傛灉璁剧疆浜?#26473;欎釜?#29219;蹇?#38171;?#25652;旂敤绋嬪簭蹇呴』鏄庣‘鍦?#28003;跨獥鍙?#37827;犳?#22557;苟閲?#37922;荤獥鍙?#37928;?#28000;讳綍閮?#37714;?#37724;岀?#21057;獥鍙i渶瑕?#38322;?#37922;?#37928;?#38318;?#37714;?#37510;?nbsp;<br />SWP_NOREPOSITION锛?#28051;嶴WP_NOOWNERZORDER?#29219;蹇楃浉鍚?#37510;?nbsp; 銆   SWP_NOSENDCHANGING锛氶?#21449;?#29541;鍙?#37818;?#37824;禬M_WINDOWPOSCHANGING娑堟伅銆?nbsp;<br />SWP_NOSIZE锛氱淮鎸?#35120;?#37715;?#28751;哄锛堝拷鐣x鍜孋y鍙傛暟锛夈?nbsp;<br />SWP_NOZORDER锛氱淮鎸?#35120;?#37715;峑?#31789;锛堝拷鐣WndlnsertAfter鍙傛暟锛夈?nbsp;<br />SWP_SHOWWINDOW锛?#37828;剧?#34425;獥鍙?#37510;?br />娉?#37808;?#27996;?#26916;?#38171;?br />浣跨敤SetWindowPos()濡傛灉璁剧疆浜哠WP_SHOWWINDOWS鎴栬匰WP_HIDEWINDOW锛岄偅涔堢獥鍙?#28751;?#28051;嶈兘琚?#32457;?#37716;?#37724;?#37824;?#37721;?#28598;?#28751;?#38171;?#37812;?#28003;跨敤鏃?#28751;?#37828;?#29825;剧疆浜哠WP_SHOWWINDOW,浠庤屽鑷?#28051;嶈兘閲嶇?#27199;?#23678;櫙銆?br /><br />涓よ?#37928;勬?#26055;緝锛?br />涓よ呴兘?#20824;瀹?#37916;?#32457;?#37716;?#37724;?#37824;?#37721;樼獥鍙?#28598;?#28751;?#37510;?br /><br />MoveWindow()鍔熻兘姣旇緝鍗?#28051;锛?#37721;兘绉?#37716;?#37724;?#37824;?#37721;樼獥鍙?#28598;?#28751;?#38171;岃孲etWindowPos()鍙?#28000;?#29825;剧疆鏇?#28598;?#37928;勫?#20635;暟锛?#28729;?#37916;癦order鍙?#37828;剧?#28888;柟寮忔爣蹇?#37510;?br /><br />MoveWindow()鍙?#38315;乄M_WINDOWPOSCHANGING锛學M_WINDOWPOSCHANGED锛學M_MOVE锛學M_SIZE鍜學M_NCCALCSIZE绛?#23057;堟伅鍒扮獥鍙?#38171;孲etWindowPos()鍙?#37721;?#38315;乄M_WINDOWPOSCHANGED娑堟伅鍒扮獥鍙?#37510;傛墍浠?#29831;?#28641;傛灉?#28214;瑕?#37721;?#38315;佹洿澶?#23057;堟伅鏃?#26473;?#37828;?#28003;跨敤MoveWindow()鐨勫ソ銆?/span></div><img src ="http://www.2676208.com/aaxron/aggbug/214944.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/aaxron/" target="_blank">澶╀笅</a> 2017-05-17 18:56 <a href="http://www.2676208.com/aaxron/archive/2017/05/17/214944.html#Feedback" target="_blank" style="text-decoration:none;">鍙?#29723;?#29831;?#29825;?/a></div>]]></description></item><item><title>Xtreme ToolKit 鏃?#36423;?#37818;т欢http://www.2676208.com/aaxron/archive/2017/05/16/214936.html澶╀笅澶╀笅Tue, 16 May 2017 03:06:00 GMThttp://www.2676208.com/aaxron/archive/2017/05/16/214936.htmlhttp://www.2676208.com/aaxron/comments/214936.htmlhttp://www.2676208.com/aaxron/archive/2017/05/16/214936.html#Feedback0http://www.2676208.com/aaxron/comments/commentRss/214936.htmlhttp://www.2676208.com/aaxron/services/trackbacks/214936.html

/Files/aaxron/OppoTestX.rar

]]>MFC 绾跨▼浠?#37934;佺?#22248;http://www.2676208.com/aaxron/archive/2016/12/13/214480.html澶╀笅澶╀笅Tue, 13 Dec 2016 02:09:00 GMThttp://www.2676208.com/aaxron/archive/2016/12/13/214480.htmlhttp://www.2676208.com/aaxron/comments/214480.htmlhttp://www.2676208.com/aaxron/archive/2016/12/13/214480.html#Feedback0http://www.2676208.com/aaxron/comments/commentRss/214480.htmlhttp://www.2676208.com/aaxron/services/trackbacks/214480.html璨屼技 鎸?#29863;风?#36328;▼ 蹇呴』鍦?#28051;荤?#23684;潰鐨刄I绾跨?#23338;幓鎿?#28003;?/p>
UINT UiThreadProcessProtocol(LPVOID lParam)
{
    CCalcPPIView
* view = (CCalcPPIView*)lParam;
    DmcControler
* Dmc = &(view->Dmc);

    
while (1)
    {
        
//AfxTrace("%u \n",GetTickCount());
        Sleep(500);
    } 
    
return 0;
}

CWinThread
* m_ThreadProcessProtocol;
m_ThreadProcessProtocol 
= AfxBeginThread(UiThreadProcessProtocol,this);

void CCalcPPIView::OnBtnRegulate()
{
    
if (m_ThreadProcessProtocol!=NULL) {
        m_ThreadProcessProtocol
->SuspendThread();
        AfxTrace(
"SuspendThread() at %u \n",GetTickCount());
    }
    
    {
        CRegulate dlg(
this);
        dlg.DoModal();
    }
    
if (m_ThreadProcessProtocol!=NULL) {
        m_ThreadProcessProtocol
->ResumeThread();
        AfxTrace(
"ResumeThread() at %u \n",GetTickCount());
    }
}

void CCalcPPIView::CloseDevice(BOOL bUpdateUI )
{
    CCalcPPIView
* view = this;
    AfxTrace(
"CCalcPPIView::CloseDevice() Entry \n");

    Dmc.SetOpened(
0);

    
if (view->m_ThreadProcessProtocol!=NULL) {
        WaitForSingleObject(view
->m_ThreadProcessProtocol->m_hThread,INFINITE);
        view
->m_ThreadProcessPro NULL;
    }
}

 

 



]]>VB Scripthttp://www.2676208.com/aaxron/archive/2016/12/04/214460.html澶╀笅澶╀笅Sun, 04 Dec 2016 12:09:00 GMThttp://www.2676208.com/aaxron/archive/2016/12/04/214460.htmlhttp://www.2676208.com/aaxron/comments/214460.htmlhttp://www.2676208.com/aaxron/archive/2016/12/04/214460.html#Feedback0http://www.2676208.com/aaxron/comments/commentRss/214460.htmlhttp://www.2676208.com/aaxron/services/trackbacks/214460.htmlOn Error Resume Next
set oshell = CreateObject("WScript.Shell")
oshell.run 
"http://v.qq.com",0,false
WScript.quit


]]>c++ traits(1)http://www.2676208.com/aaxron/archive/2016/10/14/214333.html澶╀笅澶╀笅Fri, 14 Oct 2016 06:18:00 GMThttp://www.2676208.com/aaxron/archive/2016/10/14/214333.htmlhttp://www.2676208.com/aaxron/comments/214333.htmlhttp://www.2676208.com/aaxron/archive/2016/10/14/214333.html#Feedback0http://www.2676208.com/aaxron/comments/commentRss/214333.htmlhttp://www.2676208.com/aaxron/services/trackbacks/214333.html#pragma once
template 
<typename T>  
struct TraitsHelper;

template 
<typename T>  
struct TraitsHelper {  
    
static const bool isPointer = false;  
    
enum {IsPointer = false};
    
bool GetIsPointer()
    {
        
return IsPointer;
    }
};  
template 
<typename T>  
struct TraitsHelper<T*> {  
    
static const bool isPointer = true;  
    
enum {IsPointer = true};
    
bool GetIsPointer()
    {
        
return IsPointer;
    }
};  

//call
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
    
int val = 0;
    
int* pVal = &val;
    TraitsHelper
<int> a;
    TraitsHelper
<int*> b;

    
bool b1 = a.IsPointer;
    
bool b2 = b.IsPointer;

    
bool b3 = a.GetIsPointer();

    
bool b4 = TraitsHelper<int>::IsPointer;
    
bool b5 = TraitsHelper<int*>::IsPointer;


    
return 0;
}


]]>Google Protocol Buffer 瀹夎鍜?#28003;跨敤http://www.2676208.com/aaxron/archive/2016/09/22/214289.html澶╀笅澶╀笅Thu, 22 Sep 2016 02:19:00 GMThttp://www.2676208.com/aaxron/archive/2016/09/22/214289.htmlhttp://www.2676208.com/aaxron/comments/214289.htmlhttp://www.2676208.com/aaxron/archive/2016/09/22/214289.html#Feedback0http://www.2676208.com/aaxron/comments/commentRss/214289.htmlhttp://www.2676208.com/aaxron/services/trackbacks/214289.htmlGoogle Protocol Buffer 瀹夎鍜?#28003;跨敤
?#31493;?#27975;锛?br /> https://codeload.github.com/google/protobuf/

?#28229;README.md

For non-C++ users, the simplest way to install the protocol compiler is to
download a pre-built binary from our release page:
[https://github.com/google/protobuf/releases]


?#31493;?#27975;C++鐨勭?#22559;湰锛?br /> https://github.com/google/protobuf/releases

杩?#37711;?#38171;歱rotobuf-3.0.2\cmake 鐩綍
?#25956;cmake 澶勭悊缂栬瘧

缂栬瘧榛?#29825;?#37928;?#28000;?#37934;?#37922;?#37812;?#37828;疢T锛?#28051;嶆槸MD

鍙渶瑕??#37340;宸?#32459;?#38171;?br /> libprotobuf鍜宲rotoc

缂栬瘧瀹?#37812;愪?#23338;悗锛?#37814;奿nclude鐩綍鎷?#29840;?#37713;?#37833;?br />
鏂板缓SearchRequest.proto鏂囦欢
message SearchRequest 
{
  required string query = 1;
  optional int32 page_number = 2;// Which page number do we want?
  optional int32 result_per_page = 3;// Number of results to return per page.
}

protoc.exe --cpp_out ./ SearchRequest.poto
#include "stdafx.h"
#include "SearchRequest.pb.h"

//#pragma comment(lib,"../Debug/MT/libprotobufd.lib")
#pragma comment(lib,"../Debug/MD/libprotobufd.lib")

int _tmain(int argc, _TCHAR* argv[])
{
    SearchRequest sr;

    sr.set_query("abcd",5);
    sr.set_page_number(0x1001);
    sr.set_result_per_page(0x1002);

    std::string data  = sr.SerializeAsString();

    SearchRequest sr2;

    sr2.ParseFromString(data);

    return 0;
}


]]> 探灵笔记系统攻略
安徽十一选五走势一定牛 北京五分赛走势图 江苏时时开奖号码走势图 深圳风采48期开奖结果 福建时时奖金规则 安徽时时计划软件qq 买大小单双彩票的平台 spbo 贵州11选五任三遗漏 白小姐ⅰ5码中特