|
|
I'm using CButtonST(posted there too) and am trying to make my buttons transparent, but can't seem to get it to work. Because the controls under the button are more than one color I can't just make it the same color. Is there a way I can set the icons back ground color so it doesn't display it or any other way to get around this?
Thanks
|
|
|
|
|
Look at the CSTButton class members, you'll find what your are searching for.
Florian
|
|
|
|
|
Hi,
my name is Juan and I develop software since 1996 on Visual C++. Recently I try to decode the mouse protocol, so I develop a service and open one serial port and received this data, now I want to send this message from user side to kernel side, I mean, I do not want to do a driver I try to use a service. So, my problem now is how to send this information to kernel side in order to dispatch the data to the application on the user side.
I wait for any help.
Thank you so much.
Juan
|
|
|
|
|
|
Anyone got a little script how to count the lines of my RichEdit-based MDI application such as they do in HTML Editors?
Thanks
|
|
|
|
|
There's a line counter add in on the site somewhere - probably the add-ins section.
Christian
NO MATTER HOW MUCH BIG IS THE WORD SIZE ,THE DATA MUCT BE TRANSPORTED INTO THE CPU. - Vinod Sharma
Anonymous wrote:
OK. I read a c++ book. Or...a bit of it anyway. I'm sick of that evil looking console window.
I think you are a good candidate for Visual Basic. - Nemanja Trifunovic
|
|
|
|
|
Can somebody tell me whats is the difference between UDP and TCP/IP protocol.I'd be sp please if you guide me to some tutorial or links about them.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Quite simple really...
UDP is like fire and forget, meaning that you do not need acknowledgement of the packet getting to its destination i.e. video streaming.
TCP/IP needs to have acknowledgements meaning you are guaranteed delivery.
I do not know of any tutorials, this was from my Cisco courses.
BD
|
|
|
|
|
Well,I didn't know it. Thanks.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
Hello!
I have a small problem I use the DHTMLEdit control and to get the HTML code using GetDocumentHTML but it gives me a code in this format:
....
Is there a way to get this code in this format:
.....
Thank you very much!
|
|
|
|
|
Scolinks wrote:
Is there a way to get this code in this format:
.....
I doubt it. If you really don't want the new lines you will need to massage the returned text to get rid of them.
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
Yes, it's possible. But, not that easy.
The format of a HTML file is the same of a XML file. They both use <something> as tags. With XML there are a lot of possibilities.
It all depends on what you want to do with the HTML-file. If you want to parse/change/edit take al look at the DOM-parser. Then it doesn't matter if the code looks like
<head>
</head>
or
<head></head>
Another possibility is using XSLT for reformatting you XML file.
Again, it's not that easy to start with.
succes
Wimel
|
|
|
|
|
I'm creating an ActiveX control, using MFC in C++, that will be inserted into IE, Word, and a custom app. I need to add a toolbar for the control that docks to the parent frame, when the control is inserted in the container.
I haven't been able to find any info about doing this.
Any help would be appreciated.
Thanks,
Chris
|
|
|
|
|
Does there exist any free code that implements something similar to the Watch window in Microsoft Developer Studio? I would like to be able to read in a header file containing definitions of structs and then display the contents of struct objects in my program at run-time.
|
|
|
|
|
I have a custom control that i do all the drawing on. If i want to print the control can i just replace the DC with a DC i get from CPrintDialog?
This works but it prints reeeally small. How can i get it to print so it is the same size as on the screen?
Scott
|
|
|
|
|
your screen is probably at 96 DPI, but the printer is likely 300 or 600 DPI. so, it's drawing with the same number of dots, but the dots are much smaller. what you need to do is to set the printer DPI (in effect) to the same as your screen DPI.
you can do this by adjust the DC's extents (see SetViewportExtent and SetWindowExtent and maybe SetMappingMode).
this might work for you:
pDC->SetMapMode(MM_ISOTROPIC);
pDC->SetWindowExt(desiredDPI);
pDC->SetViewportExt(pDC->GetDeviceCaps(LOGPIXELSX), pDC->GetDeviceCaps(LOGPIXELSY));
-c
When history comes, it always takes you by surprise.
|
|
|
|
|
What should the desiredDPI be? I tried 96 and it seems to work pretty good but it prints everything a little smaller than it should be.
I can play around with desiredDPI and get it to print almost exactly like it is on the screen but there's got to be a way to figure what this value should be?
Scott
|
|
|
|
|
try 72
When history comes, it always takes you by surprise.
|
|
|
|
|
For the modeless CDlg it goes in in Create(IDD_DLG, this). For the modal dlg, how do we send in the parent pointer? Would it have to be assigned to a member pointer of the dlg class of the parent type?
Like:
MyCDialog myDlg;
myDlg.m_dlgParentPointer = this;
myDlg.DoModal();
If GEtParent() is the way to go instead, why is that better?
Appreciate your help,
ns
|
|
|
|
|
|
But all the CDialog constructors have either 2 or zero number of arguments.....?
CDialog::CDialog in mSDN ..???
I'll try your idea but just wondering about the 1 argument constructor you have...
Appreciate your help,
ns
|
|
|
|
|
Nish is talking about the CDialog-derived class that the ClassWizard creates for you when you associate a dialog resource to a class. That one only has one parameter and it's the parent window.
Regards,
Alvaro
Quitters never win. Winners never quit. But those who never win and never quit are idiots. -- despair.com
|
|
|
|
|
Thanks. If I may....where did you find this info? Next time I'll search that resource for help as well....
I just looked in the mSDN under CDialog
Appreciate your help,
ns
|
|
|
|
|
Have you ever used the Class Wizard to generate the CDialog-derived class for your dialog box template??? I suspect you haven't. If you had, you'd have seen the constructor for the class that gets generated.
I recommend you take an online tutorial to given you a broader view on all the techniques you can use to generate MFC code. The one that really helped me (a long time ago) was the "Scribble" tutorial. It taught me all about using the Class Wizard for dialog boxes. Believe me, it's a must-know!
Regards,
Alvaro
Quitters never win. Winners never quit. But those who never win and never quit are idiots. -- despair.com
|
|
|
|