🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.apps.misc
Article #120

Help needed in selecting drop down menus

#120
From: Stephen Holmes
Date: Mon, 12 Oct 1998 00:00
20 lines
2155 bytes
Hi, I'm writing some software to remotely control one PC from another on
Windows 95/98/NT. Basically I'm sending the data using TCP/IP, one computer
sends screen shots whilst the other sends mouse messages back. To then
translate the mouse messages, I find the handle of the window under the
relevant cursor position and I then send it WM_LBUTTONDOWN messages.

The problem I'm having is in that menus of the default style (as used in
standard windows administrative tools etc.) do not accept mouse button
messages to fire open the sub menu from the menu bar. However after the menu
has been opened (using the controlled computers own mouse) the controlling
computer can successfully send mouse button messages. I can hit-test the
window handle and classify it, thus distinguishing it as a menu and I can
find the number of the sub menu. It should be noted that I could create a
submenu in my remote control application on the controlled PC, it's just
that this solution could 'damage' other applications resident in Windows, as
they maybe keeping hold of the sub menu handle.......

Anyway help will be much appreciated,
Cheers,
Steve - SHolmes@hbmuk.com
Technical Details
Message-ID: <6vtde5$sti$1@flex.london.pipex.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 110a07,818e754a52de59e9,start
X-Google-Attributes: gid110a07,public
X-Google-Thread: fda7f,818e754a52de59e9,start
X-Google-Attributes: gidfda7f,public
X-Google-Thread: 105df1,818e754a52de59e9,start
X-Google-Attributes: gid105df1,public
X-Google-Thread: 110c1b,818e754a52de59e9,start
X-Google-Attributes: gid110c1b,public
X-Google-Thread: f7033,818e754a52de59e9,start
X-Google-Attributes: gidf7033,public
From: "Stephen Holmes" <SHolmes@hbmuk.com>
Subject: Help needed in selecting drop down menus
Date: 1998/10/12
Message-ID: <6vtde5$sti$1@flex.london.pipex.net>
X-Deja-AN: 400311138
Organization: UUNET WorldCom server (post doesn't reflect views of UUNET WorldCom)
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: comp.os.ms-windows.apps.misc,comp.os.ms-windows.programmer.controls,comp.os.ms-windows.programmer.misc,fj.os.ms-windows.programming,microsoft.public.win32.programmer.ui