06-01-2007, 03:24 PM
copy code and name the function trans_dialog
\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