<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>
MFC中调用WPF教程
-
muzizongheng的专栏
- CSDN博客
</title>
<script type="text/javascript">
try { document.domain = "csdn.net"; } catch (ex) { }
</script>
<script src="MFC%E4%B8%AD%E8%B0%83%E7%94%A8WPF%E6%95%99%E7%A8%8B_files/jquery.js" type="text/javascript"></script>
<script src="MFC%E4%B8%AD%E8%B0%83%E7%94%A8WPF%E6%95%99%E7%A8%8B_files/jquery_002.js" type="text/javascript"></script>
<script src="MFC%E4%B8%AD%E8%B0%83%E7%94%A8WPF%E6%95%99%E7%A8%8B_files/highlighter.js" type="text/javascript"></script>
<script src="MFC%E4%B8%AD%E8%B0%83%E7%94%A8WPF%E6%95%99%E7%A8%8B_files/common.js" type="text/javascript"></script>
<script src="MFC%E4%B8%AD%E8%B0%83%E7%94%A8WPF%E6%95%99%E7%A8%8B_files/AreaCounter.js" type="text/javascript"></script>
<script type="text/javascript" src="MFC%E4%B8%AD%E8%B0%83%E7%94%A8WPF%E6%95%99%E7%A8%8B_files/feedback.js"></script>
<script type="text/javascript" src="MFC%E4%B8%AD%E8%B0%83%E7%94%A8WPF%E6%95%99%E7%A8%8B_files/relatedarticle.js"></script>
<link
href="MFC%E4%B8%AD%E8%B0%83%E7%94%A8WPF%E6%95%99%E7%A8%8B_files/Valentine_1.css"
type="text/css" rel="stylesheet" media="all"><link
href="MFC%E4%B8%AD%E8%B0%83%E7%94%A8WPF%E6%95%99%E7%A8%8B_files/csdn_favbykimi.css"
type="text/css" rel="stylesheet" media="all"><link rel="Shortcut Icon"
href="http://profile.csdn.net/muzizongheng/picture/1.ico"><link
href="http://feeds.feedsky.com/csdn.net/muzizongheng" title="RSS"
type="application/rss+xml" rel="alternate"></head><body id="defaultuser">
<div id="csdnblog_allwrap">
<div id="csdnblog_midwrap">
<script src="MFC%E4%B8%AD%E8%B0%83%E7%94%A8WPF%E6%95%99%E7%A8%8B_files/pub_topnav.js" type="text/javascript"></script><link
rel="stylesheet" type="text/css"
href="MFC%E4%B8%AD%E8%B0%83%E7%94%A8WPF%E6%95%99%E7%A8%8B_files/pub_topnav.css"><div
class="public_channeltopnav"><table border="0" cellpadding="0"
cellspacing="0"><tbody><tr><td><a href="http://www.csdn.net/"
target="_blank" class="black_font">首页</a></td><td><a
href="http://news.csdn.net/" target="_blank" class="black_font">资讯</a></td><td><a
href="http://hi.csdn.net/" target="_blank" class="black_font">空间</a></td><td><a
href="http://student.csdn.net/" target="_blank" class="red_font">学生</a></td><td><a
href="http://bbs.csdn.net/" target="_blank" class="black_font">论坛</a></td><td><a
href="http://blog.csdn.net/" target="_blank" class="black_font">博客</a></td><td><a
href="http://download.csdn.net/" target="_blank" class="black_font">下载</a></td><td><a
href="http://book.csdn.net/" target="_blank" class="black_font">读书</a></td><td><a
href="http://wz.csdn.net/" target="_blank" class="black_font">网摘</a></td><td><a
href="http://www.programmer.com.cn/" target="_blank" class="black_font">程
序员</a></td><td><a href="http://prj.csdn.net/login/login.html"
target="_blank" class="black_font">外包</a></td><td><a
href="http://www.dearbook.com.cn/" target="_blank" class="black_font">书店</a></td><td><a
href="http://daohang.csdn.net/" target="_blank" class="black_font">网址</a></td><td><a
href="http://cto.csdn.net/" target="_blank" class="red_font ">CTO俱乐部</a></td><td><a
href="http://edu.csdn.net/" target="_blank" class="black_font">乐知教育</a></td><td
class="nolines"><a href="http://club.csdn.net/" target="_blank"
class="black_font">D9区</a></td></tr></tbody></table></div>
<script language="javascript" type="text/javascript">
// 页面加载完毕,脚本开始执行
$(document).ready(function() {
ChangeUserState();
$("#notice").find("a").click(HideNoticeInfo);
});
var userName = getCookie("activeUserName");
var isGuest = !userName || userName == "Guest";
var delay = 20 * 60 * 1000;
var timer = 0;
function ChangeUserState() {
clearInterval(timer);
if (isGuest) {
HideNoticeInfo();
}
else {
RefreshNoticeInfo();
timer = setInterval( RefreshNoticeInfo, delay);
}
}
var apiUrl = "/!handler/NoticeHandler.ashx?jsoncallback=?";
function RefreshNoticeInfo() {
$.getJSON(apiUrl + "&_t=" + Math.random(), function(result) {
if (result.noticeNum) {
newNoticeCount = result.noticeNum;
if (newNoticeCount <= 0) {
$("#notice").hide();
}
else {
$("#noticeCount").text(newNoticeCount);
$("#notice").show();
}
}
});
}
function HideNoticeInfo() {
$("#notice").hide();
}
</script>
<div id="csdnblog_header">
<h1>
<a href="http://blog.csdn.net/muzizongheng">
muzizongheng的专栏</a></h1>
<h2>
</h2>
<ul id="personalnav">
<li style="display: none;" id="notice"><span class="newnotice"><a
class="red" href="http://hi.csdn.net/space-notice.html" target="_blank"
onclick="LogClickCount(this,216);"><span id="noticeCount"></span>条新通知</a></span></li>
<li style=""><a id="a_login"
href="http://passport.csdn.net/UserLogin.aspx?from=http%3A%2F%2Fblog.csdn.net%2Fmuzizongheng%2Farchive%2F2010%2F05%2F07%2F5565170.aspx">
登录</a></li>
<li style=""><a id="a_register"
href="http://passport.csdn.net/CSDNUserRegister.aspx" target="_blank">注册</a></li>
<li style="display: none;"><a id="a_welcome"
href="http://hi.csdn.net/" target="_blank">
欢迎</a></li>
<li style="display: none;"><a id="a_exit"
href="http://writeblog.csdn.net/Signout.aspx">
退出</a></li>
<li style="display: none;"><a id="a_myblog"
href="http://blog.csdn.net/">我的博客</a></li>
<li style="display: none;"><a id="a_configure"
href="http://writeblog.csdn.net/configure.aspx" target="_blank">配置</a></li>
<li style="display: none;"><a id="a_postedit"
href="http://writeblog.csdn.net/PostEdit.aspx" target="_blank">写文章</a></li>
<li style="display: none;"><a id="a_postlist"
href="http://writeblog.csdn.net/PostList.aspx" target="_blank">文章管理</a></li>
<li><a id="a_bloghome" href="http://blog.csdn.net/"
target="_blank">博客首页</a></li>
</ul>
<ul id="blogsearchsty">
<li>
<input id="inputSearch" class="bolgsearch" type="text"></li>
<li class="selectsty">
<select name="Search:ddlSearchScope"
id="Search_ddlSearchScope">
<option selected="selected" value="all">全站</option>
<option value="muzizongheng">当前博客</option>
</select>
</li>
<li>
<input id="buttonSearch" value="搜索" class="bolggobtn"
type="button"></li>
</ul>
<ul id="menu">
<li><a href="http://hi.csdn.net/muzizongheng" target="_blank">空间</a></li>
<li><a class="on" href="http://blog.csdn.net/muzizongheng">博客</a></li>
<li><a href="http://hi.csdn.net/%21s/friend/list/muzizongheng"
target="_blank">好友</a></li>
<li><a href="http://hi.csdn.net/%21s/album/list/muzizongheng"
target="_blank">相册</a></li>
<li><a class="last"
href="http://hi.csdn.net/%21s/wall/to/muzizongheng" target="_blank">
留言</a></li>
</ul>
</div>
<script type="text/javascript">
var CurrentUserName = 'muzizongheng';
</script>
<div id="csdnblog_sidebar">
<div class="gutter">