Results 1 to 2 of 2

Thread: SetWindowWord and Windows XP

  1. #1

    Thread Starter
    Member Nik Barnes's Avatar
    Join Date
    Jan 2002
    Posts
    40

    SetWindowWord and Windows XP

    Please help

    I previously used SetWindowsWord to create a tool window that floated over my main window but not other program windows.

    This doesn't seem to work in Windows XP!!

    Has anybody else come across this? or am i being stupid

    An overview of the code

    Declaration :

    Public Declare Function SetWindowWord Lib "user32" Alias "SetWindowWord" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal wNewWord As Long) As Long

    Public Const GWL_HWNDPARENT = (-8)

    Code Use :

    Setwindowword thiswin.hwnd, GWL_HWNDPARENT, Parent.hwnd


    I'm sure this worked in Win98 but seem to have no effect in WinXP

  2. #2

    Thread Starter
    Member Nik Barnes's Avatar
    Join Date
    Jan 2002
    Posts
    40
    its ok problem solved!!

    very simply use

    form1.show, form2

    where form2 is the parent!!

    thanks tygur!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width