对于一个窗体,正常情况下 pWnd := FindWindow('Progman', nil);
Windows.SetParent(handle, pWnd);
以上代码正确,但是一旦设置成WS_EX_LAYERED风格,就不行了什么也不显示 SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
if SetWindowLong(Handle, GWL_EXSTYLE, GetWindowLong(Handle, GWL_EXSTYLE) or
WS_EX_LAYERED ) = 0 then ShowMessage(SysErrorMessage(GetLastError)); drawform(); pWnd := FindWindow('Progman', nil);
Windows.SetParent(handle, pWnd);请高手指教!
Windows.SetParent(handle, pWnd);
以上代码正确,但是一旦设置成WS_EX_LAYERED风格,就不行了什么也不显示 SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
if SetWindowLong(Handle, GWL_EXSTYLE, GetWindowLong(Handle, GWL_EXSTYLE) or
WS_EX_LAYERED ) = 0 then ShowMessage(SysErrorMessage(GetLastError)); drawform(); pWnd := FindWindow('Progman', nil);
Windows.SetParent(handle, pWnd);请高手指教!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货