|
I don't know - but looking at the documentation, CMfcOutlookBar inherits a method called "HasAutoHideMode" from CBaseTabbedPane - it also has a method called "SetAutoHideMode". Why not experiment - try calling that method from your application and see if your Outlook bar auto-hides...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
hi ,
i have tried the thing what u have asked but the same does not work!! Is there any alternate way ?
Thanks in Advance
Regards,
Samir
|
|
|
|
|
Not that I'm aware of.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Sir,
So is there any other way i can achieve it?? The the problem is that i have already done all the functionality on the outlook bar.. can i add the full CMFCOutlookBar on CDockablepane?? i have tried that also but it is also not working..
I dont kno if i m wrong but adding all my functionality to individual pCDockablepane and then docking it will help??
Thanks in Advance
Regards
Samir Satardekar
|
|
|
|
|
It may be a little late, but here's how I'm doing it:
1) In the frame-window's OnCreate() method, I add the following code just before the call to CreateOutlookToolbar()
<br />
EnableAutoHidePanes(CBRS_ALIGN_ANY);<br />
2) In the CreateOutlookToolbar() method, I change the call to bar.Create() to include ControlBarStyles as illustrated below:
<br />
if (!bar.Create(strTemp, this, CRect(0, 0, nInitialWidth, 32000), uiID, WS_CHILD | WS_VISIBLE | CBRS_LEFT, AFX_CBRS_AUTOHIDE | AFX_CBRS_RESIZE))<br />
{<br />
return FALSE;
}<br />
Quite simple really, but with one slight draw-back: you don't get to see the stick-pin icon! No, in order to actually have the outlook bar auto-hide, you have to right-click the caption on top... Not a big deal for me - I'm gonna try and fix it later, but for now it will do.
Hope this helps,
Jumpster
Edit: Realized I missed a step... Added it as step 1 above.
|
|
|
|
|
Better late than never.
If found that you can display a pin by adding a gripper to the outlook bar using the following code (notice the additional CBRS_GRIPPER style):
if (!bar.Create(strTemp, this, CRect(0, 0, nInitialWidth, 32000), uiID, WS_CHILD | WS_VISIBLE | CBRS_LEFT | CBRS_GRIPPER, AFX_CBRS_AUTOHIDE | AFX_CBRS_RESIZE))
{
return FALSE;
}
Unfortunately, you do get a duplication of the current name of the pane in the gripper as well as the underlying CMFCOutlookBarTabCtrl.
Regards,
QuiOui
|
|
|
|
|
HI,
i have a string like ..
CString Str="dc.xml,Copy";
how can i check whether the string "Copy" exists in Str..
Please help me...
|
|
|
|
|
|
sorry to being sarcastic! i think you are learning MFC.. Try to search Class reference in MSDN.
This will help in future, if not now. anyways CString::Find can resolve your problem
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
You can use StrStrI function.For using it u need to include "shlwapi.h"
e.g
CString Str="dc.xml,Copy";
LPTSTR pExist = StrStrI(Str, L"Copy");
if(pExist)
printf("Str contains Copy");
else
printf("Str does not contains Copy");
|
|
|
|
|
ankitbtrivedi wrote: You can use StrStrI function.
Why would you not use the find method that's built into CString , if CString is already being used? Not to mention that you will need to explicitly link to shlwapi.lib !
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: if CString is already being used? Not to mention that you will need to explicitly link to shlwapi.lib! Roll eyes
good, talking like a real programmer. some time i think i am quite beginner in programming now
|
|
|
|
|
That feeling, I'm familiar with. We all have aplenty to learn.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
hi!
Since VOIP is prohibited within some area, broadband internet ISPs block VOIP ports or drop VOIP signal and voice packets,so i want to wrapp the VoIP trffic into a package which can not be detected by ISP.
So can any one please help what should i do for wrapping?
Which technology should I use?(may be SSL Tunneling or any other?)
Please help me.
thanx in advance
Note:May be this is not the right forum,but i dont know which technology or programing lang i should use)
|
|
|
|
|
this has to be done using vc++.
but i do not know how to do that..please help.
thanx in advance
|
|
|
|
|
hi,
i have the below code..
TCHAR buffer[SIZEOFTCHAR];
::GetSystemDirectory(buffer,SIZEOFTCHAR);
CString csPath;
csPath+=_T("");
i want to copy value in buffer to csPath and i want to append other string to csPath.Please let me know...
|
|
|
|
|
No need to convert anything, you can simply assign your buffer in your CString object:
CString csPath = buffer;
If you need to concatenate your buffer at the end of the CString content, you can also do it like this:
CString csPath = "Something";
csPath += buffer;
BTW, what is SIZEOFTCHAR ? What is its value ? If it is the size of one character, then your string will only be able to contain 1 single character, so I guess this is not really what you want.
|
|
|
|
|
Thanks for ur Reply.....
but the issueis...
TCHAR buffer[8000];
::GetSystemDirectory(buffer,8000);
i need add the below string to the path which is obtained from above function..
CString csPath;
csPath=_T("\\")+"files.ini";
Please help me..
|
|
|
|
|
p_1960 wrote: i need add the below string to the path which is obtained from above function..
CString csPath;
csPath=_T("\\")+"files.ini";
CString csPath = buffer;
csPath += _T("\\files.ini");
|
|
|
|
|
TCHAR buffer[8000];
if (! ::GetSystemDirectory(buffer,8000))
{
}
CString csPath(buffer);
csPath += _T("\\files.ini");
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
p_1960 wrote: TCHAR buffer[8000];
What's your fetish with the number 8000?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I make a guess:
This sample [^] uses 32767 , that is 0x8000-1 (Well..., actually the two things are probably unrelated...)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: This sample [^] uses 32767, that is 0x8000-1 (Well..., actually the two things are probably unrelated...)
thats probably best answer i ever got!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Thank you, anyway I guess you got too few answers in you life...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote:
Thank you, anyway I guess you got too few answers in you life
i thought you are taliking about question
|
|
|
|