15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Frame window rect not including toolbars -Svar

NIELS ULL JACOBSEN -- KRUGER.SOBORG.NUJ@kruger.dk
Monday, October 14, 1996



>>> marty  09-10-96 19.57 >>>
Environment: VC++ 4.1, NT 3.51

>I need to get the window rectangle for my mainframe window, but
>I don't want to include the toolbars or status bars (that is,
>I only want the area in which I can position non-docking windows).  
>If I use GetClientRect, it returns the entire window rectangle.

You need to get the window rectangle of the MDI client window.
You can get this through the undocumented m_hWndMDIClient 
member af CMDIFrameWnd. It's mentioned in several KB articles.

[...]

>Any suggestions? Is there a better way to do this?

Marty Wagner
marty@concentra.com





Muni Raju -- muni@aditimx.vsnl.net.in
Tuesday, October 15, 1996

Hi,

  You can use RepositionBars with CWnd::reposQuery. Check the online
help for this function.

 Regards,

 Muniraju
 Aditi Corp
 


----------
From: 	NIELS ULL JACOBSEN[SMTP:KRUGER.SOBORG.NUJ@kruger.dk]
Sent: 	Tuesday, October 15, 1996 7:42 AM
To: 	marty@concentra.com; mfc-l@netcom.com
Subject: 	Frame window rect not including toolbars -Svar



>>> marty  09-10-96 19.57 >>>
Environment: VC++ 4.1, NT 3.51

>I need to get the window rectangle for my mainframe window, but
>I don't want to include the toolbars or status bars (that is,
>I only want the area in which I can position non-docking windows).  
>If I use GetClientRect, it returns the entire window rectangle.

You need to get the window rectangle of the MDI client window.
You can get this through the undocumented m_hWndMDIClient 
member af CMDIFrameWnd. It's mentioned in several KB articles.

[...]

>Any suggestions? Is there a better way to do this?

Marty Wagner
marty@concentra.com



Peter Moravek -- moravek@alpha.euba.sk
Monday, October 21, 1996

Hi,
  
  You can use GetClientRect function of your MainFrameWmd, ToolBar, and
StatusBar and from the returned results you can figure out the result.

	Regards,
		Peter Moravek
		moravek@alpha.euba.sk



> 
> Hi,
> 
>   You can use RepositionBars with CWnd::reposQuery. Check the online
> help for this function.
> 
>  Regards,
> 
>  Muniraju
>  Aditi Corp
>  
> 
> 
> ----------
> From: 	NIELS ULL JACOBSEN[SMTP:KRUGER.SOBORG.NUJ@kruger.dk]
> Sent: 	Tuesday, October 15, 1996 7:42 AM
> To: 	marty@concentra.com; mfc-l@netcom.com
> Subject: 	Frame window rect not including toolbars -Svar
> 
> 
> 
> >>> marty  09-10-96 19.57 >>>
> Environment: VC++ 4.1, NT 3.51
> 
> >I need to get the window rectangle for my mainframe window, but
> >I don't want to include the toolbars or status bars (that is,
> >I only want the area in which I can position non-docking windows).  
> >If I use GetClientRect, it returns the entire window rectangle.
> 
> You need to get the window rectangle of the MDI client window.
> You can get this through the undocumented m_hWndMDIClient 
> member af CMDIFrameWnd. It's mentioned in several KB articles.
> 
> [...]
> 
> >Any suggestions? Is there a better way to do this?
> 
> Marty Wagner
> marty@concentra.com
> 





| Вернуться в корень Архива |