Re: [GD-Windows] getmainwindow...
Brought to you by:
vexxed72
From: gabor f. <xl...@po...> - 2001-12-05 23:57:24
|
thanks, but i'm in VCL ( borland's realm :-) the idea was, that the 'main' application would be nothing special... like a console application or something like this... and he would simply enumerate all the available viewports, and use on ( the first one, the best one, by some kind of priority ).. the idea is that the main app (actually there is only one process, it's just easier to call the main part as the main app ) doesn't know about winapi and such.... he only tells a viewport to open himself... it's the viewport's work... then he tells the viewport to load in a mesh and some textures and whatever.... all the time the main app gets only interface-pointers... the chosen viewport manages the system dependent stuff. this isn't my idea of course :-) look at the nebula device at www.radonlabs.de .. i borrowed the ide from here... the idea works... it this case the solution is that the viewport objects calls CreateWindow..... my problem was that i created a bit chaotic structure because of the main app created the window, and i wanted the viewport to sit in his client area.... i'll just give him the main-window-id ( the handle ).. thanks for your help, bye gabor p.s: has anyone found out how to SEARCH the archives? ----- Original Message ----- From: "Leath Muller" <Lea...@en...> To: <gam...@li...> Sent: Thursday, December 06, 2001 12:39 AM Subject: RE: [GD-Windows] getmainwindow... I missed the start of this thread -- are you after the main application window? If your in MFC, why not AfxGetMainWnd(), or if not, maybe look at the MFC source for that call? > Or call EnumWindows to iterate over all top-level windows and > look for a > window whose process id matches GetCurrentProcessId(). Or an instance > handle that matches your current instance handle. Or...we > could just go > on all day like this, couldn't we! Leathal. _______________________________________________ Gamedevlists-windows mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows |