NCPaint Question
Greg Powers -- pow@cruzio.com
Thursday, January 09, 1997
Environment: VC++ 4.2-flat, Win 95
I am creating an app which uses custom palette-based bitmaps and
background textures, as specified by my (Mac-fanatic) graphics designer.
Everything looks good at this point, with this exception:
How do I determine (and do I _need to determine) the rectangular area
where the mainframe main menu resides, in order to paint it's background
texture? I did not see anything looking relevant to menus in
GetSystemMetrics(). Please enlighten.
Thanks
Greg
--
<<<< Greg Powers, pow@cruzio.com, Entriade Systems >>>>
Dulepov Dmitry -- dima@ssm6000.samsung.ru
Monday, January 13, 1997
[Mailer: "Groupware E-Mail". Version 1.02.054]
You need to look to SM_CYCAPTION, SM_CXFRAME, SM_CYMENU.
Code example:
CRect rc;
GetWindowRect(&rc);
rc.InflateRect(0, GetSystemMetrics(SM_CXFRAME));
rc.top += GetSystemMetrics(SM_CYCAPTION); rc.bottom = rc.top + GetSystemMetrics(SM_CYMENU);
This assumes that you have resizable frame and will be in screen coordinates.
Dmitry A. Dulepov
Samsung Electronics Co., Ltd.
Russian Research Center
Phone: +7 (095) 213-9207
Fax: +7 (095) 213-9196
E-mail: dima@src.samsung.ru
====================================
-----------------------------
> [From: Greg Powers
> [Address: pow@cruzio.com
> [To: MFC Mailing List
> [Date: Sun Jan 12 00:45:46 1997
>Environment: VC++ 4.2-flat, Win 95
>
>I am creating an app which uses custom palette-based bitmaps and
>background textures, as specified by my (Mac-fanatic) graphics designer.
>Everything looks good at this point, with this exception:
>
>How do I determine (and do I _need to determine) the rectangular area
>where the mainframe main menu resides, in order to paint it's background
>texture? I did not see anything looking relevant to menus in
>GetSystemMetrics(). Please enlighten.
>
>Thanks
>
>Greg
>
>
>--
>
>
><<<< Greg Powers, pow@cruzio.com, Entriade Systems
| Вернуться в корень Архива
|