Tab Control and GroupBox...Anybody?
-
A group box control without a caption. Isn't that just a rectangle? And what does "over the tab control" mean? On Top (Z order)? Please don't make up new technical terms, there are enough already.
led mike
-
You cold resize/reposition the tab control to fit in the group box. Making the groupbox text transparent is tough. Ownerdraw may help but it seems easier to just draw a frame and the text. I don't use ATL, I use MFC so I can't provide an example. Mark
-
A group box control without a caption. Isn't that just a rectangle? And what does "over the tab control" mean? On Top (Z order)? Please don't make up new technical terms, there are enough already.
led mike
Remember, led mike, you can give a man a gift certificate for a filet-o-fish and he'll eat for a day. Get a man a job at McDonalds and he'll have an employee discount for life. I think that's how the saying goes...
-
Yeah....this is why more and more businesses are dumping Visual C++...this is something that C# or VB programmers are not even thinking about, they just put it on the window and concentrate on the more important business logic.
Yeah, I can only dream of using those fancy new Windows controls they have in C# and VB.
-
Please, is there anybody who can show me how can I put a group box control over the tab control, and to have a caption of the group box to be transparent, not gray. I don't use MFC, I use ATL so I am working with the SendDlgItemMessage, but it doesn't matter, as everything boils down to messages anyways. I use manifest files, so controls are XP-like. Thank you.
Set the Transparent style bit on the group box (
WS_EX_TRANSPARENT
).--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
Remember, led mike, you can give a man a gift certificate for a filet-o-fish and he'll eat for a day. Get a man a job at McDonalds and he'll have an employee discount for life. I think that's how the saying goes...
-
No, it is not that. A group box has a caption, but I don't want a gray background for it.
-
Set the Transparent style bit on the group box (
WS_EX_TRANSPARENT
).--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
If only they had implemented it in the text part of the control. What's interesting is the part inside the box is transparent with or without that style set :wtf:
-
Set the Transparent style bit on the group box (
WS_EX_TRANSPARENT
).--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
Thanks for your help, Mike, but it doesn't work. Simply selecting a Transparent property from the property control ( I use Visual Studio .Net 2005, but the application is Visual C++ with ATL 8 ) would add a WS_EX_TRANSPARENT bit to the group box (I checked the .rc file and it is like that). However, even though the group box does draw transparently, the caption bar of the group box still has an ugly gray background behind the black color text. I just don't know how to get rid of it.
-
Yeah....this is why more and more businesses are dumping Visual C++...this is something that C# or VB programmers are not even thinking about, they just put it on the window and concentrate on the more important business logic.
Yeah non-software companies usually use VB for their internal programming and software companies usually do not use VB for their products. Microsoft could have provided for VC the conveniences they provided for VB but they just did not. Many things are easier in VB but when we need to do things that VB is not designed to do then VB is more difficult.
-
If only they had implemented it in the text part of the control. What's interesting is the part inside the box is transparent with or without that style set :wtf:
Yeah, the group box has weird behavior when themes are on in XP (maybe Vista too? not sure about that)
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
Yeah non-software companies usually use VB for their internal programming and software companies usually do not use VB for their products. Microsoft could have provided for VC the conveniences they provided for VB but they just did not. Many things are easier in VB but when we need to do things that VB is not designed to do then VB is more difficult.
-
Yeah, the group box has weird behavior when themes are on in XP (maybe Vista too? not sure about that)
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ