|
Ha ha ha. I just realized you only needed the rounded rectangle and I took you all the way to the rounded window. Oh well, all you needed was the CornerRadius bit. And I think you even wrote an article already? Well, good job!
My posts may include factual data, educated guesses, personal opinion and dry humor. They should not be treated as an official Microsoft statement. Sites of Interest: MSDN Events | US ISV Team Blog
|
|
|
|
|
Haha, yes I wrote an article for a Shape-derived class called PartiallyRoundedRectangle before I found out about Border's ability to do essentially the same thing. I found out about that through the article though, so it wasn't a complete waste of time.
Thanks for the in-depth instructions for making rounded borderless windows even if it's not exactly what I was asking for.
Logan
{o,o}.oO( Did somebody say MouseDown? )
|)””’)
-”-”-
|
|
|
|
|
Hi,
I'm actually writing a CLIENT/SERVER TCP/IPv6 application, under Microsoft Visual Studio C++. In which the SERVER is a file server application and the CLIENT is a "Multiple Document Interface (MDI)" and "RichEdit Text" application that can open multiple files from the server.
I would like to add a Toolbar window into my MDI frame window, to do this, I've created the Toolbar window with the "CreateToolBarEx" function.
But the created Toolbar window is located in the client area of the MDI frame window and each time a new MDI child window is created to hold a new document, it erases the Toolbar window in the client area.
My question is how can I do :
1) To change the client area size so that fits
height(MDI Frame window) - height(Toolbar window)
OR
2) To include the Toolbar window into the
non-client area like the Menubar and the Titlebar
So that the MDI child window can't anymore erase the Toolbar window in the client area.
Thanks,
Alain NGUYEN
-- modified at 19:12 Thursday 22nd November, 2007
|
|
|
|
|
|
|
Don't cross post. It's just plain rude.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Sorry if my english is not good.
I'm building a program on Windows that take in a table and draws chart, text and some animation effect(text running in bottom of screen). The program must export that to a .avi file.
How can i do that?Do you know any library that can directly manipulate a .avi file like draw on a frame.
Or a library can convert a list of pictures to .avi file.
le van giang
|
|
|
|
|
Hello to anybody.
I would like to know how to create a graphic interface like the one used, for example, in PowerDvd or in Windows MediaPlayer which represents the music using graphic effects.
Thanks for any valuable aid you can give to me.
|
|
|
|
|
Winamp comes with AVS which lets you make visualisation with a simple scripting language
http://www.winamp.com
Its quite good as a soft introduction into graphics programming
|
|
|
|
|
Hello All,
i am working with a application by using VC++/MFC and Direct3d. i am new with Direct3D but in this application graphics is drawing using direct3d.
so i want to take printout of its view area means whatever drawing is there.
is there any way so that i can store the screen image into pixwl format into a buffer or a file, and than send to printer for taking printout.
or anyother way to do this.
Would appreciate any good help
thanks
|
|
|
|
|
bankey1010 wrote: Hello All,
i am working with a application by using VC++/MFC and Direct3d. i am new with Direct3D but in this application graphics is drawing using direct3d.
so i want to take printout of its view area means whatever drawing is there.
is there any way so that i can store the screen image into pixwl format into a buffer or a file, and than send to printer for taking printout.
or anyother way to do this.
In Windows, you can hold down the alt key and press the "print screen" key to copy an image of the active window into the cut/past buffer. Then you can bring up paint, use paste, and save or print the image. You can also use ctrl and "print screen" to copy the entire screen.
Nathan
|
|
|
|
|
Hi,
Is there a way to convert a system.drawing.image to system.drawing.bitmap without having to save it to disk first.
Would appreciate any good help
thanks
|
|
|
|
|
There's three System.Drawing.Bitmap constructors that take a System.Drawing.Image as a parameter...
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
thanks for the reply. Im new with C# (started with TP and mainly work in php / MySQL) so constructors is all new to me... Been looking around and cant seem to find the right thing/way to do this.
if i have
System.Drawing.Image modimage;<br />
System.Drawing.Bitmap modbitmap;
changes are first done to modimage and then i want to do something like
modbitmap = modimage;
and then carry on with changes to modbitmap.
obviously the modbitmap = modimage; does not work as it is like trying to say
strSomething = intSomethign;
it would be nice if there was a thing like
modbitmap = modimage.tobitmap(); lol
anyway, my trials have proved fruitless so i am hoping that you would be kind enough to spare a min and help me out.
thanks in advance.
|
|
|
|
|
Try this:
modbitmap = new System.Drawing.Bitmap(modimage);
|
|
|
|
|
Try what GrinderDev suggested
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You could also just cast it... (This is a bit faster and uses less memory).
bitmap = (Bitmap)image;
Matthew Butler
|
|
|
|
|
Yes, most of the time that will work; what if the image happens to be a Metafile?
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
I've never used metafiles.
...but I suppose that would give an error.
Do people still use wmf/emf?
I've always concidered them quite an old (and outdated) format.
Matthew Butler
|
|
|
|
|
M. Butler wrote: Do people still use wmf/emf?
I don't know.
My point is: (Bitmap)Image.FromFile("test.WMF") could throw
since there is a difference between Bitmap and Image classes, so I prefer either the
constructor approach (hoping it is not too expensive) or an "is Bitmap" test (C#).
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Good example of why casts are dangerous.
C# really allows casts? hehe
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all,
I'm trying to get the simplest of D3D9 programs working (coloured window). But keep getting this error when I run the SDK samples, and a website's sample i'm trying to follow.
Error 1 error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "long __cdecl InitD3D(struct HWND__ *)" (?InitD3D@@YAJPAUHWND__@@@Z) CreateDevice.obj <br />
Followed by...
Error 2 fatal error LNK1120: 1 unresolved externals e:\Program Files\DirectX SDK\Samples\C++\Direct3D\Tutorials\Tut01_CreateDevice\Debug\CreateDevice.exe 1 <br />
By trial and error, I think its this line thats screwing it up...
d3d = Direct3DCreate9(D3D_SDK_VERSION);
Any ideas on how to fix this?
Mark.
|
|
|
|
|
Have you linked to d3d9.lib?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yea I think I did it right...
I had put:
#pragma comment(lib, "d3d9.lib");
in my code.
If you want to review the whole program, you can find it here.
|
|
|
|
|
MarkBrock wrote: Yea I think I did it right...
If it linked, then it's good!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|