12-22-2007, 09:11 PM
I'm not sure exactly what your asking, but use a smart dialog and then you can adjust the role you want each button to play by using case.
Example:
Function ( Dialog55 )
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 Button 0x54032000 0x0 40 40 48 14 "OSD"
;4 Button 0x54032000 0x0 110 40 48 14 "OSD2"
;END DIALOG
;DIALOG EDITOR: "" 0x2020102 "" "" ""
if(!ShowDialog("Dialog55" &Dialog55)) ret
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 3
,,;;Edit what you want it to do
,case 4
,,;;Edit what you want it to do
,case IDOK
,case IDCANCEL
ret 1
Taking on Quick Macros one day at a time
