SetParent method does not work.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ramveers
    New Member
    • Nov 2007
    • 4

    SetParent method does not work.

    I ma creating a toolbar for IE. I am setting a parent of toolbar dynamically by using SetParent method of window API.
    My problem is that SetParent method does not set parent and return zero(IntPtr).
    By using last error code, its gives 1400 (Means Invalid Handle).
    I check that handle of toolbar and handle of new parent are valid, but previous parent of toolbar handle has been invalid.
    Now i want to assign new parent of toolbar but SetParent does not work.

    Please Help Me...
Working...