05-17-2013, 11:00 AM
Use DT_SetBackgroundImage instead of WM_PAINT.
If need to resize, SaveBitmap the resized bitmap to a temporary file and load it.
Function resumo_remote_metade
and remove the WM_PAINT code.
In current version DT_SetTextColor does not steal WM_CTLCOLORSTATIC. Forgot to remove the statement from DT_SetTextColor help.
If need to resize, SaveBitmap the resized bitmap to a temporary file and load it.
Function resumo_remote_metade
/---Load Image de fundo---
,_s="Q:\test\app_55.png"
,__GdiHandle hb=LoadPictureFile(_s); if(!hb) ret
,hb=CopyImage(hb IMAGE_BITMAP wid hei LR_COPYDELETEORG|LR_COPYRETURNORG)
,SaveBitmap hb _s.from("$temp$\b.bmp")
,DT_SetBackgroundImage hDlg _sand remove the WM_PAINT code.
In current version DT_SetTextColor does not steal WM_CTLCOLORSTATIC. Forgot to remove the statement from DT_SetTextColor help.
