Hi, we have an old PC that was a bit chock-a-block and very slow. We decided to completely wipe the hard disk and re-install Windows 95 and everything else from scratch.
We successfully re-installed Win95 and now the thing boots up in seconds rather than minutes. Only one problem though..... I...
I'm having difficulties determining the actual ASCII character code for keys pressed. If I press 'h' key the ASCII code should be 104 (lowercase h) but I'm always getting the code 72 which is uppercase 'H'.
Can anyone explain why this is and how do I manipulate it if I can't be sure what case...
I've created a dialog but which I've also manually drawn things to (including a bitmap image). The only problem is, when the dialog is obscured (by another window for example) and then brought back to the front, no updating occurs.
How do I catch the update event in the dialog so I can tell...
Hi, I can draw the shapes and lines, etc OK but I want to know if there's a way I can draw these offscreen and then copy them instantaneously to the screen so the drawing process appears smooth and instant just like drawing a bitmap using BitBlt() function.
As an example, say I want to draw a...
Hi, I'm having trouble assigning keyboard shortcuts and accelerators to a menu I've created.
I've created a menu resource and an accelerator resource. I choose the menu item ID in the accelerator resource and assign a keycode character.
When I choose ClassWizard it detects I have inserted the...
Hi, I'm just about ready to tear my hair out with this. I'm trying to draw a "masked" bitmap using CImageList. I've tried just about every combination and everything I can think of. Also, the text books not very clear nor is Microsfts help. Here's the latest piece of code - if someone...
This may seem like a really silly question but let me explain...
I'm porting a program from Mac to Windows. I can use the strict ANSI routines to read and write a preferences structure to disk no problem. However, not being a seasoned PC user (yet) I don't know where in the system folder all...
I'm having serious trouble drawing simple shapes to a dialog repeatedly. I can draw a shape no problem but if I keep drawing shapes, etc to the same window repeatedly (in a while loop for example) it eventually stops with a 'half' message: "A resource was not"!!!
What does this mean...
I want to set some kind of delay or timer between doing something, for example:
// Do something
// Now wait for half a second
// Now do something else
What's the best way to do this?
I'm trying to draw a bitmap image repeatedly. However, it crashes when it's draw the same image about 1,000 times - I suspect due to a memory leak. I need someone to tell me the best way to display a bitmap and then destroy the associated memory immediately afterwards. Any sample code anyone?
I'm trying to port one of my Mac programs to Windows using VC++. I need to be able to output text to speech but can't find any useful info in VC++ on the subject. For example, I can do something on Mac like this:
#include "Speech.h"
SpeakString("Hello World!");
And it will...
I placed a question in this forum a few days ago asking if anyone knew how to get a bitmap resource to show in a dialog with more than 16 colors. I since worked out how to get MORE than 256 colors (ie. 16bit/32bit)to work.
When you go under the menu to create a new Bitmap resource, actually...
OK, I've searched the archives and only found two questions regarding same subject - none with a response.
I'm trying to display a color bitmap in a dialog. I can do this OK from a resource BUT Visual C++ changes the image to just 16 colors!!! It looks terrible!
Someone must know how to do this...
How do I create or obtain a CDC* to a dialog in a dialog based MFC project. The closest thing supplied by MFC is a CPaintDC. When I try to create my own CDC* to draw things to the main dialog, it draws using global coordinates and also draws outside the actual dialog.
This is probably a silly...
Hi, I'm a brand new Visual C++ user and I'm having trouble trying to get things in my tab display areas. On some tabs I would like to display 'dialog' style views. On others, I would like to display general information (CScrollView??).
I have created the tabs no problem and can identify tab...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.