Restored from previous forum. Originally posted by fred. 1.)
But LoadImage is still using the Desktop depth ??
Yes, LoadImage will always load using desktop depth.
2.)
Is there a way to get the color depth
of the desktop with an easy API call ??
Here is a quick example:
Code:
Structure BITMAP2
bmType.l
bmWidth.l
bmHeight.l
bmWidthBytes.l
bmPlanes.w
bmBitsPixel.w
bmBits.l
EndStructure
*DC = CreateDC_("DISPLAY", 0, 0, 0)
If *DC
*BMP = CreateCompatibleBitmap_(*DC, 10, 10)
If *BMP
GetObject_(*BMP, SizeOf(BITMAP2), Bitmap.BITMAP2)
MessageRequester("Desktop Depth: ", Str(Bitmap\bmBitsPixel), #MB_ICONINFORMATION)
DeleteObject_(*BMP)
EndIf
DeleteDC_(*DC)
EndIf
3.)
How to handle a WM_NOTIFY message in PB ??
(and how do i get the value which button
was pressed ??)
Use the Callback, it should work.
Fred - AlphaSND