Article View: alt.comp.lang.learn.c-c++
Article #680Re: How to get hInstance from hWnd?
From: John A. Grant
Date: Mon, 27 Nov 2000 00:00
Date: Mon, 27 Nov 2000 00:00
15 lines
1673 bytes
1673 bytes
"Opi" <opi@volny.cz> wrote in message news:8vtoej$2oo3$1@ns.felk.cvut.cz...
> Hi,
>
> can anyone tell me how can i acquire hInstance from hWnd?
> e.g. I am looking for an instance of Winamp, after I got
> hWnd of it's window through winamp's WinampGeneralPlugin
> structure. Thanks, replies please to opi@volny.cz
#include <windowsx.h>
HINSTANCE h=GetWindowInstance(hwnd);
--
John A. Grant * I speak only for myself * (remove 'z' to reply)
Radiation Geophysics, Geological Survey of Canada, Ottawa
If you followup, please do NOT e-mail me a copy: I will read it here
Technical Details
Message-ID:
<8vu8n2$t6711@nrn2.NRCan.gc.ca>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7nepou$qf6$1@news8.svr.pol.co.uk> <3a20a6c3.21834977@news.austarnet.com.au> <8vtoej$2oo3$1@ns.felk.cvut.cz>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 104093,3645fead2f243432 X-Google-Attributes: gid104093,public X-Google-Thread: 102f44,3645fead2f243432 X-Google-Attributes: gid102f44,public X-Google-Thread: 109fe5,3645fead2f243432 X-Google-Attributes: gid109fe5,public X-Google-Thread: 101278,3645fead2f243432 X-Google-Attributes: gid101278,public X-Google-Thread: 114592,a5f773848e5ffb0 X-Google-Attributes: gid114592,public From: "John A. Grant" <jazrant@zsc.nrcan.zc.ca> Subject: Re: How to get hInstance from hWnd? Date: 2000/11/27 Message-ID: <8vu8n2$t6711@nrn2.NRCan.gc.ca> X-Deja-AN: 698336627 References: <7nepou$qf6$1@news8.svr.pol.co.uk> <3a20a6c3.21834977@news.austarnet.com.au> <8vtoej$2oo3$1@ns.felk.cvut.cz> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Organization: Natural Resources Canada / Ressources naturelles Canada X-MSMail-Priority: Normal Newsgroups: alt.comp.lang.learn.c-c++,comp.os.ms-windows.programmer.graphics,cz.comp.windows.ms,microsoft.public.vb.winapi,microsoft.public.vb.winapi.graphics