摘要: 我个人认为,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);
......