Image overlapping menu bar. Impossible request? (OpenInsight Specific)
At 02 AUG 2001 08:10:58AM Oystein Reigem wrote:
I have a window where I'm running out of real estate. In the very upper right corner there is a bitmap, and what would help a lot was if I could have that bitmap even higher, on top of the menu bar. That end of the menu bar is unused anyway.
I made a naive attempt with GDI and a negative Y, but without any success. What I draw gets clipped. (Actually I did my test with text, but feel certain the result would be the same with images.)
Is it at all possible to achieve what I want?
Can I avoid clipping when I use GDI?
Can I draw on something else than the window client area?
Can I make the menu bar shorter???
Or must I use a separate window floating on top of the original form?
- Oystein -
At 02 AUG 2001 04:20PM Mike Ruane wrote:
Oy-
How about putting the image in a modeless dialog box that you position programmatically?
Or a dialog box that appears upon request from a user action?
Mike
At 02 AUG 2001 06:08PM Oystein Reigem wrote:
Mike,
That's what I meant with my last suggestion/question.
I've never done something like that before. But I guess it isn't too difficult.
My window is an MDI form showing many different child windows - one at a time. The image in the upper right corner is on the frame. It's just with two of these child windows there's a problem. For these two I need a slightly larger client area, one that would overlap the frame image.
I'll see if I can find a different solution. I might perhaps change the client area dynamically and sacrifice the frame image when the problematic child windows are open.
But I'd still like to hear if there are other solutions.
- Oystein -
At 02 AUG 2001 06:12PM Oystein Reigem wrote:
Mike,
When I said "that's what I meant" I was referring to your first suggestion.
Your second suggestion is not an option.
- Oystein -
At 03 AUG 2001 04:13AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Oystein,
Perhaps the only other solution you have is to subclass the form's window procedure with a DLL and paint the image on the menu yourself. That's how Windows puts all those nice little icons on the menus in anycase.
World leaders in all things RevSoft