For Help!
Thanx a lots!

解决方案 »

  1.   

    There is not such STYLE property in TForm at all !   I need the effect that a window ALWAYS STAY ABOVE ITS OWNER WINDOW, as we can accomplish this effect in VB:
       frmOwned.Show ,frmOwner
       NOT TopMost !!!
      

  2.   

    Do u wanna move its owner window?
      

  3.   

    [ ***** Owned Windows ***** ]  An overlapped or pop-up window can be owned by another overlapped or pop-up window. Being owned places several constraints on a window. ·An owned window is always above its owner in the Z order. 
    ·The system automatically destroys an owned window when its owner is destroyed. 
    ·An owned window is hidden when its owner is minimized.   Only an overlapped or pop-up window can be an owner window; a child window cannot be an owner window. An application creates an owned window by specifying the owner's window handle as the hwndParent parameter of CreateWindowEx when it creates a window with the WS_OVERLAPPED or WS_POPUP style. The hwndParent parameter must identify an overlapped or pop-up window. If hwndParent identifies a child window, the system assigns ownership to the top-level parent window of the child window. After creating an owned window, an application cannot transfer ownership of the window to another window.   Dialog boxes and message boxes are owned windows by default. An application specifies the owner window when calling a function that creates a dialog box or message box.   An application can use the GetWindow function with the GW_OWNER flag to retrieve a handle to a window's owner. 
      

  4.   

    How can I do by using Delphi ?
      

  5.   

    can you show a window with modal mode?
    like:form1.showmodal;
      

  6.   

    Studying........
    By the way, I have to say:"This is a Delphi BBS, if you want to ask VB progblems, you should go to the VB BBS to ask. Of course, it's nothing serious you ask it in Delpi BBS.
      

  7.   

    I am learning......
    Do you like English very much?
      

  8.   

    我要的效果就是:
    ·An owned window is always above its owner in the Z order. 
    ·The system automatically destroys an owned window when its owner is destroyed. 
    ·An owned window is hidden when its owner is minimized. 这时还是可以在 owned window & owner window 来回切换焦点的,不是要使用 ShowModal 显示模态。我试了很久,在网上也暂时找不到有关的资料。在 Delphi 中 Create 一个新窗口时若提供一个 Owner 参数,好像只是表明这个窗口会在适当的时候被 Owner 自动释放。此 Owner 非彼 Owner 啊!我重载 CreateParams 过程,在其中赋值 cp.WndParent 为 Owner 也不行。我只是用 VB 作为一个参照……由谁知道啊?我已经找了几天了……没想到一个简单的问题我要费这么多周折……