|
Hi,
I have a requirement like i need get system Resolution of the system and based on that
i need to increase the size of the DialogBox and place the Bitmap(button) inside the DialogBox ..Bitmap can be obtained from a Resource.dll....(i need to use MFC)
Please let me know how can i go with it....
|
|
|
|
|
So what are you wanting help with: 1) getting the resolution of the system, 2) increasing the size of the dialog box, or 3) placing the bitmap button inside the dialog box?
"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
|
|
|
|
|
if possible all the three....
|
|
|
|
|
To get the screen resolution, use GetSystemMetrics() or SystemParametersInfo() . To resize a dialog box, see Chris' answer. For a bitmap button, 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
|
|
|
|
|
see: GetSystemMetrics and MoveWindow/SetWindowPos
|
|
|
|
|
I moved my project from VS2005 to VS2008, compiled fine. I do have a crash when I try to open a frame at runtime and it points to the following in wincore.cpp:
BOOL CWnd::SetOccDialogInfo(_AFX_OCC_DIALOG_INFO*)
{
ASSERT(FALSE);
return FALSE;
}
I am not sure where is the dialog coming from since there is no dialog involved here? Any ideas?
Thanks
|
|
|
|
|
It'd guess you're compiling without ActiveX support. I'd bet there are multiple versions of the CWnd::SetOccDialogInfo function and the one used is controlled by a #define .
Steve
|
|
|
|
|
Thanks, I will take a look at that. There is a third party involved, so i will take a look at them.
|
|
|
|
|
Can anyone tell me how to send the html page as body of the outlook mail and send it throuh MFC program.. C++..
I think CDO might be right.. can anyone tell more on how to do it.. and where i might get CDO sample programs for this functionality..
|
|
|
|
|
Welcome to CodeProject
In the other forum you posted this question in you said
charith87 wrote: The action i want is the procedure should open Outlook Send Message Window with the required fields filled..
Is that what you are trying to do? Because it's not the same thing as sending an email.
Also please don't cross post as you did.
|
|
|
|
|
Actually i wanted Outlook to open itself with the required fields open in HTML format.. the thing wanted finally is sending a html page in the body.. but since sending html is itself confusing..
|
|
|
|
|
If you are trying to twitter the rest of the message to me, I don't use social networking, um... stuff.
|
|
|
|
|
Anyway the message was greater than 160 characters, cant twitter..
Ok some connection problems thats why .. the problem is i was trying to use extended MAPI but it had a lot of dependency issues.. some header files couldnt be used..
So i went on to use CDO.. but CDO is giving exceptions which couldnt be found in google.. so just searching for a sample html body sending mail in CDO so that i could use it for my application..
Getting the right dependencies (libraries + header files) is the problem.. if you know, you can help..
|
|
|
|
|
charith87 wrote: Getting the right dependencies (libraries + header files) is the problem.. if you know, you can help..
CDO is a COM interface. Check this article out[^] for using COM libraries in VC++
|
|
|
|
|
Anyway the message was greater than 160 characters, cant twitter..
Ok some connection problems thats why .. the problem is i was trying to use extended MAPI but it had a lot of dependency issues.. some header files couldnt be used..
So i went on to use CDO.. but CDO is giving exceptions which couldnt be found in google.. so just searching for a sample html body sending mail in CDO so that i could use it for my application..
Getting the right dependencies (libraries + header files) is the problem.. if you know, you can help..
|
|
|
|
|
I've sent HTML as the body of an Outlook message - I think this page[^] about the 'HTMLBody' property of the Outlook MailItem object is what you need. It even has sample code...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
i have an MFC application i would like to split back into its component parts and edit (update the contents)
i had a hard drive problem (dont you just hate it when that happens!) so i lost the original files.
can a split it back up to get the files back again? its half way batter than starting again from scratch.
PLEASE HELP ASAP!!!!
|
|
|
|
|
There are companies which are specialized in restoring data from damaged hard drives. You better try that.
Your really in bad luck to have no backup.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
this is not the question i asked. my drive died a long time ago. it was an external and was my back up.
does any one know the answer to the question i asked?
|
|
|
|
|
lukeis2k20 wrote: can a split it back up to get the files back again?
No.
"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
|
|
|
|
|
just a no? no reason why not?
if the files are put in how can they not be taken out?
its only logical that there is a way.
|
|
|
|
|
lukeis2k20 wrote: no reason why not?
Sure, there's a very good reason why not. The high-level code (e.g., C, Pascal, and maybe VB) is not part of the binary file that the linker produces. An in-depth study of compilers (not using them, but creating them) may be in your future.
"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
|
|
|
|
|
well, if we all understand you, you cannot really, easily and practically "dissassemble" (google that) a existing application.
so, in short, no.
This signature was proudly tested on animals.
|
|
|
|
|
One presumes that by 'split', you mean 'decompile'[^].
I also found this page[^], which seems to describe your situation exactly.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: I also found this page[^], which seems to describe your situation exactly.
That's excellent. Although it should probably also introduce the concept of Backing Up Your Files . I mean you "lost" your source code. It's not like a plane crashed and left you deserted on a magical time traveling island in the middle of the pacific. I mean you "lost" your source code so it's something you could have prevented.
I'm just saying.
|
|
|
|