Type: Posts; User: srelu
Search took 0.03 seconds.
I'll explain what you need to do if the user presses the "right arrow" key. For the other keys you'll need a similar approach.
1. You need a variable to store the current value of the position of...
February 28th, 2012, 11:05 AM
findData.dwFileAttributes == FILE_ATTRIBUTE_DIRECTORYis not good since dwFileAttributes holds more than just one flag. Mask the other flags with logical "and" to get only the flag...
November 21st, 2011, 10:07 PM
Fully agree. It would be great if during the installation of Windows we would be able to pick one of the three options:
-I'm a novice
-I'm an average user
-I'm an IT specialist
Thanks God (and...
September 17th, 2011, 11:04 PM
The MSDN site is somehow confusing, take an excerpt from the MSDN that came with VS6:
This function targets PHYSICAL DEVICES.
You should try it first.
September 17th, 2011, 04:35 AM
April 18th, 2011, 02:57 AM
I encountered several times that error. It is caused by a bug in your application. You made some sort of mistake in one of the source files, more precisely in ANOTHER FILE THAN THE FILE WHERE THE...
March 7th, 2011, 03:03 PM
Your code looks ok if you add masking.
A WORD has only two bytes, you cannot break it into four. You need a DWORD to have four bytes.
BTW, take a look at the following macros:
February 7th, 2011, 04:14 PM
Most likely you store the dialog's window handle (or the CDialog object if you use MFC) in a variable that is a local variable to the property page. When the property page is closed, all its local...
February 7th, 2011, 03:57 PM
Loop through all the points of your control and call WindowFromPoint for each. You'll get the handles of all the windows that overlap your control. Subsequently substract all the regions of those...
June 16th, 2010, 07:59 AM
Form what you wrote, I assumed that the declaration of your function is:
It seems I was wrong. Please specify the right declaration.
June 15th, 2010, 03:49 PM
For the first ideea, the answer is no. That's because the name of a function is not a string. From the programmer's perspective it looks like a text but from the compiler's perspective it's just the...
June 13th, 2010, 01:47 AM
In order to use databases you need a database engine or a full database server. There are some for free.
Engines: MS Access Jet engine, MSDE.
Full servers: MS SQL 2005 Express Edition, MySql.
No. If you request a 256 color bitmap, well, you'll receive a 256 color bitmap.
For 1 plane and 8 bits/pixel bitmap the color table is mandatory.
In order to have full control over the...
It might be an error regarding the controls in your dialog box. Have you tried to add the DS_NOFAILCREATE style to your dialog box ? It will create the dialog box even if errors occur.
Obviously, there is no BITMAPFILEHEADER structure because you didn't load the bitmap from a *.bmp file, you loaded it as a resource from your *.exe file.
Only a *BITMAP FILE* has that header,...
What you need is to skip junction points. Look for help on
I'm not expert in DirectX either, otherwise I wouldn't need any sychronization, DirectX does it natively.
Knowng DirectX is great and I'll learn it when I'll have more time, but for simpler...
April 23rd, 2010, 11:07 PM
Can I synchronize a thread with the monitor refresh ? Probably I could, because DirectX can, just I don't know how.
More specifically, how can I predict the time a monitor refresh will occur ?
April 23rd, 2010, 05:38 PM
I repeat: "It will fill the *W.H.O.L.E. S.C.R.E.E.N.* with colorful circles".
Instead of asking, why don't you try it ?
April 23rd, 2010, 11:53 AM
Here's a sample that uses a thread.
Put the following function in any Win32 application:
DWORD WINAPI MyThread(LPVOID lpParameter)
April 21st, 2010, 06:01 PM
I wonder too. Your 15 years of experience makes me feel humble, I only have 13. Of course, of Windows GDI experience. Otherwise my first contact with a computer to program it was 31 years ago.
April 21st, 2010, 05:36 PM
The icon Create functions allow you to get a HICON handle, not to create ICO files.
April 21st, 2010, 05:24 PM
Call GetDCEx with hwnd = NULL. You'll get a HDC for the entire screen. You'll be able to draw anywhere on the screen regardless what windows are there.
April 21st, 2010, 05:14 PM
Yes. You must add first the dialog resource, then add the class.
I don't know what Visual Studio do you use.
In the case...
April 19th, 2010, 07:09 PM
1. You forget to deselect the hBitmap from the dc at the end. That will create problems for sure.
2. The fact that WM_PAINT is sent doesn't mean necessarily that it will repaint the whole window....
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.