The number of bytes in each line in the bitmap must be evenly divisible by 4, if it isn't windows will pad the the line with either 1, 2 or 3 bytes to make it evenly divisible by 4.
I had a similar problem. I have a progragram where the user can dump the client to a BMP file. But it would capture the file dialog. So what I did was basically do the DoModal for the file dialog...
Here are 2 functions that are useful. DumpClient copys the client contents to a member Bitmap and RestoreClient takes the copies the member bitmap (m_ClientBmp) back to the client. The contents of...
Since you specified different item's height ,I am guessing you used ownerdraw variable and not owner draw fixed? In the DrawItem function (or other places) you can use SetItemHeight to set the height...
The original post indicated the sum of the bytes and also indicated checksum. I always understood the checksum to be the 2's complement of the sum of the bytes. Therefore the checksum is actually...
If you have VC.net which uses the "new" CSimpleStringT you can use Tokenize which works like the old strtok. Otherwise you can do it with CString::Find, CString::Mid and a while loop.
Yes, Since my original responses in this thread I have investigated different serial ports and different operating systems. The behavior of the DTR line differed with different UARTS and operating...
Actually, to get the arrow keys you need to process the WM_KEYDOWN message and the WM_GETDLGCODE message. You should be aware that if an edit box has keyboard focus, the any keypresses will be...
It is unlikely that you will be able to achieve an accurate 10us pulse from Windows. It would be fairly simple to generate this with a simple hardware setup consisting of a suitable timer and a FET...
One method might be to greate a button on the dialog. Then after you type the string you want in the edit box, press the button to add the string to the list box. Create a handler for the button...