如题,我在B的主窗体的Close事件中写如下代码不行啊。var
HWndApp: HWnd;
begin
HWndApp := Winprocs.FindWindow(nil, Pchar(A的窗口标题名));
if HWndApp <> 0 then
PostMessage(HWndApp, WM_SHOWWINDOW, 0, 0);
HWndApp: HWnd;
begin
HWndApp := Winprocs.FindWindow(nil, Pchar(A的窗口标题名));
if HWndApp <> 0 then
PostMessage(HWndApp, WM_SHOWWINDOW, 0, 0);
解决方案 »
- DELPHI程序能不能在IMAGE控件上让鼠标拉的范围内也有一个框框区域?而且在画的时候不能消失,且可以看到画的内容
- 自定义函数
- DELPHI设计软件做统计一般用什么控件好?
- 当我修改数据时忘了添加上‘0’就会出现错误!这个问题怎么解决?
- //怎样把提取出来的PAW值赋给EDIT2。TEXT,为什么用FIELDBYNAME做不到
- 如何得到控件image的句柄 谢谢
- ADO访问Email
- 请教一个数据库问题,大数据量时如何处理才能使速度不至于太慢,还望赐教!
- 我想把SQl server的一个表加密(程序中静态提供口令,让人无法直接访问),就象paradox的表加密一样.怎么做呢?
- 请高手们帮帮忙!!!:—)
- 我用ODBC时出现[Microsoft][vfp driver]missing operand?是怎么回事!
- 如何将listview1 选中的多条记录批量移到listview2 中?急!!
ShowWindow()的可选参数
SW_FORCEMINIMIZE Windows NT 5.0 and later: Minimizes a window, even if the thread that owns the window is hung. This flag should only be used when minimizing windows from a different thread. SW_HIDE Hides the window and activates another window. SW_MAXIMIZE Maximizes the specified window. SW_MINIMIZE Minimizes the specified window and activates the next top-level window in the Z order. SW_RESTORE Activates and displays the window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when restoring a minimized window.
SW_SHOW Activates the window and displays it in its current size and position.
SW_SHOWDEFAULT Sets the show state based on the SW_ flag specified in theSTARTUPINFO structure passed to theCreateProcess function by the program that started the application.
SW_SHOWMAXIMIZED Activates the window and displays it as a maximized window. SW_SHOWMINIMIZED Activates the window and displays it as a minimized window. SW_SHOWMINNOACTIVE Displays the window as a minimized window. The active window remains active. SW_SHOWNA Displays the window in its current state. The active window remains active. SW_SHOWNOACTIVATE Displays a window in its most recent size and position. The active window remains active. SW_SHOWNORMAL Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.
procedure GetCopyData(var Msg: TWmCopyData); message WM_COPYDATA;
来执行收到消息后的事件(恢复窗口大小)就可以了