11-04-2006, 07:44 PM
Ok i have a dialog here is the code in the dialog
then i have a macro called Minimize QM the code in there is.......
When I open the dialog from a nother function called Function which has the code to show the dialog, when I press Minimize QM i want it to run the macro Minimize QM.
;\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
;BEGIN DIALOG
;0 "" 0x90C80A44 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 70 116 48 14 "Minimize QM"
;END DIALOG
;DIALOG EDITOR: "" 0x2010808 "" ""
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 1then i have a macro called Minimize QM the code in there is.......
When I open the dialog from a nother function called Function which has the code to show the dialog, when I press Minimize QM i want it to run the macro Minimize QM.
