Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I stop an extra context menu from showing up when I select an option from a context menu in VB6?
    primarykey
    data
    text
    <p>I am maintaining an application with a VB6 form that contains a ComponentOne VSFlexGrid 7.0. We have a custom context menu that allows users to perform some specialized copy-and-paste operations. Recently, we have encountered the following issue:</p> <ol> <li>Highlight some text in one of the cells.</li> <li>Right-click in the cell, with the text still highlighted.</li> <li>Select one of the context menu options.</li> <li>The requested context menu operation occurs.</li> <li>Another context menu similar to the one shown <a href="http://www.msfn.org/board/topic/125987-open-ime-right-to-left-reading-order-option-i/" rel="nofollow">here</a>, with options such as "Right to left reading order", "Open IME", and "Reconversion", is displayed.</li> </ol> <p>How do I make this second context menu go away? I have tried the method that <a href="http://support.microsoft.com/kb/170570/EN-US" rel="nofollow">the Microsoft Knowledge Base describes</a> with no luck so far. My WindowProc function is below:</p> <pre><code>Function WindowProc(ByVal hw As Long, _ ByVal uMsg As Long, _ ByVal wParam As Long, _ ByVal lParam As Long) As Long Select Case uMsg Case WM_RBUTTONUP frmMain.PopupMenu frmMain.mnuPopUp Case Else WindowProc = CallWindowProc(lpPrevWndProc, hw, _ uMsg, wParam, lParam) End Select End Function </code></pre> <p>After the copy operation happens, the uMsg values that I see are 15 (WM_PAINT) and 32 (WM_SETCURSOR). I have also noticed that a form-level MouseUp event fires when I have not highlighted text in the cell, but it does not fire when I have highlighted text in the cell.</p> <p>Could someone with deeper knowledge of VB6 and/or ComponentOne please give me more details about what sequence of events takes place, and how to keep this extra context menu from showing up?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload