Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SetDialogFont (background)
#8
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
Code:
Copy      Help
/---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 _s

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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)