主表单关闭了titlebar,当windowstate=1时,如何最大化表单
主表单关闭了titlebar,当windowstate=1时,windows任务栏中并未显示该程序(titlebar=on时,任务栏中有),导致无法恢复(最大化),如何最小化到任务栏?谢谢
DECLARE LONG PostMessage IN User32 LONG, LONG, LONG, LONG of = CREATEOBJECT('Form1') of.Show READ EVENTS RETURN DEFINE CLASS form1 AS form Desktop = .T. ShowWindow = 2 TitleBar = 0 ADD OBJECT cmd as commandbutton WITH left=10,top=10,height=22,caption="关闭" PROCEDURE Activate PostMessage(this.hWnd, 0x0112, 0xF020, 0) ENDPROC PROCEDURE Destroy CLEAR EVENTS ENDPROC PROCEDURE cmd.Click thisform.Release ENDPROC ENDDEFINE
[此贴子已经被作者于2021-2-11 21:07编辑过]