Forum: C++ Aug 18th, 2007 |
| Replies: 3 Views: 3,790 |
Forum: C++ Aug 18th, 2007 |
| Replies: 3 Views: 3,790 |
Forum: C++ Aug 18th, 2007 |
| Replies: 3 Views: 3,790 Hello everyone
I'm trying to write a program in native c++ code that will do this:
When drawing in MS Paint and I press the P key on the keyboard, the Pencil tool will become the current tool.... |
Forum: C++ Aug 9th, 2007 |
| Replies: 1 Views: 6,238 Hi everyone.
For the past day I've been trying to find a good way to handle keyboard input.
Naturally, I wanted to just use WM_KEYDOWN and WM_KEYUP to handle my events, but they proven to have... |
Forum: C++ Aug 3rd, 2007 |
| Replies: 2 Views: 1,096 Without creating global variables, is there a way to pass variables to the WindowProcedure that handles the messages?
For example, if I create a variable and initialize it in WinMain, is there any... |
Forum: C++ Jul 30th, 2007 |
| Replies: 2 Views: 1,144 I've been working on this for a couple days now. I'm really looking for the best way to render. Nothing too complicated but something that is fast, reliable, and powerful. I've seen many websites and... |
Forum: C++ Jul 30th, 2007 |
| Replies: 5 Views: 2,187 Bump
It might help if I give you my code so here: My entire source:
http://rafb.net/p/OAkQDj57.html |
Forum: C++ Jul 29th, 2007 |
| Replies: 4 Views: 4,869 Hello everyone,
Is there an equivalent to SendKeys.Send in C++? I have looked into keybd_event and SendInput, but to my knowledge you can only send one key at a time with those functions.
... |
Forum: C++ Jul 28th, 2007 |
| Replies: 5 Views: 2,187 It works fine with games written by professional game companies so it isn't my computer and I don't handle any code when my game is minmized/maximized |
Forum: C++ Jul 28th, 2007 |
| Replies: 5 Views: 2,187 If I launch my DirectX program, full-screen initializes. If I alt tab out of it, it alt-tabs as normal. However, if I then maximize it so it has the focus of my computer again and then alt-tab for... |
Forum: C++ Jul 24th, 2007 |
| Replies: 1 Views: 3,869 Hello everyone,
I have this code:
Image* newImage = Image::FromFile(szFileName);
Bitmap image(50, 50);
Graphics graphics(&image);
HDC gfxHDC = graphics.GetHDC();
... |
Forum: C++ Jul 19th, 2007 |
| Replies: 1 Views: 1,320 --------------------------------------------------------------------------------
When using this with the DrawText API, I make the rectangle that the text is contained in the width of the return... |
Forum: C++ Jul 3rd, 2007 |
| Replies: 0 Views: 1,965 Hello everyone and thank you for taking the time to read my post
I am running Visual C++ 2005 and I'm having some trouble with GDI+.
I have two bitmaps:
Bitmap* pngFrame;
Bitmap*... |
Forum: C++ Jul 1st, 2007 |
| Replies: 1 Views: 5,687 All week now I have been searching for a good way to load and display PNG files. Every solution I try never works.
So now I am posting on the forums. I am not looking for a huge library. In fact,... |
Forum: C++ Jul 1st, 2007 |
| Replies: 0 Views: 5,499 I have Windows XP with Dev-C++. I created a Windows Application and added #include <gdiplus.h> to the top of the file. I made sure I had gdiplus.h and all the files it required in my include folder.... |