wizardmachine.rc

This commit is contained in:
varada%netscape.com 1999-06-17 18:49:51 +00:00
parent faa13d7f16
commit c1223b6610
6 changed files with 42 additions and 8 deletions

View File

@ -42,7 +42,7 @@ BOOL CHelpDlg::OnInitDialog()
CWnd myWnd;
myWnd.MessageBox("Unable to open file" + Helptext, "ERROR", MB_OK);
exit( 3 );
// exit( 3 );
}
else

View File

@ -18,6 +18,7 @@ char *secarray[5]={"Wid1","Wid2","Wid3","Wid4","Wid5"};
char *buttarray[5]={"Butt1","Butt2","Butt3","Butt4","Butt5"};
int number;
CString iniTracker;
CString HelpEdit;
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
@ -87,12 +88,41 @@ BOOL CWizHelp::OnInitDialog()
CWnd myWnd;
myWnd.MessageBox("Unable to open file" + Helpfilename, "ERROR", MB_OK);
exit( 3 );
// exit( 3 );
}
else {
GetPrivateProfileString(varSection, "Number", "", buffer, MAX_SIZE,Helpfilename );
number = atoi(buffer);
GetPrivateProfileString(varSection, "HelpText", "", buffer, MAX_SIZE,Helpfilename );
HelpEdit = CString(buffer);
FILE *fPtr2;
CString Helptext = CString(iniFilePath) + "\\" + HelpEdit;
//CWnd newwindow;
//newwindow.MessageBox(HelpEdit,Helptext,MB_OK);
// ThatWind.MessageBox(Helptext,"something",MB_OK);
if( !( fPtr2 = fopen(Helptext, "r") ) )
{
CWnd myWnd;
myWnd.MessageBox("Unable to open file" + Helptext, "ERROR", MB_OK);
// exit( 3 );
}
else
GetPrivateProfileString(varSection, "Number", "", buffer, MAX_SIZE,Helpfilename );
number = atoi(buffer);
fseek(fPtr2, 0,2);
long f_size = ftell(fPtr2);
fseek (fPtr2,0,0);
char *file_buffer;
file_buffer = (char *) malloc (f_size);
fread (file_buffer,1,f_size,fPtr2);
file_buffer[f_size]=NULL;
// ThatWind.MessageBox(file_buffer,"buffer",MB_OK);
CEdit *ebptr =(CEdit *) GetDlgItem(ID_HELP_EDIT);
ebptr->SetWindowText(file_buffer);
for (int count =0; count < number; count ++)
{
@ -155,7 +185,7 @@ BOOL CWizHelp::OnInitDialog()
// int k=((CButton*)Button1)->Create("Button1", BS_PUSHBUTTON | WS_TABSTOP|WS_VISIBLE | WS_CHILD, tmpRect, this, ID);
int k=Button1->Create("Button", BS_PUSHBUTTON | WS_TABSTOP|WS_VISIBLE, tmpRect, this, ID);
*/
*/ }
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}

Binary file not shown.

View File

@ -1,6 +1,6 @@
# Microsoft Developer Studio Generated NMAKE File, Based on WizardMachine.dsp
!IF "$(CFG)" == ""
CFG=WizardMachine - Win32 Release
CFG=WizardMachine - Win32 Debug
!MESSAGE No configuration specified. Defaulting to WizardMachine - Win32 Release.
!ENDIF

View File

@ -228,13 +228,16 @@ BEGIN
WS_EX_DLGMODALFRAME
END
IDD_WIZ_HELP DIALOG DISCARDABLE 0, 0, 336, 271
IDD_WIZ_HELP DIALOGEX 0, 0, 336, 271
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_VSCROLL | WS_HSCROLL |
WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Sans Serif"
BEGIN
PUSHBUTTON "Cancel",IDCANCEL,268,240,50,14
EDITTEXT ID_HELP_EDIT,18,16,287,125,ES_MULTILINE | ES_AUTOVSCROLL |
ES_AUTOHSCROLL | ES_READONLY | WS_VSCROLL | WS_HSCROLL,
WS_EX_DLGMODALFRAME
END

View File

@ -24,6 +24,7 @@
#define IDC_BASE_TEXT 1004
#define IDC_HELP_BUTTON 1005
#define IDC_BUTTON1 1007
#define ID_HELP_EDIT 1007
#define IDC_PROGRESS1 1036
#define IDC_PROGESSTEXT_STATIC 1037
#define IDD_HELP_DLG 1537
@ -36,7 +37,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 142
#define _APS_NEXT_COMMAND_VALUE 32771
#define _APS_NEXT_CONTROL_VALUE 1007
#define _APS_NEXT_CONTROL_VALUE 1008
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif