<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title><![CDATA[葛军 编程视频]]></title>
        <image>
        <title>http://hi.baidu.com</title>
        <link>http://hi.baidu.com</link>
        <url>http://img.baidu.com/img/logo-hi.gif</url>
        </image>
<description><![CDATA[——用更好的视频教程回报大家]]></description>
<link>http://hi.baidu.com/gj888</link>
<language>zh-cn</language>
<generator>www.baidu.com</generator>
<ttl>5</ttl>


<item>
        <title><![CDATA[严正声明:请盗版者自重!!!]]></title>
        <link><![CDATA[http://hi.baidu.com/gj888/blog/item/de21de3fee66fbcb7c1e71c0.html]]></link>
        <description><![CDATA[
		
		<p>　　近来发现一些图书作者，大肆抄袭本人原网易学院视频中心所发布的《全国计算机等级考试二级Visual Basic程序设计》视频教程（<a href="http://tech.163.com/special/000915SN/vbgreat.html">http://tech.163.com/special/000915SN/vbgreat.html</a> ）。这其中不乏一些国内知名图书作者，在这里，我将严正向他们提出停止盗版侵权、并公开在国内知名网站或媒体道歉的要求。否则，我将尽一切力量将此事诉诸法律，维护自己的知识产权。</p>
<p>　　以下是某部涉嫌抄袭本人视频教程的图书，在此公布如下：</p>
<p><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/gj888/pic/item/567687b155aab073082302ee.jpg"></p>
<p>　　该本书可在国内一些购书网站查到，例如：<a href="http://www.mingribook.com/index-5.html">http://www.mingribook.com/index-5.html</a> 。</p>
<p>　　其中涉嫌抄袭内容 举例：</p>
<div forimg="1"><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/gj888/pic/item/1d673cd38ce64f273bf3cfd4.jpg"></div>
<p> </p>
<p>　　如果广大网友朋友有看到此类图书或音像制品，还请提供相关线索，并顺便做一见证。定当感激不尽！</p>
<p align="right">葛军</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/gj888/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/gj888/blog/item/de21de3fee66fbcb7c1e71c0.html#comment">查看评论</a>]]></description>
        <pubDate>2009-07-17  21:45</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[gejun888]]></author>
		<guid>http://hi.baidu.com/gj888/blog/item/de21de3fee66fbcb7c1e71c0.html</guid>
</item>

<item>
        <title><![CDATA[如何在C#中调用API函数？]]></title>
        <link><![CDATA[http://hi.baidu.com/gj888/blog/item/047e9b23d344be4dac34de2f.html]]></link>
        <description><![CDATA[
		
		<p>这是一些C#初学者的疑问，我这里也回复一下，希望能够帮到更多需要的人。</p>
<p>C# 窗体界面：</p>
<p align="center" forimg="1"> </p>
<p align="center" forimg="1"><a target="_blank" href="http://hiphotos.baidu.com/gj888/pic/item/209115307a7a38bfa8018e4a.jpg"><img class="blogimg" border="0" small="1" src="http://hiphotos.baidu.com/gj888/abpic/item/209115307a7a38bfa8018e4a.jpg"></a></p>
<p align="left" forimg="1">全部代码如下：</p>
<p align="left" forimg="1"><font color="#ff0000">using System;<br>
using System.Collections.Generic;<br>
using System.ComponentModel;<br>
using System.Data;<br>
using System.Drawing;<br>
using System.Text;<br>
using System.Windows.Forms;<br>
using System.Runtime.InteropServices; </font><font color="#0000ff">//在使用API函数之前先要引用</font></p>
<p align="left" forimg="1"><font color="#ff0000">namespace WindowsApplication1<br>
{<br>
&nbsp;&nbsp;&nbsp;  public partial class Form1 : Form<br>
&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  public Form1()<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  InitializeComponent();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <font color="#0000ff">//显示隐藏任务栏，就需要首先找到该窗口，需用API&mdash;&mdash;<font color="#ff6600">FindWindow</font> 函数，懂得在VB中使用该函数，这里就不难了<br>
</font></font><font color="#ff0000"><font color="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //VB中该函数声明：<br>
</font></font><font color="#ff0000"><font color="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //</font></font><font color="#339966" size="2"><strong>Declare Function FindWindow Lib &quot;user32&quot; Alias &quot;FindWindowA&quot; (ByVal lpClassName As String, ByVal lpWindowName As String) As Long<br>
</strong></font><font color="#ff0000"><font color="#800000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <font color="#0000ff">//大家可以将其与C#中的声明对比下：</font><br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  [DllImport(&quot;user32.dll&quot;, EntryPoint = &quot;FindWindow&quot;, SetLastError = true)]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  static extern IntPtr FindWindow(string 类名, string 标题);</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff"> //显示窗口所用API&mdash;&mdash;<font color="#ff6600">ShowWindow</font>，VB声明如下：</font><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000ff"> //</font><font color="#339966" size="2"><strong>Declare Function ShowWindow Lib &quot;user32&quot; Alias &quot;ShowWindow&quot; (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long</strong> <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <font color="#0000ff">//而在C#中则为：<br>
</font></font><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  [DllImport(&quot;user32.dll&quot;, EntryPoint = &quot;ShowWindow&quot;, SetLastError = true)]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  static extern bool ShowWindow(IntPtr hWnd, uint nCmdShow);</font></p>
<p align="left" forimg="1"><br>
<font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  </font><font color="#0000ff">//系统菜单控制所用API以及常量<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //<font color="#ff6600">GetSystemMenu</font> 函数用于取得系统控制菜单，在VB中声明：<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //<font color="#339966"><strong>Private Declare Function GetSystemMenu Lib &quot;user32&quot; Alias &quot;GetSystemMenu&quot; (ByVal hwnd As Long, ByVal bRevert As Long) As Long<br>
</strong></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //在C#中则为：<br>
</font><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  [DllImport(&quot;user32.dll&quot;)]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  static extern IntPtr GetSystemMenu(IntPtr hwnd, bool bRevert);</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  </font><font color="#0000ff">//删除指定菜单条目，需要用<font color="#ff6600">DeleteMenu</font> 函数，在VB中声明为：<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //<font color="#339966"><strong>Private Declare Function DeleteMenu Lib &quot;user32&quot; Alias &quot;DeleteMenu&quot; (ByVal hMenu As Long, ByVal nPosition As Long, ByVal wFlags As Long) As Long<br>
</strong></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //在C#中则为：<br>
</font><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  [DllImport(&quot;user32.dll&quot;)]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  static extern bool DeleteMenu(IntPtr hMenu, uint uPosition, uint uFlags);</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  </font><font color="#0000ff">//禁用或启用某个菜单条目，需用 <font color="#ff6600">EnableMenuItem</font> 函数，在VB中声明为：<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //<font color="#339966"><strong>Private Declare Function EnableMenuItem Lib &quot;user32&quot; Alias &quot;EnableMenuItem&quot; (ByVal hMenu As Long, ByVal wIDEnableItem As Long, ByVal wEnable As Long) As Long<br>
</strong></font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //而在C#中为：<br>
</font><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  [DllImport(&quot;user32.dll&quot;)]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  static extern bool EnableMenuItem(IntPtr hMenu, uint uIDEnableItem, uint uEnable);</font></p>
<p align="left" forimg="1"><font color="#ff0000"><font color="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //删除指定菜单条目时所用消息常量声明：在VB中声明为：</font><br>
</font><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //<font size="2"><font color="#339966"><strong>Private Const SC_MOVE = &amp;HF010</strong></font><font color="#000000">&nbsp;&nbsp;  ' <a target="_blank" href="http://hiphotos.baidu.com/gj888/pic/item/b1a840908bb9f3aba877a4ee.jpg"><img class="blogimg" border="0" small="1" src="http://hiphotos.baidu.com/gj888/abpic/item/b1a840908bb9f3aba877a4ee.jpg"></a><br>
</font></font></font><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //<font color="#339966" size="2"><strong>Private Const SC_CLOSE = &amp;HF060</strong></font>&nbsp;&nbsp;  ' <a target="_blank" href="http://hiphotos.baidu.com/gj888/pic/item/a5e2db13154e02245baf53e9.jpg"><img class="blogimg" border="0" small="1" src="http://hiphotos.baidu.com/gj888/abpic/item/a5e2db13154e02245baf53e9.jpg"></a><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000ff"> //若在C#中声明，则为：</font><br>
</font><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  const uint SC_MOVE = 0xF010; //&quot;移动&quot;菜单<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  const uint SC_CLOSE = 0xF060;//&quot;关闭&quot;</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <font color="#0000ff">//下不再赘述，请大家和VB中的相应API以及常量相比较，还是那句话：编程是&ldquo;精一则通百&rdquo;，高级会员朋友对此应该理解最深：</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  const uint MF_BYCOMMAND = 0x00; //按命令方式<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  const uint MF_GRAYED = 0x01;&nbsp;&nbsp;&nbsp;  //变灰<br>
</font><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  const uint MF_DISABLED = 0x02; //不可用</font></p>
<p align="left" forimg="1"><br>
<font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //声音控制所用API及常量：<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  [DllImport(&quot;user32.dll&quot;, CharSet = CharSet.Auto, SetLastError = true)]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, uint wParam, uint lParam);</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  const uint WM_APPCOMMAND = 0x319;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  const uint APPCOMMAND_VOLUME_UP = 0x0a;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  const uint APPCOMMAND_VOLUME_DOWN = 0x09;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  const uint APPCOMMAND_VOLUME_MUTE = 0x08;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //****************************************************************************</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  private void button1_Click(object sender, EventArgs e) <font color="#0000ff">//打开记事本并发送F5 按钮单击事件</font><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  System.Diagnostics.Process p = new System.Diagnostics.Process();</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  string strPath = System.Environment.SystemDirectory + @&quot;\NotePad.exe&quot;;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(strPath); <font color="#0000ff">//打开记事本程序进程<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Maximized; <font color="#0000ff">//打开的记事本程序最大化<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  //startInfo.Arguments = &quot;123.txt&quot;;<font color="#0000ff"> //创建123.txt 文件<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  p.StartInfo = startInfo;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  p.Start();</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  p.WaitForInputIdle(1000); <font color="#0000ff">//<font color="#000000">使 </font><a href="ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.chs/cpref6/html/T_System_Diagnostics_Process.htm">Process</a></font><font color="#000000"> 组件等待关联进程进入空闲状态<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  if (p.Responding) <font color="#0000ff">//如果进程得到响应<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  DateTime dt = DateTime.Now; <font color="#0000ff">//取得当前日期和时间，在这里这一句也可不要，因为在记事本程序中F5就是用来插入当前日期和时间<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  SendKeys.SendWait(&quot;{F5}&quot;); <font color="#0000ff">//发送键F5<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  else <font color="#0000ff">//如果进程未得到响应<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  p.Kill(); <font color="#0000ff">//&ldquo;杀&rdquo;掉进程<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  } </font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  private void button2_Click(object sender, EventArgs e) <font color="#0000ff">//隐藏任务栏 按钮单击事件<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  IntPtr trayHwnd = FindWindow(&quot;Shell_TrayWnd&quot;, null);&nbsp;&nbsp;&nbsp;  </font><font color="#0000ff">//通过类名找到任务栏，任务栏类名为：</font><font color="#0000ff">Shell_TrayWnd ，使用方法同VB</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  if (trayHwnd != IntPtr.Zero)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ShowWindow(trayHwnd, 0);&nbsp;&nbsp;&nbsp;  </font><font color="#0000ff">//隐藏任务栏</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  private void button3_Click(object sender, EventArgs e) <font color="#0000ff">//显示任务栏 按钮单击事件</font><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  IntPtr trayHwnd = FindWindow(&quot;Shell_TrayWnd&quot;, null); </font><font color="#0000ff">//通过类名找到任务栏</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  if (trayHwnd != IntPtr.Zero)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ShowWindow(trayHwnd, 1);&nbsp;&nbsp;&nbsp;  </font><font color="#0000ff">//显示任务栏</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  private void button4_Click(object sender, EventArgs e) <font color="#0000ff">//隐藏系统菜单中的&ldquo;关闭&rdquo; 按钮单击事件，效果如图：</font> <a target="_blank" href="http://hiphotos.baidu.com/gj888/pic/item/b8d7c08085c78cf19023d9ab.jpg"><img class="blogimg" border="0" small="1" src="http://hiphotos.baidu.com/gj888/abpic/item/b8d7c08085c78cf19023d9ab.jpg"></a></font><font color="#0000ff">//获取程序系统菜单&ldquo;窗口&rdquo;的句柄</font></p>
<p align="left" forimg="1"><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  IntPtr hMenu = GetSystemMenu(this.Handle, false);</p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  if (hMenu != IntPtr.Zero)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  DeleteMenu(hMenu, SC_MOVE, MF_BYCOMMAND); <font color="#0000ff">//删除移动菜单，禁用系统菜单中的&ldquo;移动&rdquo;<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  EnableMenuItem(hMenu, SC_CLOSE, MF_BYCOMMAND | MF_GRAYED | MF_DISABLED); <font color="#0000ff">//禁用系统菜单以及右上角X&ldquo;关闭&rdquo;<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  private void button5_Click(object sender, EventArgs e) <font color="#0000ff">//提高音量 按钮单击事件<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  SendMessage(this.Handle, WM_APPCOMMAND, 0x30292, APPCOMMAND_VOLUME_UP * 0x10000);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  private void button7_Click(object sender, EventArgs e) <font color="#0000ff">//禁用或启用声音<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  SendMessage(this.Handle, WM_APPCOMMAND, 0x200eb0, APPCOMMAND_VOLUME_MUTE * 0x10000);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }</font></p>
<p align="left" forimg="1"><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  private void button6_Click(object sender, EventArgs e) <font color="#0000ff">//降低音量<br>
</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  SendMessage(this.Handle, WM_APPCOMMAND, 0x30292, APPCOMMAND_VOLUME_DOWN * 0x10000);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }<br>
&nbsp;&nbsp;&nbsp;  </font></p>
<p align="left" forimg="1">以上在VS2005+XP下测试通过。</p>
<p align="right" forimg="1"><font color="#800000">葛军</font></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/gj888/blog/category/%BC%C6%CB%E3%BB%FA%B1%E0%B3%CC%BC%BC%CA%F5%BD%BB%C1%F7">计算机编程技术交流</a>&nbsp;<a href="http://hi.baidu.com/gj888/blog/item/047e9b23d344be4dac34de2f.html#comment">查看评论</a>]]></description>
        <pubDate>2009-06-24  22:38</pubDate>
        <category><![CDATA[计算机编程技术交流]]></category>
        <author><![CDATA[gejun888]]></author>
		<guid>http://hi.baidu.com/gj888/blog/item/047e9b23d344be4dac34de2f.html</guid>
</item>

<item>
        <title><![CDATA[关于在VS 2005中设置字体等]]></title>
        <link><![CDATA[http://hi.baidu.com/gj888/blog/item/dd90bc000f67258ee850cd22.html]]></link>
        <description><![CDATA[
		
		<p>最近有一些朋友问我关于如何在VS2005中设置对象的字体以及大小、样式等属性，因为该问题具有普遍性，我特做解释，请大家参见本人百度贴吧回复：</p>
<p><a href="http://tieba.baidu.com/f?kz=597554081">http://tieba.baidu.com/f?kz=597554081</a></p>
<p>葛军</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/gj888/blog/category/%BC%C6%CB%E3%BB%FA%B1%E0%B3%CC%BC%BC%CA%F5%BD%BB%C1%F7">计算机编程技术交流</a>&nbsp;<a href="http://hi.baidu.com/gj888/blog/item/dd90bc000f67258ee850cd22.html#comment">查看评论</a>]]></description>
        <pubDate>2009-06-24  22:30</pubDate>
        <category><![CDATA[计算机编程技术交流]]></category>
        <author><![CDATA[gejun888]]></author>
		<guid>http://hi.baidu.com/gj888/blog/item/dd90bc000f67258ee850cd22.html</guid>
</item>

<item>
        <title><![CDATA[有关 在线辅导 事项 ,( 参加人数 已封顶，停止招收）]]></title>
        <link><![CDATA[http://hi.baidu.com/gj888/blog/item/cb67c9fddf2a334dd6887dbe.html]]></link>
        <description><![CDATA[
		
		<p>大家好：</p>
<p>　　这段时间一直有人问我在线辅导的问题，我也欢迎有新朋友加入，但是如果您加入辅导的目的只是为了纯粹的黑客以及入侵目的的话，那么就请您不要加入。在这里我需要对在线辅导的一些情况做一下说明：</p>
<p><strong>一、辅导内容：</strong></p>
<p>1、《程序员进阶宝典（VB篇）》所有内容，并附 视频教程打包发送；<br>
2、API 函数应用大全，针对大量API函数的应用，对其参数以及取值进行详细探讨；<br>
3、Visual Basic For Application ，揭示 Microsoft Office中的宏；<br>
4、网络编程：Winsock 控件以及Winsock API 编程；<br>
5、数据库编程：VB+Access (SQL Server)<br>
6、钩子编程（Hook），设置系统钩子、回调函数等;<br>
7、子类化 与 ActiveX DLL 编写应用、活指针；<br>
8、VB2005（VB2008）中的.net Framework 以及ASP.net</p>
<p><strong>二、辅导时间：</strong></p>
<p>1、周期：一年。<br>
2、具体安排：每周五、六、日晚在线集体讨论辅导，其余时间在线解问答疑。起初在我们专用群中交流，以后用我们自己编写的在线聊天工具交流。</p>
<p><strong>三、参加人员要求：</strong></p>
<p>有本人《国家二级VB视频教程》(<a href="http://tech.163.com/special/000915SN/vbgreat.html">http://tech.163.com/special/000915SN/vbgreat.html</a> 或 <a href="http://pcedu.pconline.com.cn/videoedu/asp/0903/1587195.html">http://pcedu.pconline.com.cn/videoedu/asp/0903/1587195.html</a>)学习基础，对编程有浓厚的兴趣（最好是谈到编程能够眼睛发亮、手舞足蹈）。</p>
<p><strong>四、参加人员最高上限</strong><strong>( 已封顶，停止招收）。</strong></p>
<p> </p>
<p align="right">葛军</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/gj888/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/gj888/blog/item/cb67c9fddf2a334dd6887dbe.html#comment">查看评论</a>]]></description>
        <pubDate>2009-05-06  22:09</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[gejun888]]></author>
		<guid>http://hi.baidu.com/gj888/blog/item/cb67c9fddf2a334dd6887dbe.html</guid>
</item>

<item>
        <title><![CDATA[欢迎加入新教程在线学习辅导活动!!!本人二级VB教程免费索取!]]></title>
        <link><![CDATA[http://hi.baidu.com/gj888/blog/item/41fd0323bdeb6c4693580714.html]]></link>
        <description><![CDATA[
		
		<p>大家好!</p>
<p>　　鉴于本人新教程《程序员进阶宝典（VB篇）》从第四章后几节内容开始难度升级，为了让一些看过本人二级VB教程和已经通过二级VB考试的朋友们，能够把新教程中的内容学透彻，现在我们开展&ldquo;新教程在线学习辅导活动&rdquo;，由本人在线辅导新教程的学习，学习者不仅可以及时得到<font color="#ff0000">新教程最新打包</font>内容，而且还包括一套同步<font color="#ff0000">CHM格式电子书</font>。</p>
<p><font color="#000000"><strong>活动时间安排（周期为一年）：</strong></font></p>
<p>　　每周五19：30&mdash;&mdash;23：00<br>
　　每周六9：00&mdash;&mdash;11：30&nbsp;&nbsp;  19：30&mdash;&mdash;23：00<br>
　　每周日19：00&mdash;&mdash;23：00</p>
<p><strong>活动收费：</strong>每人一年 100元。<br>
<strong>汇款帐号：</strong><br>
　　　　　一、原 建行帐号：<font color="#ff0000"><strong>6227 0025 7451 0089 373&nbsp;&nbsp;&nbsp;&nbsp;  </strong></font>户名：<font color="#ff0000">葛 军<br>
　　　　　<font color="#000000">二、新 建行帐号：</font><strong>6227 0025 7451 0133 288&nbsp;&nbsp;&nbsp;&nbsp;  </strong><font color="#000000">户名：</font><font color="#ff0000">葛 军<br>
　　　　　<font color="#000000">三、工行帐号(可接受网银）：</font><strong>6222 0217 1500 1217 126&nbsp;&nbsp;&nbsp;  </strong><font color="#000000">户名：</font><font color="#ff0000">葛 军</font></font></font></p>
<p>需要了解更进一步的详情或是要参加本活动的朋友，请及时与我取得联系QQ：1031889235</p>
<p><font color="#0000ff"><strong>特别公告：</strong>本人是个大菜鸟，并不会什么黑客技术，如果您学编程只是想成为入侵别人计算机的黑客，那么就请您不要给我汇款参加本次活动。如果您已经汇款了的话，那么我会将汇款退往给您。</font></p>
<p><font color="#0000ff">另为方便学习者交流，请光临百度贴吧&mdash;&mdash;贴吧名：<strong><font color="#0000ff">万人编程联盟</font></strong><font color="#800000"> </font><a href="http://tieba.baidu.com/f?kz=562411700"><font color="#800000">http://tieba.baidu.com/f?kz=562411700</font></a><br>
万人编程联盟论坛：<a href="http://wrbclm.517800.com/"><font color="#800000">http://wrbclm.517800.com/</font></a></font></p>
<p><font color="#0000ff">对于本人前部二级VB教程，大家可与本人VIP会员联系免费发送：<br>
<font color="#800000">379662706</font>（ 顺达电脑） <font color="#800000">452386818</font>（一塌糊涂）<font color="#800000">596566303</font>（萧何）<font color="#800000">120016718</font>（/:+阿童木）</font></p>
<p><font color="#ff0000"><strong>最新参加人员：</strong></font></p>
<p><strong><font color="#ff0000"><font color="#800000">容术昌</font> <font color="#800000">叶伟明 朱志伟 萧何（QQ:596566303）</font></font><span style="font-size: 10.5pt; mso-ascii-: 1.0pt"><font color="#800000">范涛 邵红华 包玉明 小袁 黄其筠 冯伟 陈伟生<br>
</font></span></strong><strong><span style="font-size: 10.5pt; mso-ascii-: 1.0pt"><font color="#800000">孙良富 小&nbsp;&nbsp;&nbsp;  刘 关 聪</font></span></strong></p>
<p align="right">葛军</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/gj888/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/gj888/blog/item/41fd0323bdeb6c4693580714.html#comment">查看评论</a>]]></description>
        <pubDate>2009-03-24  17:02</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[gejun888]]></author>
		<guid>http://hi.baidu.com/gj888/blog/item/41fd0323bdeb6c4693580714.html</guid>
</item>

<item>
        <title><![CDATA[《程序员进阶宝典（VB篇）》正式发布！！！]]></title>
        <link><![CDATA[http://hi.baidu.com/gj888/blog/item/aeb7a2d37e1d693c970a16d7.html]]></link>
        <description><![CDATA[
		
		<p>　　大家好，新教程《程序员进阶宝典（VB篇）》已经在太平洋电脑网全国独家首发。链接地址：<a href="http://pcedu.pconline.com.cn/videoedu/asp/0903/1591731.html">http://pcedu.pconline.com.cn/videoedu/asp/0903/1591731.html</a> 。</p>
<p align="right">葛军</p>
<p> </p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/gj888/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/gj888/blog/item/aeb7a2d37e1d693c970a16d7.html#comment">查看评论</a>]]></description>
        <pubDate>2009-03-16  18:26</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[gejun888]]></author>
		<guid>http://hi.baidu.com/gj888/blog/item/aeb7a2d37e1d693c970a16d7.html</guid>
</item>

<item>
        <title><![CDATA[新教程的发布,大家请不要担心]]></title>
        <link><![CDATA[http://hi.baidu.com/gj888/blog/item/d8bf03246b2a8023d4074287.html]]></link>
        <description><![CDATA[
		
		<p>各位亲爱的朋友们：</p>
<p>　　新教程的发布，请大家不要担心，太平洋网站已经答复过我会优先处理。但只因太平洋网站的人气和流量太大，所以他们的编辑工作是非常巨大的，请大家给予谅解！</p>
<p> </p>
<p align="right">葛军</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/gj888/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/gj888/blog/item/d8bf03246b2a8023d4074287.html#comment">查看评论</a>]]></description>
        <pubDate>2009-03-09  16:07</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[gejun888]]></author>
		<guid>http://hi.baidu.com/gj888/blog/item/d8bf03246b2a8023d4074287.html</guid>
</item>

<item>
        <title><![CDATA[新教程即将面世!!!]]></title>
        <link><![CDATA[http://hi.baidu.com/gj888/blog/item/0fa1223829623523b9998f67.html]]></link>
        <description><![CDATA[
		
		<p>我最最亲爱的朋友们：</p>
<p>　　大家好！我是葛军，很高兴能够自己又能上线了。因为前段时间的身体情况不佳，所以一直没有机会和大家联络。我真的非常想念大家，在不能编写教程的日子里，不能在网上与大家交流，我非常难过。我时常告诫自己：如果以后还有给大家做教程的机会，我将会做得更好，要不然，我对不起这么多关心和支持我的朋友们！</p>
<p>　　在春节这段时间里，我终于有机会得以继续后续教程的编写，在这部后续教程的编写上，我可以说把以前的原稿改动了不下于五十次，而且在内容上一添再添，因为怕自己如果以后万一没机会再编写教程的话，不能把我心里已经决定好的事情做下去，我怕再对不起数以十几万计的网友们。</p>
<p>　　这部新教程名为《<font color="#ff0000"><strong>程序员进阶宝典（VB篇第一部）</strong></font><font color="#000000">》（现在还在制作中，但是可以先发布前面的，我继续后面的制作），该套教程内容非常多，估计整部下来超过2GB，内容以VB6的<font color="#ff0000">综合实例</font>开发为主（包括大量的ActiveX控件、API高级编程、注册表编程技术、完整的数据库管理系统、高强度加密解密算法编程、帮助系统制作、定制软件安装程序等），并辅以其他主流的编程语言和工具进行对比讲解（包括：<font color="#ff0000">VBA宏</font>/<font color="#ff0000">Delphi</font>/<font color="#ff0000">C++&nbsp;&nbsp;  Builder</font>/<font color="#ff0000">VB2005</font>/<font color="#ff0000">C#2005</font>/<font color="#ff0000">J</font><font color="#ff0000">#2005</font>/<font color="#ff0000">VC++2005</font>/<font color="#ff0000">SQL Server 2005</font>)，这些全都在这一部教程中。新教程因为信息量较大，所以界面全部是采用1024*768的图像分辨率，较之先前800*600的分辨率，图像质量会更好，现在正在与国内一些大型视频教程网站联系推出，希望这次能够给大家带来真真正正的收获。</font></p>
<p>　　在此阶段，如果还有朋友需要本人原先在网易学院<a href="http://tech.163.com/special/000915SN/vbgreat.html">http://tech.163.com/special/000915SN/vbgreat.html</a>而未发布完的那部《国家二级VB教程》的话，请和我的0005号高级会员（也是我最好的朋友）QQ：<font color="#ff0000">379662706</font>（顺达电脑）联系，由他负责对该部教程的免费发送。在此，对该会员在我这段身体不适的情况下默默大力支持我，表示最崇高的敬意！</p>
<p><font color="#800080">在此特别感谢：<font color="#ff0000">王大伟</font> 首先为新教程赞助600元</font></p>
<p align="right">葛军 <font color="#ff0000">在此祝愿天下所有喜欢编程的朋友们牛年大吉，鸿图大展！</font></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/gj888/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/gj888/blog/item/0fa1223829623523b9998f67.html#comment">查看评论</a>]]></description>
        <pubDate>2009-02-12  03:42</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[gejun888]]></author>
		<guid>http://hi.baidu.com/gj888/blog/item/0fa1223829623523b9998f67.html</guid>
</item>

<item>
        <title><![CDATA[关于本人第一套《二级VB视频教程》]]></title>
        <link><![CDATA[http://hi.baidu.com/gj888/blog/item/02eff81f075aef64f724e460.html]]></link>
        <description><![CDATA[
		
		<p>大家好：</p>
<p>　　我是葛军，关于本人的《全国计算机等级考试二级Visual Basic程序设计》视频教程，以后面向所有网友都是免费的，请大家也不要再给我汇款了，需要的朋友，可以和QQ：<font color="#ff0000">379662706</font>（顺达电脑）联系。</p>
<p>　　由于本人近期身体不佳，所以没能上线，我一直心怀愧疚。不过，后续教程就快面世了。在该教程中，所有学习VB编程以及想更好的入门其他编程语言（VB.net/C#/VC++/J#)的朋友们，也将会有些许收获。希望明天会更好！希望我的后续教程能够带给大家更好的体验。</p>
<p>葛军</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/gj888/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/gj888/blog/item/02eff81f075aef64f724e460.html#comment">查看评论</a>]]></description>
        <pubDate>2008-12-30  21:15</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[gejun888]]></author>
		<guid>http://hi.baidu.com/gj888/blog/item/02eff81f075aef64f724e460.html</guid>
</item>

<item>
        <title><![CDATA[VIP(本人终身会员）停止招收！！！]]></title>
        <link><![CDATA[http://hi.baidu.com/gj888/blog/item/f0b08c18655568b24aedbcbb.html]]></link>
        <description><![CDATA[
		
		<p>　　大家好！由于本人时间所限（后面有五十部余部教程需要制作），本着对每一位会员负责的态度，经慎重考虑，本人决定：除了前期招收的七名Vip终身会员外，如无特殊情况，今后将不再招收Vip会员。请大家不要再给我多汇款了。</p>
<p>Vip会员名单：<font size="2"><font color="#000080">0001</font><font color="#ff0000">鲁德才　</font><font color="#000080">0002 </font><font color="#ff0000">Sean　 <font color="#000080">0003</font>陈良标　<font color="#000080">0004</font>兰保国　<font color="#0000ff">0005</font><font color="#ff0000">sungod　<font color="#000080">0025</font><font color="#ff0000">土&nbsp;&nbsp;  贼　<font color="#000080">0026</font><font color="#ff0000">张&nbsp;&nbsp;  栋</font></font></font></font></font></p>
<p align="right">葛军</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/gj888/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/gj888/blog/item/f0b08c18655568b24aedbcbb.html#comment">查看评论</a>]]></description>
        <pubDate>2008-09-23  21:35</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[gejun888]]></author>
		<guid>http://hi.baidu.com/gj888/blog/item/f0b08c18655568b24aedbcbb.html</guid>
</item>


</channel>
</rss>