﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-JimCat</title><link>http://www.cppblog.com/JimCat/</link><description /><language>zh-cn</language><lastBuildDate>Tue, 09 Jun 2026 20:05:05 GMT</lastBuildDate><pubDate>Tue, 09 Jun 2026 20:05:05 GMT</pubDate><ttl>60</ttl><item><title>去除标题栏</title><link>http://www.cppblog.com/JimCat/archive/2006/08/23/11607.html</link><dc:creator>Jimc</dc:creator><author>Jimc</author><pubDate>Wed, 23 Aug 2006 06:33:00 GMT</pubDate><guid>http://www.cppblog.com/JimCat/archive/2006/08/23/11607.html</guid><wfw:comment>http://www.cppblog.com/JimCat/comments/11607.html</wfw:comment><comments>http://www.cppblog.com/JimCat/archive/2006/08/23/11607.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/JimCat/comments/commentRss/11607.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/JimCat/services/trackbacks/11607.html</trackback:ping><description><![CDATA[
		<p>
				<u>
						<font style="BACKGROUND-COLOR: #ffffff" color="#000000">方法一：使用API实现 </font>
				</u>
		</p>
		<p>
				<u>
						<font style="BACKGROUND-COLOR: #ffffff" color="#000000">//隐藏TitleBar<br />LONG lStyle = ::GetWindowLong(this-&gt;m_hWnd, GWL_STYLE);<br />::SetWindowLong(this-&gt;m_hWnd, GWL_STYLE, lStyle &amp; ~WS_CAPTION);<br />::SetWindowPos(this-&gt;m_hWnd, NULL, 0, 0, 0, 0,<br />SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED);</font>
				</u>
		</p>
		<p>
				<u>
						<font color="#800080">
								<font style="BACKGROUND-COLOR: #ffffff" color="#000000">// 显示TitleBar<br />::SetWindowLong(this-&gt;m_hWnd, GWL_STYLE, lStyle | WS_CAPTION);<br />::SetWindowPos(this-&gt;m_hWnd, NULL, 0, 0, 0, 0,??SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED);<br /><br />方法二：使用CWnd成员函数ModifyStyle实现<br />// 隐藏TitleBar<br />ModifyStyle(WS_CAPTION, 0, SWP_FRAMECHANGED);<br />// 显示TitleBar<br />ModifyStyle(0, WS_CAPTION, SWP_FRAMECHANGED);</font>
						</font>
				</u>
				<a href="/">
				</a>
		</p>
<img src ="http://www.cppblog.com/JimCat/aggbug/11607.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/JimCat/" target="_blank">Jimc</a> 2006-08-23 14:33 <a href="http://www.cppblog.com/JimCat/archive/2006/08/23/11607.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>