03-23-2005, 10:15 AM
Hello,
I don't know if this has been reported before or not, or even worth mentioning.
When I have even numbers of ( DIM aString AS STRING * aNumber ), my programs won't stretch a bitmap on a button or static control and it won't resize a button to fit a bitmap.
The ones it effects are these:
This one resizes the button to the bitmap:
SendMessage GetDlgItem(hDlg, 107),BM_SETIMAGE,IMAGE_BITMAP, BYVAL hBmp4
A StretchBlt that puts a bitmap on a button.
And a StretchBlt that puts a bitmap on a static control.
What's odd is it doesn't have any effect on this one.
This one will work whether there is an odd or even numbers of (Dim Strings * numbers):
SendMessage GetDlgItem(hDlg, 106), STM_SETIMAGE, IMAGE_BITMAP, it resizes a button to fit a bitmap.
If I'm going to have 2 or 4 or 6 or 8 of them, I have to add an extra fake one for the bitmaps to work, which is no big thing. They all work on 1, 3, 5, 7, 9, 11, 13, I didn't check any futher.
These ( DIM aString AS STRING * aNumber ) didn't have anything to do with the bitmaps, they were all for 4 different Listviews in the same callback.
They didn't stop any of the other controls from working right. There was 20 controls plus one large circle with diagcross background lines and a rounded rectangle with background lines and a regular rectangle with no lines. Then there was those 2 bitmaps on two buttons and 2 bitmaps on 2 static controls, where only one worked every the time.
Later..........Jerry Fielden
I don't know if this has been reported before or not, or even worth mentioning.
When I have even numbers of ( DIM aString AS STRING * aNumber ), my programs won't stretch a bitmap on a button or static control and it won't resize a button to fit a bitmap.
The ones it effects are these:
This one resizes the button to the bitmap:
SendMessage GetDlgItem(hDlg, 107),BM_SETIMAGE,IMAGE_BITMAP, BYVAL hBmp4
A StretchBlt that puts a bitmap on a button.
And a StretchBlt that puts a bitmap on a static control.
What's odd is it doesn't have any effect on this one.
This one will work whether there is an odd or even numbers of (Dim Strings * numbers):
SendMessage GetDlgItem(hDlg, 106), STM_SETIMAGE, IMAGE_BITMAP, it resizes a button to fit a bitmap.
If I'm going to have 2 or 4 or 6 or 8 of them, I have to add an extra fake one for the bitmaps to work, which is no big thing. They all work on 1, 3, 5, 7, 9, 11, 13, I didn't check any futher.
These ( DIM aString AS STRING * aNumber ) didn't have anything to do with the bitmaps, they were all for 4 different Listviews in the same callback.
They didn't stop any of the other controls from working right. There was 20 controls plus one large circle with diagcross background lines and a rounded rectangle with background lines and a regular rectangle with no lines. Then there was those 2 bitmaps on two buttons and 2 bitmaps on 2 static controls, where only one worked every the time.
Later..........Jerry Fielden