I noticed a bug in the source code after attempting to perform the InsertItem(...) method. The bug is in the following lines in method pInsertNewMenuItem:
For .... If tMII.wID = m_tMI(lIndexBefore).lParentId Then lPosition = iMenu Exit For End If Next Instead of .lParentId, I think it should be .lID
Just wanted to let you know because I spent some time trying to track down what was going on :)
|