If you want to execute a exe file form the mfc dialog application in vc+6.0 we can use ShellExecute or System or ShellExecuteEx Funtion Better Use the ShellExecuteEx funtion beacuse this function We can run any (.exe)file using ShellExecuteEx command it will handle the time taken to complete the loading process , onces it completed executing return 0 otherwise wait for the process until complete.
7.How to call Firefox.exe through command line parameter
The Following link will be useful for how to call every command through commandlineargument
After that the same procedure followed by adding the PreTranslateMessage function to dialog window ,like that this function (WM_KEYDOWN) is added to your code window, OnKeyDownEvent catch the pageup or down when user press the key
if ( nChar == VK_PRIOR )
OnVScroll(SB_PAGEUP, 0, NULL);
else if ( nChar == VK_NEXT )
OnVScroll(SB_PAGEDOWN, 0, NULL);
When we press page up or down , this keydown will call vscroll function for move the cursor positon to pageup or down.
18.How do we capture the button position in dialog window in mfc?
We use GetDlgItem function for getting the id of the control and use following code.
CWnd *pwnd = GetDlgItem(IDC_BUTTON1);
pts.x = rc.left;
pts.y = rc.top;
19.How we will open multiple tabs in the firefox using command line arguments?