From mint-bounce@lists.fishpool.fi Wed Aug 4 12:12:54 2010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=XzkxGdy4Yy4K1SX4hE+nwyFtiF1p1sNF/9a7uTeRiRw=; b=vXcEi7lhFZ2+oEagyqtq1qBH4/OpT3WWYIKZssnBcidtfToEhAbrdOJKNlFRKOu2iz 4DATms7eTII/zSQFfTz2GNcU0t9CQrcebmYHgN6OaMccYtwP0ppPQIFtH9tOzcaXrXFt ESpOzZRD2pAtb7goyT8xt9+0ng89T1WwxbUmc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=EHNg7CO5JT0xkAXdOzmUsDVLsTX9wCuz07B1a4pL7VV8xqoHJHIbSRZrx8z/I8VFXh jNTTCkRIh9EK2edOzVM7OiUus4HptSxwn7MwKIGk5BNwoVLlDNAVVZOCaw3mlAceV5YD pDnu0fMSk83TKm216V5hmdQs5gYk+QecJkHx8= From: Peter Persson Content-Type: text/plain; charset=us-ascii Subject: [MiNT] XaAES: menus in windows - window handle? Date: Wed, 4 Aug 2010 18:11:02 +0200 Message-Id: To: mint@lists.fishpool.fi Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: pep.fishmoose@gmail.com Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id o74GCs82030101 Another question related to menu bars in windows, Is there any way to find out the window handle associated with a menu event? In my project, multiple windows share the same resource tree for the menu, but the menu actions should only operate on a particular window. The event message doesn't tell which window handle it was, and I can't assume it's the top window because it's possible to access window menu bars in the background as well. The only cure I can come up with would be to generate a separate menu resource tree for each window, and somehow that feels like a bloody mess. Any ideas? -- PeP