public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Gnu-Win32 Question -- EGCS-Mingw32(1.0.2)
@ 1998-10-19  2:14 Paul Garceau
  1998-10-19 14:23 ` Mumit Khan
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Paul Garceau @ 1998-10-19  2:14 UTC (permalink / raw)
  To: gnu-win32

Hi folks,

	Was just trying to build a win32 app I pulled out "Win32 Programming" 
(last printing april 1998), publisher: Addison-Wesley.

	The book references the following macro:

		GetWindowInstance(hwnd)

	Does anyone happen to know what the equivalent Gnu-Win32 version of 
this macro might be?

	Thanks for your time on this.

	Peace,

		Paul G.

Information Systems Consultant
NewDawn Productions
http://www.teleport.com/~pgarceau/newdawn/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gnu-Win32 Question -- EGCS-Mingw32(1.0.2)
  1998-10-19  2:14 Gnu-Win32 Question -- EGCS-Mingw32(1.0.2) Paul Garceau
@ 1998-10-19 14:23 ` Mumit Khan
  1998-10-19 23:57   ` Paul Garceau
  1998-10-19 23:57 ` Larry Hall (RFK Partners Inc)
  1998-10-19 23:57 ` Anders Norlander
  2 siblings, 1 reply; 5+ messages in thread
From: Mumit Khan @ 1998-10-19 14:23 UTC (permalink / raw)
  To: Paul Garceau; +Cc: gnu-win32

On Mon, 19 Oct 1998, Paul Garceau wrote:
> 	The book references the following macro:
> 
> 		GetWindowInstance(hwnd)
> 
> 	Does anyone happen to know what the equivalent Gnu-Win32 version of 
> this macro might be?


Something along the lines of:
  
  #define GetWindowInstance(hwnd) (HMODULE) GetWindowLong ((hwnd), GWL_HINSTANCE)

defined in windowsx.h.

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gnu-Win32 Question -- EGCS-Mingw32(1.0.2)
  1998-10-19 14:23 ` Mumit Khan
@ 1998-10-19 23:57   ` Paul Garceau
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Garceau @ 1998-10-19 23:57 UTC (permalink / raw)
  To: gnu-win32

Hi folks,

	Thanks everyone for your help.  I've enhanced EGCS-Mingw32(1.0.2) with 
it...

	Peace,

		Paul G.

Information Systems Consultant
NewDawn Productions
http://www.teleport.com/~pgarceau/newdawn/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gnu-Win32 Question -- EGCS-Mingw32(1.0.2)
  1998-10-19  2:14 Gnu-Win32 Question -- EGCS-Mingw32(1.0.2) Paul Garceau
  1998-10-19 14:23 ` Mumit Khan
  1998-10-19 23:57 ` Larry Hall (RFK Partners Inc)
@ 1998-10-19 23:57 ` Anders Norlander
  2 siblings, 0 replies; 5+ messages in thread
From: Anders Norlander @ 1998-10-19 23:57 UTC (permalink / raw)
  To: pgarceau; +Cc: gnu-win32

Hi Paul,
it is missing from the gnu-win32 headers but it is equiavalent to
(HMODULE)GetWindowLong(hwnd,GWL_HINSTANCE) or GetModuleHandle(NULL)
the window is owner by your process, in that case you can also
use the hInstance parameter of WinMain.

Paul Garceau wrote:
> 
> Hi folks,
> 
>         Was just trying to build a win32 app I pulled out "Win32 Programming"
> (last printing april 1998), publisher: Addison-Wesley.
> 
>         The book references the following macro:
> 
>                 GetWindowInstance(hwnd)
> 
>         Does anyone happen to know what the equivalent Gnu-Win32 version of
> this macro might be?
> 
>         Thanks for your time on this.
> 
>         Peace,
> 
>                 Paul G.
> 
> Information Systems Consultant
> NewDawn Productions
> http://www.teleport.com/~pgarceau/newdawn/
> -
> For help on using this list (especially unsubscribing), send a message to
> "gnu-win32-request@cygnus.com" with one line of text: "help".
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gnu-Win32 Question -- EGCS-Mingw32(1.0.2)
  1998-10-19  2:14 Gnu-Win32 Question -- EGCS-Mingw32(1.0.2) Paul Garceau
  1998-10-19 14:23 ` Mumit Khan
@ 1998-10-19 23:57 ` Larry Hall (RFK Partners Inc)
  1998-10-19 23:57 ` Anders Norlander
  2 siblings, 0 replies; 5+ messages in thread
From: Larry Hall (RFK Partners Inc) @ 1998-10-19 23:57 UTC (permalink / raw)
  To: pgarceau, gnu-win32

At 02:17 AM 10/19/98 -0700, Paul Garceau wrote:
>Hi folks,
>
>	Was just trying to build a win32 app I pulled out "Win32 Programming" 
>(last printing april 1998), publisher: Addison-Wesley.
>
>	The book references the following macro:
>
>		GetWindowInstance(hwnd)
>
>	Does anyone happen to know what the equivalent Gnu-Win32 version of 
>this macro might be?
>
>	Thanks for your time on this.
>
>	Peace,
>
>		Paul G.
>
>Information Systems Consultant
>NewDawn Productions
> http://www.teleport.com/~pgarceau/newdawn/


Its defined as:

#define     GetWindowInstance(hwnd) ((HMODULE)GetWindowLong(hwnd, 
                                                            GWL_HINSTANCE))
#define GWL_HINSTANCE       (-6)

in MSVC...


Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      (781) 239-1053
8 Grove Street                          (781) 239-1655 - FAX
Wellesley, MA  02482-7797               http://www.rfk.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-10-19 23:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-19  2:14 Gnu-Win32 Question -- EGCS-Mingw32(1.0.2) Paul Garceau
1998-10-19 14:23 ` Mumit Khan
1998-10-19 23:57   ` Paul Garceau
1998-10-19 23:57 ` Larry Hall (RFK Partners Inc)
1998-10-19 23:57 ` Anders Norlander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).