home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!das-news.harvard.edu!spdcc!dirtydog.ima.isc.com!newsserver.pixel.kodak.com!dj
- From: dj@ispd-newsserver.ssd.kodak.com (Dave Jones)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Re: How to get current hInstance?
- Message-ID: <1992Sep14.194058.2693@pixel.kodak.com>
- Date: 14 Sep 92 19:40:58 GMT
- References: <1992Sep14.173413.18926@porthos.cc.bellcore.com>
- Sender: news@pixel.kodak.com
- Organization: :noitazinagrO
- Lines: 22
- X-Newsreader: TIN [version 1.1 PL6]
-
- Robert Yaeger (rmy@pyuxf.uucp) wrote:
- :
- : Hi,
- : Does anyone know of a way to get the current value of hInstance without
- : passing a param or global around. Does DS always equal it?
- :
- : Thanks,
- : -Bob
- :
- :
- Just call GetWindowWord(hWnd, GWW_HINSTANCE)
-
- What, no window handle? Then if memory serves you can get your task
- handle via GetCurrentTask and then enumerate its windows until you find
- the one you want. Easier to make sure your window handle is always
- available, though.
-
- --
- ||)) Those who wallow in ignorance ))) Policemen are numbered in case))|
- ||)) must dwell in Limbaugh for a time ))) they get lost - S. Milligan ))|
- ||))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))|
- ||Dave Jones (dj@ekcolor.ssd.kodak.com) | Eastman Kodak Co. Rochester, NY |
-