|
> is reading and writing an AVI file impossibly difficult,
> or am I just impossibly lost?
You are lost
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
OpenThread Unsupported?
|
|
|
|
|
> OpenThread Unsupported?
Yes, that's what MSDN says. Why do you need this function? Maybe it's possible to achieve it in some other way.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
There is an example in the platform SDK called processViewer (I think).
This tells you which threads are running. I had a brief look at this
a few months back. Gets the info by querying the performance counters
and/or the registry if I remember correctly.
Stephen Kellett
--
C++/Java/Win NT/Unix variants
Memory leaks/corruptions/performance/system problems. UK based.
Problems with RSI/WRULD? Contact me for advice.
|
|
|
|
|
Hi all,
I am a rooky in C++, I want to make a counter for my program. The counter must
look like this -> 0:00:00. It begin to count seconds then minutes and then a hour.
After 1 hour is reached the counter is set to 1 hour again.
I hope somebody can help. Everything is welcome (samples, sites)
Thanx in advance,
David
|
|
|
|
|
I'm very new with V C++ and I need to know were I can get compilers, I had one before but I recycled it because i had no idea what it was for (that was 5 months ago) and now I need one back. If anyone could help me out that would be great.
|
|
|
|
|
Hi:
I am using the C++ CreateProcess() method to start up an executable. I pass the CREATE_NO_WINDOW flag into the dwCreationFlags paramter to disable having a console window appear. It works fine in Windows 2000. But (as the documentation specifies) this does not work when my program runs under Windows 95. Does anyone know how to disable a console window from being displayed in Windows 95. As an alternative, does anyone know how I would disable a user's ability to close the console window that comes up once the java program starts running.
Thanks,
Kenny Demers
|
|
|
|
|
You have to make use of the STARTUPINFO parameter. Make sure these flags are set:
STARTUPINFO si;
...
si.dwFlags = STARTF_USESHOWWINDOW;
si.wShowWindow = SW_HIDE;
... and then use that structure in your CreateProcess call.
|
|
|
|
|
I have a CWebBrowser2 activeX in a dialog box to browse URL. I have removed the scrollbars (horizontal and vertical) using DOCHOSTUIFLAG_SCROLL_NO in a OleControlSite object.
Now i want to set a specific position (x, Y) inside the window in order to aim a specific information of the URL
Hope this helps
Olivier
|
|
|
|
|
hi,
You really need to get in to DOM !
To your problem I think you need to use IHTMLWindow2::scrollTo
good luck,
Dror
|
|
|
|
|
|
I'm using CWebBrowser2 and I have removed the scroll bar with DOCHOSTUIFLAG_SCROLL_NO.
Does someone know how to scroll inside a page ?
I have tried ScrollWindow but it does not work
Thanks
|
|
|
|
|
Dear Can you tell me how you have removed the Scroll from the Control. I am using the CHtmlView class windows and I want to remove the Vertical Scroll Bar of this window.
Here is my email
shahzad_hanif@yahoo.com
|
|
|
|
|
I'm working on an activex control that will sit in a webpage. I'm looking to add icons to me TreeView and am having trouble getting an ImageList set up.
So far I've done this:
CoCreateInstance(CLSID_ImageList,
NULL,CLSCTX_INPROC_SERVER,IID_IImageList,(void** &m_ImageList);
CoCreateInstance(CLSID_ListImages,
NULL,CLSCTX_INPROC_SERVER,IID_IImages,(void**)&m_Images);
Since I see that an ImageList needs the Image collection put into it, but then the Image Collection needs Images put into it and I have no idea how to set that up.
Anyone have any tips or links?
-Jack Mott
jackm@scalablesoftware.com
|
|
|
|
|
In Microsoft's example for creating a list of processes, they use a datatype call ed "PROCENUMPROC"...
I was wondering whether this is an actual datatype or something they created for that example and didn't specify.
Here is the example:
http://support.microsoft.com/support/kb/articles/Q175/0/30.ASP
|
|
|
|
|
Is there an easy way, somewhere amongst the MFC, for generating a control which displays
text written to an ostream as a potentially scrolled view. (Continually updated each time the stream flushes).
I have a couple of solutions written for Borland OWL but I'm not happy about the way they're porting.
|
|
|
|
|
What is the good access or the good method for read information about the semaphore of an other application with ZwQuerySemaphore ????
Thank you for your help
Mailto:nbd@aql.fr
Nicolas
|
|
|
|
|
What is the good access or the good method for read information about the semaphore of an other application with ZwQuerySemaphore ????
Thank you for your help
Mailto:nbd@aql.fr
Nicolas
|
|
|
|
|
Its an undocumented function. Try using one of the documented Win32
fucntions for semaphores. Or there are a few books on undocumented
stuff (one from the Systems Internals guys and another from someone
I can't remember).
Stephen Kellett
--
C++/Java/Win NT/Unix variants
Memory leaks/corruptions/performance/system problems. UK based.
Problems with RSI/WRULD? Contact me for advice.
|
|
|
|
|
I am trying to incorporate the pre-release version of GDI+ into a Win2000 app and am having a few problems.
1) LinearGradientBrush.SetWrapMode(WrapModeClamp) returns an Invalid Parameter (this call works fine with linear brushes and any of the tile wrap modes, and also works with the path gradient).
2) I need to be able to create gradients (both path and linear) that have more then two colors. To do this I call SetInterpolationColors and pass the array of colors and there positions. The problem is I also want to set the midpoint between colors at places other then 50%. To do this I'm trying to use SetBlend but I can't figure out how to set up the factors & positions to do this. When just using two colors I can do:
REAL factors[3] {0.0, 0.5, 1.0};
REAL positions[3] {0.0, 0.3, 1.0};
to set the mid-point to 30% but what do I need to do for more then two colors?
If you can help on either of these questions I would greatly appreciate it.
Thanks
Andy Brace
|
|
|
|
|
This is really interesting. Bearing in mind that GDI+ is still in beta, it would appear that LinGradBrush does not support WrapModeClamp ( you can get the same effect by clamping the area you draw to the rect you pass the constructor ), but what is more interesting is that when I try SetBlend after setting up a brush with three colours, ( hard red, green & blue ), I get a blend between scales of grey. Have you thought about specifying the midpoint colours as colours in your call to SetInterpolationColors ? Then by specifying their positions, you'd be specifying your midpoints.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
Thanks for the response.
I ended up masking off the regions I didn't want tiled with gradients. I have to do this anyway as I need to draw the start and end colors in these areas. As far as the blending, that was to be my fallback position if I can't get the SetBlend to work for me.
I've found another problem though and it has to do with the regions. I'm trying to implement GDIPlus as much as possible and I have cases where I need to switch back and forth between the GDIPlus Region and CRgn. What I've found is that when switch from the Region to CRgn I am using the Region.FromHandle(&graphic) call. The problem comes about because the CDC that I use to create the graphic has an origin not at 0,0. This causes the CRgn to be created offset by the origin (i.e. you create a Region from a rectangular path whose origin is 0,0, but the DC you are drawing into is offset to 150, 150, when you try to create a Region from the path and then try to create a CRgn from the Region, you end up with a CRgn whose bounds start at 150, 150).
Andy
|
|
|
|
|
Does the GDI+ Region not have a translate method ? Or it may be effected by calling translate on the Graphics object that holds it ?
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
Yeah, I could translate or what I do is set the origin of the DC to 0,0 before calling Gdiplus::Region.GetHRGN(&graphics).
The problem though is I shouldn't have to do this. After doing the GetHRGN the CRgn.GetBounds() call should return a bounds that is identical to Gdiplus::GetBounds() (that is factoring in any fractional differences).
Andy
|
|
|
|
|
I wouldn't recommend you to use GDI+ in its current beta.
I tried to use it only to do a simple gradientfill, i got problems with that
sometimes it did not draw anything and sometimes it drew outside of the DC.
(it even drew over another windows DC!)
Very simple code so i dont think the bug was in my code.
(It works with no problem when i use the regular GDI API)
|
|
|
|