|
Are the dimensions in m_rectLastImage valid after the first image is displayed?
Never mind, I wasn't looking at the code carefully enough.
/ravi
|
|
|
|
|
is void CSaverWnd::FadeOn() being called by WM_PAINT corresponding function? if not, CPaintDC dc(this); the dc get in this way will not have a valid clipping filed in screen, means using that dc couldn't paint as u wished.
life is like a box of chocolate,you never know what you r going to get.
|
|
|
|
|
William.Wang wrote: CSaverWnd::FadeOn() being called by WM_PAINT corresponding function?
Nope, it's called by the OnFadeOn message handler, which is triggered when the FadeOff thread sends the appropriate message back to the window.
I'm writing a screen saver for myself because a) I can't find anything already written that I want to try, b) I don't really trust programs I get off the net anymore, and c) I've never written a screen saver before. The saver fades pictures and/or quotes on/off the screen.
I may even write an article about it when I'm done.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
hi i am new to this language.....could u please suggest me how to create two applications using GUI in VC++????
it should display in the same screen...
-- modified at 16:04 Sunday 8th April, 2007
deepthi bhattachar
|
|
|
|
|
deepthi bhattachar wrote: could u please suggest me how to create two applications using GUI in VC++????
That's a pretty open ended question that can't be answered in a few paragraphs. If you're very new to MFC, I suggest you take a look at this[^] set of tutorials.
/ravi
|
|
|
|
|
I am deriving a class CCustomEdit from CEdit and overriding OnKillFocus.
I am using this CCustomEdit class for edit controls in my project.
In OnKillFocus of CCustomEdit I want to know which controls(preferably ID/object) is being used currently so that i have to check for validation based on the control's ID/object in OnKillFocus of CCustomEdit.
can somebody give me solution.
|
|
|
|
|
According to this[^] MSDN link, OnKillFocus() receives a pointer to the CWnd that's about to receive focus.
/ravi
|
|
|
|
|
But here i want the control id which lost its input.
|
|
|
|
|
Super Hornet wrote: i want the control id which lost its input.
The notification is sent to the control that has lost focus.
/ravi
|
|
|
|
|
has anyone used pkunzip.exe for unzipping files
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: has anyone used pkunzip.exe for unzipping files
It's not a good question for this forum and this question has two answers yes|no,however I suggest use of WinRar
|
|
|
|
|
deeps_cute wrote: has anyone used pkunzip.exe for unzipping files
Yes.
|
|
|
|
|
I use it regularly.
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Hi,
I wish to parse the EML file ie, storing the EML file contents into
From, To, Cc, Bcc strings and attachments to the corresponding formats.
Please could you specify where i can get the source code for doing this task or suggestions for achieving this would be appreciated in advance...
Regards,
nag.
|
|
|
|
|
Refer to this[^] link.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Hi,
Thanq for ur prompt response...sorry for the delayed reply...
I searched on "Parse eml files" in the google...but all the links are showing the third party softwares and using MAPI.
I don't wish to use third party tools and MAPI. It should be done by reading the raw data. EML file should be parsed and stored the Attachments in the corresponding files, From, To, Cc and other fields in respective fields. The html body should be stored in plain data.
Please could you specify where can i get the code snippets for achieving this.
Regards,
nag.
|
|
|
|
|
Hi,
I want to use gdi+ in VC++ 6 from where I can get the GDI+ SDK i.e. gdiplus.lib .. etc?
Please help.
Regards
Avinash Gupta
1st Year B-TECH Student(CSE),
ITER India.
|
|
|
|
|
|
u can search gd+ in net, you will get all these.. You need to include
gdiplus.h in your project to use it.
If u can Dream... U can do it
|
|
|
|
|
We are designing a program to diplay the contents of 2 files in an edit box by havin 4 buttons start1 stop1 start2 stop2 that do corresponding jobs.So we are clueless as to how to do the program.Can u send links relating to the program
|
|
|
|
|
Not enough clarity in your request for anyone to be able to help.
what, precisely, are start1, start2, stop1, stop2 expected to start and stop doing? When you say "display the contents of two files in an edit box" one would expect that you mean you are diplaying the text content of two files (that's what edit boxes do). So what is the pupose behind the start and stop buttons (are they meant to browse for and open the files?, close the files?).
Read the post at the top entitled "How to get an answer to your question". Pay particular notice to item 2.
|
|
|
|
|
how to know that the adapter(either lan or wireless) is disconnected in wmi
|
|
|
|
|
use netconnectionstatus in win32-networkadpater. if this is 0 -> disconnected
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
hi..
My problem is about registry read/write, and i used VC6.0 to access vista registry but it did not work; does it need to re-compile by Mt.exe or it has other way.....
Tnanks~
Benson
Just try it!!
|
|
|
|
|
I was having trouble with this as well. Daniel Grunwald was kind enough to point me to an item I must have missed when reading "Windows Vista Application Development Requirements for User Account Control Compatibility" around page 63 and up concerning manifests.
The UAC(User Access Control) junk for Vista, specifically the registry and file virtualization technologies, were kicking in for my windows NT based apps. Apparently, we need to embed one of those darn manifest files in our app to prevent virtualization from kicking in. I've been playing with it for a couple of days and it seems to work. (so far)
Having the manifest with the <trustInfo> section apparently disables virtualization for the app.
Anyway, be forewarned, there are some issues with the manifests from VS 2005 causing some parsing bugs on XP if those manifests are used as is. I'm using the manifest that gets added to my VC++ 2003 projects and modifying it accordingly and things have been stable.
Here's the layout I'm using for standard apps...
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="Microsoft.Windows.YourAppNameGoesHere"
type="win32"
/>
<description>Your app description here</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
<ms_asmv2:trustInfo xmlns:ms_asmv2="urn:schemas-microsoft-com:asm.v2">
<ms_asmv2:security>
<ms_asmv2:requestedPrivileges>
<ms_asmv2:requestedExecutionLevel level="asInvoker">
</ms_asmv2:requestedExecutionLevel>
</ms_asmv2:requestedPrivileges>
</ms_asmv2:security>
</ms_asmv2:trustInfo>
</assembly>
for administrative utility apps, simply replace the "asInvoker" to "requireAdministrator" and it'll put one of those nifty shields in your icon identifying it as such and ask the user if it's ok to run as admin whenever they try to run it on Vista. This eliminates the need to remember to right click the icon and choose "Run as Administrator".
The article "Using Windows XP Styles in your MFC/WIN32 Applications" here on CP has a decent description on how to embed the manifest file quickly. The Microsoft way requires some defined symbols and it is probably more elegant but if your in a hurry, and want to get this working fast, his article does the job.
Disclaimer: I'm still trying to verify that this doesn't hose my apps on other versions of Windows but so far, XP and W2K have not complained. I've only known about this for a few days myself.
I hope that helps. (Sorry for the long post. I just thought I'd bundle everything people have helped me piece together in one place for others to use)
|
|
|
|