<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CDialogBar Create &#8211; WilliamKyle&#039;s Home</title>
	<atom:link href="https://www.williamkyle.com.cn/archives/tag/cdialogbar-create/feed" rel="self" type="application/rss+xml" />
	<link>https://www.williamkyle.com.cn</link>
	<description>不积跬步，无以至千里；不积小流，无以成江海。</description>
	<lastBuildDate>Fri, 08 Apr 2022 14:37:54 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.2</generator>
	<item>
		<title>Visual C++ 6.0 CDialogBar Create 出错解决方案</title>
		<link>https://www.williamkyle.com.cn/archives/141.html</link>
					<comments>https://www.williamkyle.com.cn/archives/141.html#respond</comments>
		
		<dc:creator><![CDATA[WilliamKyle]]></dc:creator>
		<pubDate>Mon, 27 Feb 2012 13:18:53 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[CDialogBar Create]]></category>
		<category><![CDATA[MFC]]></category>
		<category><![CDATA[Visual C++ 6.0]]></category>
		<guid isPermaLink="false">http://www.williamkyle.com.cn/?p=141</guid>

					<description><![CDATA[今天打算弄一个工具栏，于是设计了一个对话框，然后建立一个 CDialogBar 对象，可是在 Create 的 &#8230; <a href="https://www.williamkyle.com.cn/archives/141.html" class="more-link">继续阅读<span class="screen-reader-text">Visual C++ 6.0 CDialogBar Create 出错解决方案</span></a>]]></description>
										<content:encoded><![CDATA[
<p>今天打算弄一个工具栏，于是设计了一个对话框，然后建立一个 CDialogBar 对象，可是在 Create 的时候老是出错，报错地点如下：</p>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" src="//www.williamkyle.com.cn/wp-content/uploads/ckfinder/images/141.jpg" alt=""/></figure></div>



<pre class="wp-block-code has-dark-gray-color has-text-color"><code lang="cpp" class="language-cpp">File:bardlg.cpp
Line:48</code></pre>



<p>然后看了一下别人的建立过程，发现别人建立对话框的时候，是直接建立的 <strong>IDD_DIALOGBAR</strong> 的对话框，于是比较了 <strong>IDD_DIALOGBAR</strong> 和 <strong>IDD_DIALOG</strong> 的各种参数，发现只要把建立的 <strong>IDD_DIALOG</strong> 对话框的属性改一下就可以了。<br /></p>



<p>样式：下层；边框：无；<br />更多样式：取消可见</p>



<p>其他的设置没有测试，默认的对话框按以上设置之后就能当作工具栏使用了。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.williamkyle.com.cn/archives/141.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
