|
I created a CTabCtrl control and I succeeded in this, but the problem is that when I place any control over the tab, it is not considered as part of tab, it still react separately as not part of the tab control. My question is am I missing something or a certain tab style that makes that tab a container for any controls placed over it.
|
|
|
|
|
A CTabCtrl is a standalone control, not a container. Think of it as a fancy radio button. Your code needs to respond to tab selection and display appropriate controls at the right time. I group my controls ("tabs") in modeless dialogs, which I show/hide in response to the user's selection.
See this thread for details.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hello,
INTRODUCTION:
I'm trying to get autosizing property sheets, and what I do is to place a CStatic in the dialog in which I want the property sheet inserted.
I resize the CStatic when I resize the dialog and I send the WM_SIZE message to the Property sheet too.
In the property sheet WM_SIZE handler I get it's parent rectangle and call a SetWindowPos in order to resize the property sheet.
QUESTION:
Why the size of the rectangle of the Cstatic don't change? I Get always the same size.
As always thank you in advance...
CODE USED:
in the WM_SIZE handler of the property sheet.
<br />
CRect rectClientPare;<br />
this->GetParent()->GetClientRect(&rectClientPare);<br />
this->SetWindowPos(NULL,2,0,rectClientPare.Width(),rectClientPare.Height(),SWP_NOZORDER | SWP_NOACTIVATE);<br />
|
|
|
|
|
To resize the static control you should either call MoveWindow or SetWindowPos - you should not send it a WM_SIZE message.
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
I get lots of warnings when working with STL in debug. In fact I always get the same:
warning C4786: ... identifier was truncated to '255' characters in the debug information
I thought that including a pragma like
#pragma warning(disable: 4786)
would the twist. But I still get the warnings. Anybody has a (miracle) solution?
Jonathan de Halleux, Belgium.
|
|
|
|
|
Put the #pragma before including any STL header.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
|
Where do you have to insert it ?
Jonathan de Halleux, Belgium.
|
|
|
|
|
check this[^] out.
It is freeware with source-code (pearl script) and works like a charm.
For switching off warnings via a #pragma , please read MSKnowledgebase entry Q167355.
- It simply does not work.
|
|
|
|
|
Thanks for the tip ! It's great !
Jonathan de Halleux, Belgium.
|
|
|
|
|
I've created an application in VC++. I subclassed Rich text box so that it can display my custom fonts from right to left and do the characters joining.
Now i want to do the same with the existing MSN messenger text boxes so that it can also show my custom fonts. For this i surely need to create custom add-in. Any help in this regard is welcome.
Thanks
|
|
|
|
|
|
I am trying to write a "Hell-O-world plus plus!!!!" Program and I have to turn it into my professore at coledge for my programing computers class in 5.5 hours and I have'not done any of the searching on it. I tried the later
!Hell-o-world!
<>"Hell-o-world" is my favorite<>
::Hell: ::WorlD^^
{This computer that I work at sucks!} Sorry Profesore
End CODE
Every time I run it; it saaid to many eror!?!?!?!?!?
WHAT DO I DO???????????
HLP PLZZZZZZZZZZZZZZZZ!!!!!!!!!!!!!!!!!!!!!!!!!!!
PS. I no you guys are like way into this stuf and you no it way better than i do, but i need to get a ok grade to pas this class, so if you guyz could please help a future computer dude out and just send me some good "CODE" i would be thankfull!!!!!!!!!!!!!!!!!!
|
|
|
|
|
HAHAHAHAHAHAHA !!!!! Man, if you want to troll us, then at least make it believable. No-one is this stupid, nor would any professor ever ask anyone to turn in a 'hello world' program.
Besides which, VC++ generates them for free.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
DOOD!!!!!!!!! I need help with my stuf! I can't pass coledge if I dont PASS this clas!!!!! I will be in very much need of your helps PLZ!!!!!!!!
Which program was teh most corect!!??????
PS. Are u saying my schoool is taht bad?!!!!?
|
|
|
|
|
I havnt read anything or tryied to do anything yet. I opoend the Visual CPLUSPLUS and started typing hoping it would work! But it faile ond me with 2 many erorRR!!!!! Teh Visual!! SUKS!!!!!!!
|
|
|
|
|
Like I said, give it a rest. You'll be sober in the morning, then imagine how dumb you will feel.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Hey Chris... since you are the first person I've seen use the word 'troll' as a verb... let me ask you this... what does it mean in reference to posting? and yeah... i realize this post was absurd, but I'm wondering what is actually meant by the word "troll/ing"
Peace
-Mel
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
|
|
|
|
|
It means this moron is pretending to be something he is not in order to try and get a response. The post is not genuine, it's just designed to get people worked up.
Five bucks says he is drunk.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
okay... five buck (US)... but only if we can get him to admit either way okay? ( and thanks for the explaination.... I got it from between the lines)
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
- Just remember when you point a finger at someone else, you are only one finger away from making a fist to hit them with!
|
|
|
|
|
Christian Graus wrote:
Five bucks says he is drunk.
Nah, ten bucks says he's a VB programmer user.
"VB the polished turd of software languages"
|
|
|
|
|
Well, if I was a VB programmer, I'd probably be drinking, too.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Christian Graus wrote:
Well, if I was a VB programmer, I'd probably be drinking, too.
Yeah, bordering on alcoholic
Hey what do ya mean "VB programmer" surely that should be "VB User".
"VB the polished turd of software languages"
|
|
|
|
|
Christian Graus wrote:
It means this moron is pretending to be something he is not in order to try and get a response. The post is not genuine, it's just designed to get people worked up.
Are you serious... took a moment to register... why then? I mean... I've had mostly good experiences here, though I WAS flamed for posting 'frivilous" posts in the lounge. I mean... what's the point?
---------------------------------------------
The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
- Just remember when you point a finger at someone else, you are only one finger away from making a fist to hit them with!
|
|
|
|
|
Mel Feik wrote:
why then?
Some people have no life. This is probably the only social interaction he gets, and he probably came here for it because he's scared of girls.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|