Re: [GD-Windows] getmainwindow...
Brought to you by:
vexxed72
From: gabor f. <xl...@po...> - 2001-12-05 22:09:25
|
i just wanted to cut winapi appearance to minimum.. it doesn't matter for me if the code for a specific kind of viewport knows about winapi, and i can live with the fact that the main-window-code knows about winapi too, but i don't want to pass around winapi-related-structures between these object for example maybe i'll port this code to a different platform.... i know that maybe for a commercial game project it doesn't pay off to try to be cross platform, but this is a free-time/university project... :-) just to be a bit modular.... and i don't like seeing winapi-code everywhere.... the same for opengl or directx....:-) btw. findwindow...nice, but you need the window-class too... :-( i think i'll just define a window-id datatype and cast the WindowHandle to it and back. type-safety rules...:-) bye, gabor farkas ----- Original Message ----- From: "Brian Hook" <bri...@py...> To: <gam...@li...> Sent: Wednesday, December 05, 2001 10:30 PM Subject: RE: [GD-Windows] getmainwindow... > You could use FindWindow(), but why aren't you just caching your app's > hWnd in a global somewhere? > > Brian > > > _______________________________________________ > Gamedevlists-windows mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > |