|
Thanks ashok..it works.
Should i have to overide the Create() function so that the font will change when dialog is created as Modless?
nave
|
|
|
|
|
Yes..
Override create for modeles dialog.
Try that and revert me back whether it works fine or not.
Thanks & Regards,
Ashok
|
|
|
|
|
Halo Naveen,
I think you have not updated your dialog data after setting the font. After you finish setting the font in dialog, do UpdateData(0); If the problem is something else, I could give you a small sample code snippet on how to set a font. Please let me know of anything.
Regards,
Rajesh R. Subramanian
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Can u show me the sample? I have tried updateData(0). it dosen't work
nave
|
|
|
|
|
Please send me the site addresses for changing the skin.
Is there any possibility to change the skin through code?
Please reply ASAP.
Thanks & Regards,
Ashok.
Ashok Reddy
|
|
|
|
|
Skinning[^] a dialog.
Nibu thomas
Software Developer
|
|
|
|
|
|
|
what I know is the path of the file.
and I want to adjust the size of the image on the dialog, too.
Thank you very much!!!
-------------------
I am learning C++ and English
|
|
|
|
|
You can use a combination of LoadImage and StretchBlt .
Nibu thomas
Software Developer
|
|
|
|
|
And
CBitmap and StretchDIBits
|
|
|
|
|
I think this way is good
#include AtlImage.h
CImage m_Image;
m_Image.Load("c:\\picture.bmp");
//m_Image.BitBlt(GetDC()->m_hDC,CRect(0,0,800,600),CPoint(0,0));
m_Image.StretchBlt(GetDC()->m_hDC,CRect(0,0,200,200),CRect(0,0,800,600));
|
|
|
|
|
Hi ewighell,
There are some steps of doing this:
[1] Load the bmp in mem. Your can use CBitmap::Load to do this. the CBitmap class can give you a handle (HBITMAP) to this bitmap.
[2] Create a dc by using CDC::CreateCompatibleDC; select the bmp handle into this dc (CDC::SelectObject).
[3] Override the dialog's OnPaint function. use CDC::Bitblt or CDC::StretchBlt to render the bmp on to dialog surface.
Regards,
Chris
|
|
|
|
|
Hi guys,
what is DLL Hell?. whether Assembly is alternate to DLL?.
Any help in this regards are greatly appreciated.
Thanks n regards
Vivek.S
You only have to do a very few things right in your life so long as you don't do too many things wrong.
|
|
|
|
|
|
|
i want to read value of cookie from webpage thorogh MFC by passing the cookie information(name etc) throgh URL.
please reply me how it is possible.
Bankey Khandelwal
Software Engineer
|
|
|
|
|
i want add an email to outlook's inbox
so i write the code like this...
_MailItemPtr pNewMail;
MAPIFolderPtr pInbox;
_ItemsPtr pInboxItems;
_NameSpacePtr pNameSpace;
_ApplicationPtr pApp("Outlook.Application");
pNameSpace = pApp->GetNamespace(L"MAPI");
pInbox = pNameSpace1->GetDefaultFolder(olFolderInbox);
pInboxItems = pInbox->Items;
pNewMail = pInboxItems->Add();
pNewMail->Subject = "Save Inbox";
pNewMail->SaveSentMessageFolder = pInbox;
pNewMail->Save();
pNameSpace->Logoff();
i want save email to inbox,but the result is save the email to draftbox.
i think have a mistake in the code,but i don't know.
anybody know how to Save email to inbox,please tell me,thanks!
Best Regards!
|
|
|
|
|
i have a block of codes but this error pops up everytime i run my program.
scenario:
i'm suppose to create a ticket reservation system and i dun even know how to code... alot of trial n error which wil take forever, due date's not enough time to read up everything )=
|
|
|
|
|
Can you please explain your problem in more detail? I mean on which part of code, you get this error?
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
The error means what it says, you're trying to pass too few parameters to a function. Not wanting to be rude, but that shouldn't be hard to work out.
fuschia wrote: i'm suppose to create a ticket reservation system and i dun even know how to code...
Well, I would suggest that if you've taken a course that is above your level you can either drop out, or work really hard to catch up.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Very right...
Do programming by loving it.
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
This error occurs when number of parameters in function declaration do not match with number of parameters you are passing at the time of function calling. So check your function declaration.
Good luck
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
The easy solution is not to run your program.
Not tryng to be rude, but how the hell did you get a programming job?
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi all,
I am trying to instantiate a dialog box and keep getting the error message
'too few parameters, expected 2'
the offending piece of code is:
void CFisheriesView::OnAlmforeignkeys() {
COpenDB open; //ok
open.ALM(); //ok
CALMFKeyDlg dlg; //bombs out here
dlg.DoModal();
}
Anyone can give me some pointers? Thx,
Ralf.
ralf.riedel@usm.edu
|
|
|
|