|
So, How to fade it?? Could you give me an example?
|
|
|
|
|
The MFC Feature Pack for Visual C++ 2008 [^] provides CDrawingManager class [^]. If you are using VS 2008 and MFC Feature Pack you can use DrawShadow method of CDrawingManager [^].
Regards,
Nuri Ismail
|
|
|
|
|
I can't find any information about CDrawingManager in MSDN document.
|
|
|
|
|
I've gave the links in my previous post, but i will paste them again:
1) CDrawingManager class -> here[^]
2) CDrawingManager::DrawShadow method -> here[^]
But remember that this class is a part of MFC Feature Pack for Visual C++ 2008. It will draw only rectangular shadows. If you are not using the MFC Feture Pack, you can download it from here[^].
Alternatively you can use CExtWndShadow class from this[^] article to draw rectangular shadows.
Both classes draw nice shadows, try them.
Regards,
Nuri Ismail
|
|
|
|
|
This is my code:
CRgn rgn;
rgn.CreateRoundRectRgn(left,top,right,bottom,x,y);
pDC->SelectClipRgn(&rgn);
pDC->RoundRect(left,top,right,bottom,x,y);
But it's wrong. Please help me!!!.
|
|
|
|
|
thanhvinh0906 wrote: But it's wrong.
What do you mean it's wrong ? Could you please describe your problem with more details ?
|
|
|
|
|
CRgn rgn;
rgn.CreateRoundRectRgn(left1,top1,right1,bottom1,x1,y1);
pDC->SelectClipRgn(&rgn);
pDC->RoundRect(left,top,right,bottom,x,y);
How to calculate left1, top1, right1, bottom1, x1, y1 for CreateRoundRectRgn(). if i use left1 = left, top1 = top, right1 = right, bottom1 = bottom, x1 = x, y1 = y. It doesn't bound round rectangle that i draw.
|
|
|
|
|
Whenever I plugin a usb mass driver into my pc, an autorun.inf file is creatd. When I monitored the running proccesses to determine which of them is doing so, I realized that even if I kill that process, another proccess begin to create that damn file again. I gussed there is a dll which is injected into all proccess running on my pc. Now I can't find out which module is doing all these functions ...
one more thing: anyone know umdmxfrm.dll?
Thank you masters!
|
|
|
|
|
Actually this is usually the behaviour of some Viruses.
Actually running process wont show the real process in taskmanager, example the case of ZPharaoh.exe(ZPharoah[^]).
Where you cannot even understand that which process is injecting the code.
since it destroys all the exe in the machine by infecting with itself.
Because those virus firstly dominates your registry and they remove your access to it along with msconfig and taskManager.
Your guessing is correct, if you want create a antivirus patch then just API Hook(API Hooking (LoadLibrary)[^]) the CreateProcess API to understand which all processes are created.
You have to hook those API at startup since some virus, hook the APIs before you.
umdmxfrm.dll(http://www.file.net/process/umdmxfrm.dll.html[^])
So what u can do is, use a good antivirus.
Величие не Бога может быть недооценена.
|
|
|
|
|
This board is for programming queries specific to C/C++/MFC.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi all,
I want to open a file on button click event of my program but i don't want to use ShellExecute. Can anybody please tell me any other api than ShellExecute
Thanks in advance
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
The advantage of using ShellExecute is that you do not need to know:
1. the file type that is being opened
2. the default application associated with the file type
Becasue ShellExecute takes care of it automatically. Is there a reason why you don't want to use ShellExecute ?
To answer your query, what type of file are you wanting to open?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
What do you think about CreateProcess ?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
"_$h@nky_" wrote: Can anybody please tell me any other api than ShellExecute
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi,
I am getting problem in counting attachment of a mail. Code is
_MailItemPtr pPrevMail
.
.
.
Attachments *attPtrPrev=pPrevMail->Attachments;
int nCount=attPtrPrev->Count;
|
|
|
|
|
MPTP wrote: I am getting problem in counting attachment of a mail. Code is
Define: "problem"
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
getting exception at
int nCount=attPtrPrev->Count;
|
|
|
|
|
MPTP wrote: getting exception at
What exception?
OTOH: Have you verified that attPtrPrev is a valid pointer? (May be the email didn't have any attachments at all).
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Mail has attachment and attPtrPrev is not NULL.
I track using GetLastError() but it is giving 0.
try
{
int nCount=attPtrPrev->Count;
}
catch(...)
{
DWORD d=GetLastError();
}
|
|
|
|
|
MPTP wrote: catch(...)
If you find out the exact exception instead, that might give you an idea of what is going wrong.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
I have a MDI project, when I close the project I'll to record the views showing sequence in order to renew, in some articles I know to use the Z-order, but I can't find more information, please help me!
|
|
|
|
|
Use GetTopWindow[^] and GetNextWindow[^] to get the Z-Order of child windows.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
hi guys, i m quite new to programming and i hav dis project i hav to submit this week, any kind of help will be deeply acknowledged,
please find the lnk below....
http://undergraduate.csse.uwa.edu.au/units/CITS1210/Project1/
|
|
|
|
|