你做过控件吗?做过可以看看我的问题,没做过可以到这儿学习! 只是用来显示错误信息的窗体,有必要做控件吗??? 直接做一个messagebox就不可以了吗?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function MsgBox( hwnd : hwnd; lptext : pchar; lpcaption : pchar; uType :cardinal) : integer;begin Result := messagebox(hwnd, lptext, lpcaption, uType);end;或:function MyMsgBox( handle : hwnd; const Prompt : string; const Msg : string; uDlgType : cardinal = MB_ICONINFORMATION; uButType : cardinal = MB_OK; uDefVal : cardinal = MB_DEFBUTTON1) : Word;begin Result := MsgBox(handle, pChar(Msg), pChar(Prompt), uDlgType+uButType+ uDefVal+MB_APPLMODAL);end; 问一条UPDATE问题,高手帮忙! stringgrid中设置颜色 学DELPHI一个礼拜后的感想 关于QuickReport预览时图片显示正确,但有时打印时图片显示为黑色图片, 怎样调用外部的EXE文件? 怎样用SQL语句判断ORACLE数据库中是否存在某一表 怎么比较数据库中字段为日期型的值 按最小化按键后我的窗体为何缩小到消失了?怎么避免此现象发生? 一直有个问题!? 这个项目收多少比较合适? 请大家看看这段程序的毛病??? 求教XPMenu控件的详细用法!XPMenu自带了一张图,他的很多功能我都不会用啊!
hwnd : hwnd;
lptext : pchar;
lpcaption : pchar;
uType :cardinal
) : integer;
begin
Result := messagebox(hwnd, lptext, lpcaption, uType);
end;或:function MyMsgBox(
handle : hwnd;
const Prompt : string;
const Msg : string;
uDlgType : cardinal = MB_ICONINFORMATION;
uButType : cardinal = MB_OK;
uDefVal : cardinal = MB_DEFBUTTON1
) : Word;
begin
Result := MsgBox(handle,
pChar(Msg), pChar(Prompt), uDlgType+uButType+
uDefVal+MB_APPLMODAL);
end;