|
I have, and whats more i quoted it in my code example. It is the third method i have displayed.
It isn't a very reliable method.
Any other ideas?
Jase
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
View your digital photos and images with ease using the ultimate desktop image manager for Microsoft Windows
Download your free copy of SlideShow Desktop today from http://www.slideshowdesktop.com
|
|
|
|
|
I have a tree descended from CTreeCtrl displaying text only.
I am using CustomDraw to colour the text of items.
I find I cannot see the text when the item is clicked. This is most obvious where I have not changed the colour from normal.
How do I implement the standard inversion of colour of the text to allow it to be visible.
Sara
|
|
|
|
|
If I understand, when you click on an item, the background goes the same colour as the text ? I'd say because you're drawing the text yourself, you need to check if you're drawing the current selection and change the text colour accordingly.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
How would I use this in a Dialog app. I.E. I need to have it navigate to "res://about.html".
-Matt Newman
-Matt Newman
|
|
|
|
|
Assuming you have inserted the control into your dialog and let the class wizard build a member variable like m_Browser.
m_Browser.Navigate( "res://about.html");
Should do it.
|
|
|
|
|
Thanks I couldn't find an appropriate command or whatever. Thanks
-Matt Newman
-Matt Newman
|
|
|
|
|
|
Yea I figured that out but couldn't get the control to work.
-Matt Newman
-Matt Newman
|
|
|
|
|
Is it possible to have a HTML page on a dialog when using VC 5.0. Do I need VC 6.0? This CWebBrowser does the job? If not is it possible to have something like a control in wich I would simulate a page(I need to write text and load images), something derived from CView maybe? Thanks in anticipation and less bugs!
|
|
|
|
|
I think basically it is from IE 4+ and is an ActiveX control. I don't know if it will work in VC 5 I would think so. I believe their is a third-party open source browser control project but I don't know much about that.
-Matt Newman
-Matt Newman
|
|
|
|
|
How do I open default mail client?
/Ola Carlsson
|
|
|
|
|
To do what ? If it's to send mail, you can pass mailto: (from memory) into ShellExecute.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
I think he is looking for the registry keys for the default email client and or browsers.
I would be intersted in knowing that too.
|
|
|
|
|
I don't want to send an e-mail. I only want to open the users default mail client. If the user has Netscape, i want netscape mail client to start etc.
Hope everybody can interpret my message
/Ola Carlsson
|
|
|
|
|
I want to be able to generate a CLSID, but I always want the first 4 sections (best case) to be the same like so:
51eb18c0-98a7-11d1-83d1-f46705c10000
51eb18c0-98a7-11d1-83d1-f46705c10001
51eb18c0-98a7-11d1-83d1-f46705c10002
51eb18c0-98a7-11d1-83d1-f46705c10003
I need this to happen regardless of the machine's on a network or not. The first four sections should be different for each machine the program is run on as well.
Is this possible?
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
Just dug this up....
"For security reasons, UuidCreate was modified so that it no longer uses a machine's MAC address to generate UUIDs. UuidCreateSequential was introduced to allow creation of UUIDs using the MAC address of a machine's Ethernet card."
Norm Almond
Chief Technical Architect
FS Walker Hughes Limited
|
|
|
|
|
That might be exactly what I want.
Thanks Norm.
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
I can't use that. It needs to be supported under Windows 98 as well.
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
UuidCreateSquential is not defined in the specified header file, and I can't find it anywhere in the VC or sdk source files.
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
It's in Rpcdce.h...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Not in mine...
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
but I always want the first 4 sections (best case) to be the same
No, because that's not how GUIDs are defined. The first 10 bytes are a counter (number of 100ns intervals since some date long in the past, plus some other stuff to account for daylight savings time changes) and the last 6 bytes are the computer's MAC address (or a synthesized number for machines w/o a network card). So you must not change the last 6 bytes on your own or you risk duplicating a GUID made on another machine.
If you can change your requirements so that the first part can be incremented, that's ok. You could then have:
51eb18c0-98a7-11d1-83d1-f46705c10000
51eb18c1-98a7-11d1-83d1-f46705c10000
51eb18c2-98a7-11d1-83d1-f46705c10000
and so on. (This is what the Guidgen util does, BTW.)
--Mike--
http://home.inreach.com/mdunn/
"The Earth is doomed." -- Rupert Giles
your with and ![Beer | [beer]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/beer.gif)
|
|
|
|
|
Either way (I was going on memory - I thought the first 4 parts were identical from a given machine).
In either case, I can't find UuidCreateSequential *anywhere* in the vs6 or sdk code. I checked the rpcdce.h file but that function prototype (or macro) is not defined.
I've run guidgen, and it generates completely different guid's every time (it uses CoCreateGuid).
To hell with those thin-skinned pillow-biters. - Me, 10/03/2001
|
|
|
|
|
According to the July MSDN
Windows NT/2000 or later: Requires Windows 2000 or later.
Windows 95/98/Me: Unsupported.
Header: Declared in Rpcdce.h.
Library: Use Rpct4.lib.
It's on line 1707 of rpcdce.h on my copy of the SDK ( which is always the most recent, unless the CD hasn't come yet ).
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
It's on line 1707 of rpcdce.h on my copy of the SDK ( which is always the most recent, unless the CD hasn't come yet ).
Line 1716 in the latest downloadable version
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|