08-20-2007, 03:53 AM
I guess we will do this like a Children's story book with pics and everything lol
![[Image: fordumpiesho2.jpg]](http://img469.imageshack.us/img469/3898/fordumpiesho2.jpg)
0x90CA0A44 would be the code you need to use in your DIALOG, if you want to add it by hand.
here is also how to add a button to your DIALOG to minimize:
note the:
![[Image: fordumpiesho2.jpg]](http://img469.imageshack.us/img469/3898/fordumpiesho2.jpg)
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90CA0A44 0x100 0 0 223 135 "Form"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x202000B "" ""
ret
;messages
if(message=WM_INITDIALOG) DT_Init(hDlg lParam)
;int param=DT_GetParam(hDlg)
sel message
,case WM_INITDIALOG
,ret 1
,case WM_DESTROY DT_DeleteData(hDlg)
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK DT_Ok hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1
0x90CA0A44 would be the code you need to use in your DIALOG, if you want to add it by hand.
here is also how to add a button to your DIALOG to minimize:
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90CB0A44 0x100 0 0 223 135 "Form"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 Button 0x54032000 0x0 92 46 48 14 "Min"
;END DIALOG
;DIALOG EDITOR: "" 0x202000B "" ""
ret
;messages
if(message=WM_INITDIALOG) DT_Init(hDlg lParam)
;int param=DT_GetParam(hDlg)
sel message
,case WM_INITDIALOG
,ret 1
,case WM_DESTROY DT_DeleteData(hDlg)
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK DT_Ok hDlg
,case 3
,min hDlg
,case IDCANCEL DT_Cancel hDlg
ret 1
note the: