|
|
hi, the issue is, the button window is owner drawn using BS_OWNER. It is of type child, the parent window has a bitmap/png loaded, i should be able to see the bitmap through the button window and still capture the event on the button, presently used the getstockobject(NULL_BRUSH),This works fine when emulated on a win32 but the emulator i use is a pocket pc,where getstockobject(NULL_BRUSH),punches a hole thro the button and i can see the native screen, any answers ???
|
|
|
|
|
Hi to All
I want to write a code in vc++ to send email from my server to another server domain in which i need tls negotiation but i dont know how it is done
i got some tips i.e.
S: <waits for="" connection="" on="" tcp="" port="" 25="">
C: <opens connection="">
S: 220 mail.imc.org SMTP service ready
C: EHLO mail.ietf.org
S: 250-mail.imc.org offers a warm hug of welcome
S: 250 STARTTLS
C: STARTTLS
S: 220 Go ahead
C: <starts tls="" negotiation="">
but not getting next idea what should i do in last step C: <starts tls="" negotiation="">
I would be highly obliged if any one could help me
Thanks in Advance
|
|
|
|
|
Hi
All
I am using CPropertySheet,CPropertyPage class for linking dialogBoxes, I want to change Font of all pages used in PropertySheet so anybody have code to change default font of propertpages then please forward me.
Thanks in Advance
Atool
A
|
|
|
|
|
Atul,
You have asked this[^] question n number of times. Whats problem with you ? Doesn't previous replies help you ?
|
|
|
|
|
I
Tried ur suggestion i can change font of simgle DialogBox, but now i want to change Font of propertySheets, So can it be done.
Atool
Atul
|
|
|
|
|
SetFont is CWnd member function. So, there is no problem using same for CWnd or derived class object.
|
|
|
|
|
Hi all,
I'm trying to delete a file, I'm doing the following:
char attFName[50]={0};
strcpy(attFName, "C:\\dir\\");
strcat(attFName, fileName);
BOOL rc = DeleteFile((LPCTSTR)attFName);
But the DeleteFile function returns FALSE.
So then I took attFName and placed it into "Run", and it opened the file.
Can anyone please help?
Many Thanx
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
And what GetLastError returns in this case ?
|
|
|
|
|
|
|
Programm3r wrote: BOOL rc = DeleteFile((LPCTSTR)attFName);
The (LPCTSTR) cast is not needed and should be removed; there is little point (and some danger for maintenance programmers) in casting something to the type it already is, especially when unsafe C-style casts are used.
Steve
|
|
|
|
|
Stephen Hewitt wrote: and some danger for maintenance programmers
Thanx Stephen, I'll keep it in mind next time
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Try to avoid C-style string manipulation functions; use a string class instead. Here's code to do the same using std::string s:
string name = "C:\\dir\\";
name += fileName;
BOOL rc = DeleteFile(name.c_str());
Or using MFC's CString class:
CString name = "C:\\dir\\";
name += fileName;
BOOL rc = DeleteFile(name);
Steve
|
|
|
|
|
Hi,
Any information on adding .GIF files to the dialog .. please let me know..
Harsha
|
|
|
|
|
Hi Harsh !
I've developed a class to render any gif file to any control. Controls can be dialogs, buttons, listboxes, list controls etc. Any control means Any Controls.
If u want that class, come online at:- jubinc@skype
Come online at:-
jubinc@skype
|
|
|
|
|
I wish i can come online.. but right now i am in office and i cannot use any applications like skype and messengers.. can you please send the class to my mail ..
mail id harsh_2961@yahoo.co.in
Harsha
|
|
|
|
|
Local E-mail system has not been working since past 4-5 days and won't work till next week. And mail sites are restricted here. Only skype is allowed. If u could come at Skype, then u can have it.
Come online at:-
jubinc@skype
|
|
|
|
|
ok.. i will let you know when i come online... thanks a lot...
Harsha
|
|
|
|
|
A simple alternative is using GDI+...
To load and draw a gif takes 3 lines of code (not including GDI+ initialization at the app level)
Gdiplus::Bitmap SrcBitmap(L"C:\\test.gif", FALSE);
Gdiplus::Graphics DstGraphics(hwndDialog);
DstGraphics.DrawImage(&SrcBitmap, 50, 50, SrcBitmap.GetWidth(), SrcBitmap.GetHeight());
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Dear friends,
I have done one functionality using MDI and CFormView.
There i am using Menus to access different functions. Now i have to change it. My client wants me to chnage menus to Tabs. I have to use old code for the functionality as i have very less time in hand. Can u please suggest me what should i go for Property pages or Tab controls???
its really very urgent..
Megha
|
|
|
|
|
|
how to receive the signal from usb. i am having a biometric usb where i have to receive the signal if the user gives thumb impression. how to do this
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: i am having a biometric us
You should have a driver supplied with your USB stick. What you will need to do in your application, is open the driver using CreateFile and then you can exchange commands with the driver using DeviceIOControl (or you can also use ReadFile and WriteFile, but that depends of how the driver is implemented). Normally, everything should be described in the documentation of your device.
|
|
|
|
|