当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 为什么Windows的系统菜单总是一成不变?这个例子教你如何往系统菜单添加一个菜单项如about或information等。
 

 

 ·win32 api 使用的特殊情况    »显示摘要«
    摘要: 我个人认为,delphi 是当今最好的 windows 可视化开发工具。 其种种特点令开发如虎添翼。但要想发挥出 delphi 真正的内含性能 比如开发控件,实现一些特殊的功能,就必须直接调用 win32 api。 win32 api 主要包含在 windows95/98/nt/2k 的系统动态连接库中 如 kernel32.dll、user32.dll、gdi32.dll、shell32.dl......
 ·收藏夹函数     »显示摘要«
    摘要:dll 文件:shdocvw.dll procedure doorganizefavdlg(h:hwnd;path:pchar);stdcall;external shdocvw.dll; 第二个参数指定收藏夹的位置,如果第二个参数为nil的话,默认ie得收藏夹位置。 addurltofavorites doaddtofavdlg doaddtofavdlgw dofiledownlo......


加一个菜单项到Windows的系统菜单
为什么windows的系统菜单总是一成不变?这个例子教你如何往系统菜单添加一个菜单项如about或information等.

    这个例子将一个菜单项加到系统菜单中去.我们需要两个东西,一个是项名,这可以是如何整数;我们还需要一个程序去收取windows对确认点击我们创建的菜单项的信息. 【程序编程相关:如何使用MAPI发送E-MAIL

【推荐阅读:使用Delphi启动和关闭外部应用程序

【扩展信息:编写通用的程序更新模块

unit ohyeah;

interface

uses

    sysutils, wintypes, winprocs, messages, classes, graphics, controls, forms, dialogs, menus;

type

   tform1 = class (tform)

      procedure formcreate (sender : tobject);

          private {private declarations}

   public {public declarations}


...   下一页
 ·使桌面的图标文字透明    »显示摘要«
    摘要:var wnd:hwnd; begin wnd := getdesktopwindow; wnd := findwindowex(wnd, 0, progman, nil); wnd := findwindowex(wnd, 0, shelldll_defview, nil); wnd := findwindowex(wnd, 0, syslistview32, nil); ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE