示例:
type tappwndbrowser = class( tform ) published procedure createparams( var params: tcreateparams ); override; procedure wndproc(var message: tmessage); override; end; implementation {$r *.dfm} { tappwndbrowser } procedure tappwndbrowser.createparams( var params: tcreateparams ); begin inherited createparams( params ); params.style:=ws_child; end; procedure tappwndbrowser.wndproc(var message: tmessage); begin inherited wndproc(message); if (not application.mainformontaskbar) and (message.msg = wm_showwindow) then begin showwindow(application.handle, sw_hide); setwindowlong(application.handle, gwl_exstyle, ws_ex_toolwindow); end; end;
如对本文有疑问, 点击进行留言回复!!
uniGUI之自定义JS事件动作ClientEvents(30)
TChart-数据编辑(TChartListBox,TeeCommander)
网友评论