Posts: 82
Threads: 31
Joined: Oct 2007
Is there a way to disable the maximize button on page 1 of my dialog and re-enable it on all subsequent pages?
And, is there a way to embed a program (non QM) into a page of my dialog like Windows calculator or command prompt? I would like them to "be a part" of my dialog if possible.
Thanks
Posts: 12,095
Threads: 142
Joined: Dec 2002
1. Insert after DT_Page line:
,SetWinStyle hDlg WS_MAXIMIZEBOX iif(_i=0 10 9)
2. Possibly this will work:
Run the program, get window handle, and use function SetParent to add the window to the dialog.
Posts: 82
Threads: 31
Joined: Oct 2007
Posts: 82
Threads: 31
Joined: Oct 2007
Quote:Run the program, get window handle, and use function SetParent to add the window to the dialog.
Could you possibly give me an example? Having a hard time figuring this out..
Thanks
Posts: 12,095
Threads: 142
Joined: Dec 2002
Function
dialog_add_window_of_other_process
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
if(!ShowDialog("dialog_add_window_of_other_process" &dialog_add_window_of_other_process)) ret
;BEGIN DIALOG
;0 "" 0x92C80AC8 0x0 0 0 345 238 "Dialog"
;END DIALOG
;DIALOG EDITOR: "" 0x2030300 "" "" ""
ret
;messages
sel message
,case WM_INITDIALOG
,int w
,run "$system$\calc.exe" "" "" "" 0x2800 win("Calculator" "CalcFrame") w
,SetParent w hDlg
,SetWinStyle w WS_CAPTION 2
,mov 0 0 w
,
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
Posts: 82
Threads: 31
Joined: Oct 2007