|
Use the Modulas 5 for your Sendcount...
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
hello friends,
I need to show outlook express send mail dialog box from my vc++ application with attached file to the user. i don't need to send mail, i just want to open that window with attached file.
how can i do that?
|
|
|
|
|
Try using the interfaces/hooks of the outlook express
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
A_Laxman wrote: Try using the interfaces/hooks of the outlook express
Interface provided by Outlook express is not documentd Well, and Outlook itself use MAPI to send Emails
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
A_Laxman wrote: Try using the interfaces/hooks of the outlook express
Anyway only article relating to Outlook Express available on NET, except MSDN, dealing with Outlook express :-
http://www.codeproject.com/com/Outlook_Express_Messages.asp
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi all,
I am getting filename in the string fname.
fname=m_strFileName;
this m_strFileName has an extension of .cam.(For example race.cam)
I need to get only its name not with extension(like race) and store this in fname.
How to do that.
cheers
sangeet
|
|
|
|
|
search for .cam in your string using Find()
once you do that take the left part of the string as
int n=m_strFileName.Find(".cam");
CString filename=m_strFileName.Left(fname.GetLength()-n);
I hope this helps
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
i got the filename without extension.
int n=m_strFileName.Find(".cam");
CString filename=m_strFileName.Left(fname.GetLength()-n);
Now i need to create a directory with this filename.
so everytime the filename changes,the directory name should also be changed.
i used _mkdir,CreateDirectory methods to create new directory.but those methods are only useful for creating specific directories.like "c:\\rocky"
so we get only directory with name rocky..
can i able to create directories at runtime?
cheers
sangeet
-- modified at 6:48 Tuesday 16th May, 2006
|
|
|
|
|
use _rmdir() to change the name of the directory once you have created it with a certain name.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
thanks for ur idea.
please first tell me how to create directories at runtime.the directory name sholud be same like the filename.
so if i open rocky file,a directory should be created with the name rocky.
cheers
sangeet
|
|
|
|
|
When you are creating the directory using the _mkdir function store that string into the path of the filename before creating the file in that specific directory.Use the convention of "..\\..\\ " of creating the path dynamically where you want to store the file. Otherwise you can also save that specific path somewhere in the registry
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
ramyasangeet wrote: I need to get only its name not with extension(like race) and store this in fname.
Use PathRemoveExtension() .
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
Hi everybody. I'm wondering if there is a way to work around the WM_ACTIVATE message. I want to disable a window so that when the user clicks on it, it won't come in the foreground.
Unfortunately, the DisableWindow() API is not good because when clicking a disabled window you get that annoying sound on some systems (default sound that Windows makes).
So is there any other way? I tried messing with the parameters of WM_ACTIVATE before caling the DefWindowProc but it seems to be of no help. Apparently the kernel moves the window to foreground regardless and simply notifies me, the user. I can send it back to the background if I wish, but that causes an annoying visual effect each time the window is clicked... a sort of flicker.
-= E C H Y S T T A S =-
The Greater Mind Balance
Blending C++ with COM ^
|
|
|
|
|
If you want to show/hide window. Then why don't you try
ShowWindow()API.
SW_HIDE - For Hiding window
SW_SHOW - For Showing it.
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|
|
I want to hide it under another, not completely ::- ).
-= E C H Y S T T A S =-
The Greater Mind Balance
Blending C++ with COM ^
|
|
|
|
|
Axonn Echysttas wrote: So is there any other way? I tried messing with the parameters of WM_ACTIVATE before caling the DefWindowProc but it seems to be of no help. Apparently the kernel moves the window to foreground regardless and simply notifies me, the user. I can send it back to the background if I wish, but that causes an annoying visual effect each time the window is clicked... a sort of flic
What about simply returining form Window OnClick message!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
This is not an MFC application. As for returning from WM_LBUTTONDOWN or WM_LBUTTONUP, it ain't helpin'. When I press the button on the window, it jumps back in the foreground. I want it to stay back, just like it would be disabled.
Practically, I want a disabled window, but without that sound that the system makes on usually disabled windows.
-= E C H Y S T T A S =-
The Greater Mind Balance
Blending C++ with COM ^
|
|
|
|
|
Does creating it with WS_EX_NOACTIVATE help?
|
|
|
|
|
Not really. But thanks anyway. I found the solution. If anybody is interested, here is the answer:
On WM_MOUSEACTIVATE return MA_NOACTIVATE;
On WM_ACTIVATE return 1.
Do not call DefWindowProc (in both cases).
-= E C H Y S T T A S =-
The Greater Mind Balance
Blending C++ with COM ^
|
|
|
|
|
Dear All,
I have an owner-drawn list box.
it well working now. when I scroll down to end. there is some space looks vaccant. can we color that area? or how can we ingnore that?
-Sarath
|
|
|
|
|
May be that you are adding some empty strings to the list box somewhere in the code. Post the code so that someone here can check it.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
hi Dear.
thanks I got the solution.
the problem was, i was drawing items with black background, but after the last element, the control drawing its background in white(at vaccant space).
i have solved it using following code.
HBRUSH CProtocolListBox::CtlColor(CDC* pDC, UINT nCtlColor)
{
HBRUSH hbr = NULL;
if (nCtlColor == CTLCOLOR_LISTBOX)
{
hbr = m_hbrCtlBgColor;
}
pDC->SetBkMode(TRANSPARENT);
// TODO: Return a non-NULL brush if the parent's handler should not be called
return hbr;
}
-Sarath
|
|
|
|
|
My 5 for taking the time to post the solution. Thanks.
~RaGE();
|
|
|
|
|
Hi,
I am always confused while using typedefs. I know that by using something like
typedef int number
an alias is creaed for int. But when complex typedefs are defined like the ones below, I get confused.
typedef std::map < short,_bstr_t >::iterator Iterator;
typedef COneValueCommand < short, 0 > COneIntegerCommand;
Could someone explain me the above definations
-- modified at 5:51 Tuesday 16th May, 2006
|
|
|
|
|
koumodaki wrote: typedef std::map < short,_bstr_t >::iterator Iterator;
It simply make an alias for std::map < short,_bstr_t >::iterator (you just have to use Iterator , which is shorter).
Same goes for
typedef COneValueCommand < short, 0 > COneIntegerCommand;<br /> , you can use COneIntegerCommand
Cédric Moonen
Software developer
Charting control
|
|
|
|