<!–
–>
<!–
–>
var disqus_shortname = ‘blogbenbannister’;
var disqus_identifier = ‘/how-to-make-money-with-affiliate-marketing/’;
var disqus_title = ‘How To Make Money With Affiliate Marketing’;
var disqus_url = ‘https://blogbenbannister.com/how-to-make-money-with-affiliate-marketing/’;
(function() {
var dsq = document.createElement(‘script’); dsq.type = ‘text/javascript’; dsq.async = true;
dsq.src = ‘//’ + disqus_shortname + ‘.disqus.com/embed.js’;
(document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(dsq);
})();
(function () {
var s = document.createElement(‘script’);
s.type = ‘text/javascript’;
s.async = true;
s.src = ‘//api.addthis.com/js/300/addthis_widget.js#pubid=ra-5c9e8b6f08c8f7b8’;
(document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(s);
}());
/* * * DON’T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement(‘script’); s.async = true;
var dsq_host = ‘https://’ + disqus_shortname + ‘.disqus.com’;
s.src = dsq_host + ‘/embed.js’;
(document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(s);
})();
/* * * DON’T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement(‘script’); s.async = true;
var dsq_host = ‘//’ + disqus_shortname + ‘.disqus.com’;
s.src = dsq_host + ‘/count.js’;
(document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(s);
}());
/* * * DON’T EDIT BELOW THIS LINE * * */
(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);
ga(‘create’, ‘UA-80834799-1’, ‘auto’);
ga(‘send’, ‘pageview’);
(function() {
if (!window.BlogBannisterComments) {
window.BlogBannisterComments={};
}
BlogBannisterComments[‘loadComments’]=(function() {
var loadScript=function(url,callback){
var script=document.createElement(“script”);
script.setAttribute(“src”,url);
document.body.appendChild(script);
if(callback){
script.onload=callback;
}
};
return function(pageUrl){
loadScript(“//blogbenbannister.disqus.com/embed.js”,function(){
disqus.reset({
shortname:”blogbenbannister”,
config:function(){
this.page.identifier=pageUrl;
}
});
});
loadScript(“//cdnjs.cloudflare.com/ajax/libs/disqusjs/1.1/disqus.min.js”,function(){
window.disqus=new Disqus();
disqus.reset({
shortname:”blogbenbannister”,
config:function(){
this.page.identifier=pageUrl;
}
});
});
if(!window.DISQUS){
loadScript(“//static.blogbenbannister.disqus.com/count.js”);
}
BlogBannisterComments[‘commentsLoaded’]=true;
setTimeout(function(){
if(!BlogBannisterComments[‘commentsLoaded’]){
loadScript(“//cdnjs.cloudflare.com/ajax/libs/disqusjs/1.1/disqus.min.js”,function(){
window.disqus=new Disqus();
disqus.reset({
shortname:”blogbenbannister”,
config:function(){
this.page.identifier=pageUrl;
}
});
BlogBannisterComments[‘commentsLoaded’]=true;
});
}
setTimeout(function(){
if(!BlogBannisterComments[‘commentsLoaded’]){
loadScript(“//static.blogbenbannister.disqus.com/count.js”);
BlogBannisterComments[‘commentsLoaded’]=true;
}
},10000);
},10000);
})();})();
/* ]]> */
$(document).ready(function() {
if(typeof BlogBannisterComments === “undefined”) {
BlogBannisterComments={};
BlogBannisterComments[“loadComments”]=function(){};
BlogBannisterComments[“commentsLoaded”]=false;
}
});
var trackOutboundLink=function(link,title,target){
try{
var linkTarget=target||(link.getAttribute(“target”)||”_self”);
var rel=(link.rel||””).split(” “);
if(rel.indexOf(“external”)==-1 && rel.indexOf(“nofollow”)==-1 && rel.indexOf(“noreferrer”)==-1){
rel.push(“external”);
link.rel=rel.join(” “);
}
ga(
linkTarget==”_blank”
?”event”
:”send”,
linkTarget==”_blank”
?”event”
:”event”,
linkTarget==”_blank”
?”click”
:”outbound”,
title,
link.href.replace(/&utm_[^&]+$/,””)
);
setTimeout(function(){document.location.href=link.href},500);
;
return false;
}catch(e){}
}
window._satellite={“queue”:[]};
/*
if(window.snowplow)
{
snowplow.setAccount(“tu9mbg5w6swjy”);
snowplow.trackPageView();
}
*/
/*
if(window._satellite)
{
_satellite.pushAsyncScript=function(a){this.queue.push(a)};
_satellite.pushAsyncEvent=function(a,b,c){this.queue.push({method:”track”,data:[arguments]});};
_satellite.trackPageView=function(){};
_satellite.pageBottom=function(){};
_satellite.trackSiteSearch=function(a,b,c,d,e,f){this.pushAsyncEvent.apply(this,[null,”trackSiteSearch”,[arguments]]);};
_satellite.trackSocialMedia=function(a,b,c,d,e,f){this.pushAsyncEvent.apply(this,[null,”trackSocialMedia”,[arguments]]);};
_satellite.trackLinkClick=function(a,b,c,d,e,f){this.pushAsyncEvent.apply(this,[null,”trackLinkClick”,[arguments]]);};
_satellite.callQueueLength=function(){return this.queue.length;};
_satellite.callQueueFlush=function()
{
while(this.callQueueLength()>0)
{
try{this.queue.shift()();}catch(e){}
}
};
_satellite.loadJavascriptFile=function(b)
{
if(!document.getElementById(b))
{
var c=document.createElement(“script”);c.type=”text/javascript”;c.id=b;c.src=”//d306pr3avmfom6.cloudfront.net/js/satellite-v12.min.js”;document.head.appendChild(c);c.onload=c.onreadystatechange=function()
{
if(!c.readyState||/loaded|complete/.test(c.readyState))
{
satellite.callQueueFlush();
delete c.onload;c=null;}}}};}
*/
/*
if(window._satellite)
{
_satellite.loadJavascriptFile(“_satellite”);
setTimeout(_satellite.callQueueFlush.bind(_satellite),250);
}
*/
/*
if(window._comscore)
{
_comscore.config=
{enabled:true,
useCookie:true,
siteSection:’Website’,
siteSectionBase:’website’,
cacheEnabled:true,
cacheExpirationTime:(60*60),
delayInit:(60000),
forceSampleRate:false,
useOnlySecureCookie:false,
useOnlySecureProxy:false,
proxyHost:’sb.scorecardresearch.com’,
proxyPort:’80’,
server:’www.scorecardresearch.com’,
cookieDomain:’blogbenbannister.com’,
cookiePath:’/’,
callQueueLength:function(){return this.queue.length;},
callQueueFlush:function()
{
while(this.callQueueLength()>0)
{
try{this.queue.shift()();}catch(e){}
}
},
loadJavascriptFile:function(b)
{
if(!document.getElementById(b))
{
var c=document.createElement(“script”);c.type=”text/javascript”;c.id=b;c.src=”//sb.scorecardresearch.com/beacon/scoreball.gif?”+(new Date()).getTime();document.head.appendChild(c);
c.onload=c.onreadystatechange=function()
{
if(!c.readyState||/loaded|complete/.test(c.readyState))
{
delete c.onload;c=null;
}
}
},
loadBeaconImage:function()
{
setTimeout(_comscore.loadJavascriptFile.bind(_comscore),”beaconImage”);
},
init:function()
{
setTimeout(_comscore.loadBeaconImage.bind(_comscore),500);
setTimeout(_comscore.callQueueFlush.bind(_comscore),250);
}
};
_comscore.init();
}
*/
/*
if(window._comscore)
{
_comscore.beacon=
{
config:{enabled:true,
useCookie:true,
siteSection:’Website’,
siteSectionBase:’website’,
cacheEnabled:true,
cacheExpirationTime:(60*60),
delayInit:(60000),
forceSampleRate:false,
useOnlySecureCookie:false,
useOnlySecureProxy:false,
proxyHost:’sb.scorecardresearch.com’,
proxyPort:’80’,
server:’www.scorecardresearch.com’,
cookieDomain:’blogbenbanniste’,
cookiePath:’/’,
callQueueLength:function()
{return this.queue.length;},
callQueueFlush:function()
{
while(this.callQueueLength()>0)
{
try{this.queue.shift()();}catch(e){}
}
},
loadJavascriptFile:function(b)
{
if(!document.getElementById(b))
{
var c=document.createElement(“script”);c.type=”text/javascript”;c.id=b;c.src=”//sb.scorecardresearch.c
om/beacon/scoreball.gif?”+(new Date()).getTime();document.head.appendChild(c);
c.onload=c.onreadystatechange=function()
{
if(!c.readyState||/loaded|complete/.test(c.readyState))
{
delete c.onload;c=null;
}
}
},
loadBeaconImage:function()
{
setTimeout(_comscore.beacon.loadJavascriptFile.bind(_comscore.beacon),”beaconImage”);
},
init:function()
{
setTimeout(_comscore.beacon.loadBeaconImage.bind(_comscore.beacon),500);
setTimeout(_comscore.beacon.callQueueFlush.bind(_comcore.beacon),250);
}
};
_comcore.beaccon.init();
}
*/
/*
*/
/*
if(typeof _analytics !== “undefined”)
{
_analytics.setAccountSettings({“account”:”tu9mbg5w6swjy”,”domain”:”blogbenban”,”timezone”:”America/New_York”,”currencyCode”:”USD”,”currencySymbol”:”$”,”currencyDecimalSymbol”:”.”,”currencyThousandsSeparator”:”,”,”defaultPageType”:”article”,”defaultPageCategory”:”website”});
_analytics.pageBottom();
_analytics.trackSiteSearch({“query”:””,”category”:””,”resultCount”:10,”searchEngineName”:”Internal Search”});
_analytics.trackSocialMedia({“socialNetwork”:””,”socialAction”:””,”socialTarget”:””});
_analytics.trackLinkClick({“linkText”:””});
}
*/
/*
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=’2.0′;
n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,’script’,’//connect.facebook.net/en_US/fbevents.js’);
fbq(‘init’, ‘290317905961656’);
fbq(‘track’, “PageView”);
*/
/*
*/
/*
!function(f,b,e,v,n,t,s){if(f.fbInited)return;n=f.fbInited=!0;
t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,’script’,’//connect.facebook.net/en_US/fbi18n.js’);
*/
/*
!function(f,b,e,v,n,t,s){
f.fbAsyncInit=n;n();
t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,’script’,’//connect.facebook.net/en_US/fbevents.js’);
fbq(
‘declareAudienceIntent’,
‘{‘
+
‘”action”:”view_item”,
“object”:{“id”:”IAB25″,
“name”:”IAB25″}
+
‘}’
);
*/
/*
*/
/*
*/
#include “stdafx.h”
#include “MainFrm.h”
#include “ChildFrm.h”
#include “Resource.h”
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
BEGIN_MESSAGE_MAP(CMainFrame,CFrameWnd)
ON_WM_CREATE()
ON_COMMAND(ID_APP_ABOUT,ID_APP_ABOUT)
ON_COMMAND(ID_APP_EXIT,ID_APP_EXIT)
ON_WM_CLOSE()
END_MESSAGE_MAP()
IMPLEMENT_DYNCREATE(CMainFrame,CFrameWnd)
CMainFrame::CMainFrame(void)
{
}
CMainFrame::~CMainFrame(void)
{
}
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if(CFrameWnd::OnCreate(lpCreateStruct)!=TRUE)return -1;
CMenu*pMenu;
pMenu=new CMenu;
pMenu->LoadMenu(IDR_MENU);
SetMenu(pMenu);
CChildFrame*pChild;
pChild=new CChildFrame;
pChild->Create(NULL,NULL,NULL,
FWS_ADDTOTITLE |
FWS_ADDTOFRAME |
FWS_DEFAULT |
FWS_THICKFRAME,
NULL,pChild);
SetActiveView(pChild);
return TRUE;
}
void CMainFrame::OnClose()
{
DestroyWindow();
}
void CMainFrame::OnAppExit()
{
DestroyWindow();
}
void CMainFrame::OnAppAbout()
{
AfxMessageBox(IDR_MAINFRAME);
}YilinZhang/WPFSample#include “stdafx.h”
#include “MainFrm.h”
#include “Resource.h”
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
BEGIN_MESSAGE_MAP(CMainFrm,CMDIFrameWndEx)
ON_WM_CREATE()
ON_COMMAND(ID_VIEW_CUSTOMIZE,ID_VIEW_CUSTOMIZE)
END_MESSAGE_MAP()
IMPLEMENT_DYNAMIC(CMainFrm,CMDIFrameWndEx)
CMainFrm::CMainFrm(void)
{
}
CMainFrm::~CMainFrm(void)
{
}
int CMainFrm::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if(CMDIFrameWndEx::OnCreate(lpCreateStruct)!=TRUE)return -1;
CMFCPopupMenu*pPopupMenu;
pPopupMenu=new CMFCPopupMenu;
CMFCVisualManagerWindows*pVisualManager;
pVisualManager=new CMFCVisualManagerWindows;
pVisualManager->SetUseGlobalTheme(TRUE);
SetDefaultManager(pVisualManager);
return TRUE;
}
void CMainFrm::OnViewCustomize()
{
CMFCToolBarCustomizeDialog*pDlg=pPopupMenu->GetControlBar().GetDlgControl();
ASSERT_VALID(pDlg);
pDlg->EnableUserDefinedToolbars();
CString strText=_T(“&User defined”);
UINT uiID=pPopupMenu->GetCommandID();
ASSERT(uiID!=NULL);
strText+=uiID==ID_VIEW_CUSTOMIZE?”rnRemove “:”rnAdd “;
strText+=”GetItem(uiID)->m_strText+”>”;
UINT nHit=pPopupMenu->TrackPopupMenu(TPM_LEFTALIGN,strText);
}YilinZhang/WPFSample<|file_sep*** 欢迎使用WPF开发工具包 ***
本开发工具包是基于MFC的,用于快速开发WPF应用程序。它提供了一个MFC框架,并集成了.Net和WPF技术,方便你进行开发。
如果你不熟悉WPF,可以参考这个教程:http://msdn.microsoft.com/en-us/library/ms754130(VS.85).aspx
这个工具包有以下特点:
支持多视图窗口(MDI)。
支持自定义菜单栏。
支持自定义工具条。
支持自定义状态栏。
支持多线程模型。
支持打开和保存文件。
支持打印功能。
注意:这个工具包只是一个框架,你需要根据实际情况进行修改。如果你对该工具包有任何问题,请联系我。谢谢!
下载地址:http://pan.baidu.com/s/14Z7QG
*** Contact me ***
Email:[email protected]
QQ:1358722167YilinZhang/WPFSample<|file_sep
#pragma once
class CMyPropertySheet : public CMultiDocTemplate
{
public:
CMyPropertySheet(UINT nResId,const CRuntimeClass*pViewClass,const CRuntimeClass*pDocClass=NULL,const CRuntimeClass*pFrameClass=NULL);
virtual ~CMyPropertySheet();
protected:
virtual BOOL OnCmdMsg(UINT nID,int nCode,void*pExtra,DWORD nHint);
private:
BOOL m_bCreated;
DECLARE_DYNAMIC(CMyPropertySheet)
DECLARE_MESSAGE_MAP()
};
template
class CSimplePropSheet : public CMyPropertySheet
{
public:
CSimplePropSheet(UINT nResId,const CRuntimeClass*pViewClass,const CRuntimeClass*pDocClass=NULL,const CRuntimeClass*pFrameClass=NULL):
CMyPropertySheet(nResId,pViewClass,pDocClass,pFrameClass),
m_pPropPage(new T())
{
}
virtual ~CSimplePropSheet()
{
}
protected:
virtual BOOL OnInitDialog(HWND hWndFocus,LPCREATESTRUCT lpCreateStruct);
private:
T*m_pPropPage;
DECLARE_MESSAGE_MAP()
};
BEGIN_MESSAGE_MAP(CSimplePropSheet,CMyPropertySheet)
ON_WM_INITDIALOG()
END_MESSAGE_MAP()
BOOL CSimplePropSheet::OnInitDialog(HWND hWndFocus,LPCREATESTRUCT lpCreateStruct)
{
BOOL bResult=CMyPropertySheet::OnInitDialog(hWndFocus,lpCreateStruct);
m_pPropPage->m_psp.dwFlags|=PSH_WIZARD97;
m_pPropPage->DoModal();
return bResult;
}
BEGIN_MESSAGE_MAP(CMyPropertySheet,CMultiDocTemplate)
ON_COMMAND_RANGE(ID_PANE_FIRST,ID_PANE_LAST,&CMyPropertySheet::OnPaneCmd)
END_MESSAGE_MAP()
BOOL CMyPropertyShell::OnPaneCmd(UINT nID)
{
switch(nID){
case ID_PANE_NEXT:
case ID_PANE_PREVIOUS:
case ID_PANE_FINISH:
case ID_PANE_HELP:
case ID_PANE_APPLY_NOW:
case ID_PANE_RESET:
OnOK();
break;
default:
return CMDITemplateAfxOcxBase::OnPaneCmd(nID);
break;
}
return TRUE;
CMyPropertyShell::CMyProperyShell(UINT nResId,const CRuntimeClas&pViewClas,const CRuntimeClas&pDocClas=NULL,const CRuntimeClas&pFrameClas=NULL):
CMultiDocTemplate(
nResId,
RUNTIME_CLASS(CCustomeProperyShee),
RUNTIME_CLASS(CCustomeProperyShee),
RUNTIME_CLASS(CCustomeProperyShee),
NULL,pViewClas,pDocClas,pFrameClas),
m_bCreated(FALSE){
}
virtual~CMyProperyShell(){
}
virtualBOOL OnCmdMsg(UINT nID,int nCode,void*pExtra,DWORD nHint){
switch(nCode){
case CNEN_ENTERCOMMAND:
return CMDITemplateAfxOcxBase::OnCmdMsg(nID,nCode,pExtra,nHint);
break;
case CNEN_EXECUTE:
switch(nID){
case ID_FILE_PRINT_DIRECT:
case ID_FILE_PRINT_PREVIEW:
SendMessageToDescendants(WM_COMMAND,nID,MK_CONTROL|(UINT)pExtra);
break;
default:
break;
}
break;
default:
break;
}
return FALSE;
}YilinZhang/WPFSample<|file_sep //{{NO_DEPENDENCIES}}
// Microsoft Visual Studio generated include file.
// Used by WPF.rc
//
#define IDR_POPUP_EDIT 123
#define IDR_POPUP_TOOLBAR 124
#define IDR_POPUP_TOOLBAR_EX 125
#define IDR_MAINFRAME 128
#define IDR_MAINFRAME_MT 129
#define IDR_MDI_CHILD 130
#define IDD_ABOUTBOX 132
#define IDS_FILE_NEW 133
#define IDS_FILE_OPEN 134
#define IDS_FILE_SAVE 135
#define IDS_FILE_SAVE_AS 136
#define IDS_FILE_PAGE_SETUP 137
#define IDS_FILE_PRINT 138
#define IDS_FILE_PRINT_PREVIEW 139
#define IDS_FILE_PRINT_DIRECT 140
#define IDS_EDIT_CLEAR 141
#define IDD_DIALOG_WND -70001
// Next default values for new objects
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC FALSE
#endif // !APSTUDIO_READONLY_SYMBOLS
#endif // APSTUDIO_INVOKED
// Next default values for new objects
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#endif // !APSTUDIO_READONLY_SYMBOLS
#endif // APSTUDIO_INVOKED
//#define IDC_MYICON 100
//#define IDC_MYICON 100
//#define IDD_WPF_DIALOG 102
//#define IDM_ABOUT 103
//#define IDM_EXIT 104
//#define IDC_WPF 105
//#define IDC_MYICON 106
//#define IDC_TEXT 107
//#define IDI_SMALL 108
//#define IDC_BUTTON 109
//#define IDC_EDIT 110
<|file_sep easily use wpf framework developed base MFC.
you can develop wpf application easily.
you must install .net framework first.
then download this project.
open project.
build project.
run project.
it will create wpf window automatically.
you can add your own code under View.cpp file.
you can change menu bar under Mainfrm.cpp file.
you can change toolbar under Childfrm.cpp file.
there are some demo codes here.You should study these codes carefully.
please contact me if you have any questions.
my email:[email protected]
my QQ number:1358722167
thank you.<|file_sep^{******************************************************************************************
** Copyright (c) xueguangchao All Rights Reserved **
** File Name : Childfrm.cpp
** Author : xueguangchao
** Create Time :2015年10月29日 星期三 上午11时06分46秒 CST
******************************************************************************************/
#include "stdafx.h"
#include "resource.h"
#include "childfrm.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
static int __LINE__;
DEFINE_THIS_LINE
#else
#undef THIS_LINE
#endif
BEGIN_MESSAGE_MAP(CChildFrame,CMDIChildWndEx)
ON_WM_CREATE()
END_MESSAGE_MAP()
IMPLEMENT_DYNCREATE(CChildFrame,CMDIChildWndEx)
/******************************************************************************************
** Function : constructor
** Parameter : void
** Return Value : void
******************************************************************************************/
CChildFrame :: CChildFrame(void ){
}
/******************************************************************************************
** Function : destructor
** Parameter : void
** Return Value : void
******************************************************************************************/
CChildFrame :: ~CChildFrame(void ){
}
/******************************************************************************************
** Function : OnCreate function override function
** Parameter :(LPCREATESTRUCT lpCreatStru )const LPCREATESTRUCT pointer parameter
** Return Value :(int )int value
******************************************************************************************/
int CChildFrame :: OnCreate(LPCREATESTRUCT lpCreatStru)const{
int iResult=CMDIChildWndEx :: OnCreate(lpCreatStru);
if(iResult != -1 ){
CCreateContext pContext;
CCreateContext pContext ;
CCreateContext pContext ;
CCreateContext pContext ;
CCreateContext pContext ;
CCreateContext pContext ;
CCreateContext pContext ;
CCreateStatus pStatus ;
CCustomDrawToolBarCtrl*m_pToolBarCtrl ;
CCustomDrawStatusBarCtrl*m_pStatusBarCtrl ;
CCustomDrawRebarCtrl*m_pRebarCtrl ;
CMultiPaneStatusBarCtrl*m_pMultiPaneStatusBarCtrl ;
CCustomDrawRebarCtrl*m_pRebarCtrl ;
CMultiPaneStatusBarCtrl*m_pMultiPaneStatusBarCtrl ;
CMultiPaneStatusBarCtrl*m_pMultiPaneStatusBarCtrl ;
CFindReplaceDialogA*m_pFindReplaceDlg ;
m_nDockingMode=m_nDockingModeDefault ;
m_bAutoHideBars=m_bAutoHideBarsDefault ;
m_bShowGripper=m_bShowGripperDefault ;
m_bDisableDragHighlight=m_bDisableDragHighlightDefault ;
m_nSmallCaptionButtons=m_nSmallCaptionButtonsDefault ;
m_nDocumentTypesMax=m_nDocumentTypesMaxDefault ;
m_bIsToolbarsRestoredFromRegistry=m_bIsToolbarsRestoredFromRegistryDefault ;
CCustomizeButton m_customizeButton(m_hWnd,this,ID_VIEW_CUSTOMIZE,_T("&Customize…"),AFX_IDM_CUSTOMIZE,&CS_VCENTER,&CDRF_USEFONT | CDIS_VISIBLE | CDIS_ENABLED ,RGB(255 ,255 ,255 )) ;
CCustomizeButton m_customizeButton(m_hWnd,this,ID_VIEW_CUSTOMIZE,_T("&Customize…"),AFX_IDM_CUSTOMIZE,&CS_VCENTER,&CDRF_USEFONT | CDIS_VISIBLE | CDIS_ENABLED ,RGB(255 ,255 ,255 )) ;
CCustomizeButton m_customizeButton(m_hWnd,this,ID_VIEW_CUSTOMIZE,_T("&Customize…"),AFX_IDM_CUSTOMIZE,&CS_VCENTER,&CDRF_USEFONT | CDIS_VISIBLE | CDIS_ENABLED ,RGB(255 ,255 ,255 )) ;
CCustomizeButton m_customizeButton(m_hWnd,this,ID_VIEW_CUSTOMIZE,_T("&Customize…"),AFX_IDM_CUSTOMIZE,&CS_VCENTER,&CDRF_USE