Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Couple Muti Page Dialog questions
#1
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
#2
1. Insert after DT_Page line:

Code:
Copy      Help
,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.
#3
Thank you
#4
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
#5
Function dialog_add_window_of_other_process
Code:
Copy      Help
\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
#6
Beautiful!

Thank you


Forum Jump:


Users browsing this thread: 1 Guest(s)