Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog background color
#15
copy code and name the function trans_dialog

Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
GdiObject- brush=CreateSolidBrush(ColorFromRGB(225 234 247))
GdiObject- bluebrush=CreateSolidBrush(0xff0000)

if(hDlg) goto messages
if(!ShowDialog("trans_dialog" &trans_dialog)) ret

;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 407 241 "Dialog with a hole :)"
;5 Static 0x54000000 0x0 32 42 320 154 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2020008 "" "0 "


ret
;messages
sel message
,case WM_INITDIALOG
,,Transparent(hDlg 255 0xff0000)
,case WM_COMMAND goto messages2
,case WM_CTLCOLORSTATIC
,,sel GetDlgCtrlID(lParam)
,,,case 5
,,,,ret bluebrush
,case WM_CTLCOLORDLG
,,,ret brush
,case WM_DESTROY
ret
;messages2
sel wParam
,case IDCANCEL
ret 1
pi


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)