зеркало из https://github.com/mozilla/gecko-dev.git
wizardmachine.rc
This commit is contained in:
Родитель
faa13d7f16
Коммит
c1223b6610
|
@ -42,7 +42,7 @@ BOOL CHelpDlg::OnInitDialog()
|
||||||
CWnd myWnd;
|
CWnd myWnd;
|
||||||
|
|
||||||
myWnd.MessageBox("Unable to open file" + Helptext, "ERROR", MB_OK);
|
myWnd.MessageBox("Unable to open file" + Helptext, "ERROR", MB_OK);
|
||||||
exit( 3 );
|
// exit( 3 );
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
|
@ -18,6 +18,7 @@ char *secarray[5]={"Wid1","Wid2","Wid3","Wid4","Wid5"};
|
||||||
char *buttarray[5]={"Butt1","Butt2","Butt3","Butt4","Butt5"};
|
char *buttarray[5]={"Butt1","Butt2","Butt3","Butt4","Butt5"};
|
||||||
int number;
|
int number;
|
||||||
CString iniTracker;
|
CString iniTracker;
|
||||||
|
CString HelpEdit;
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#define new DEBUG_NEW
|
#define new DEBUG_NEW
|
||||||
#undef THIS_FILE
|
#undef THIS_FILE
|
||||||
|
@ -87,12 +88,41 @@ BOOL CWizHelp::OnInitDialog()
|
||||||
CWnd myWnd;
|
CWnd myWnd;
|
||||||
|
|
||||||
myWnd.MessageBox("Unable to open file" + Helpfilename, "ERROR", MB_OK);
|
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
|
else
|
||||||
GetPrivateProfileString(varSection, "Number", "", buffer, MAX_SIZE,Helpfilename );
|
fseek(fPtr2, 0,2);
|
||||||
number = atoi(buffer);
|
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 ++)
|
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=((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);
|
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
|
return TRUE; // return TRUE unless you set the focus to a control
|
||||||
// EXCEPTION: OCX Property Pages should return FALSE
|
// EXCEPTION: OCX Property Pages should return FALSE
|
||||||
}
|
}
|
||||||
|
|
Двоичные данные
cck/driver/WizardMachine.aps
Двоичные данные
cck/driver/WizardMachine.aps
Двоичный файл не отображается.
|
@ -1,6 +1,6 @@
|
||||||
# Microsoft Developer Studio Generated NMAKE File, Based on WizardMachine.dsp
|
# Microsoft Developer Studio Generated NMAKE File, Based on WizardMachine.dsp
|
||||||
!IF "$(CFG)" == ""
|
!IF "$(CFG)" == ""
|
||||||
CFG=WizardMachine - Win32 Release
|
CFG=WizardMachine - Win32 Debug
|
||||||
!MESSAGE No configuration specified. Defaulting to WizardMachine - Win32 Release.
|
!MESSAGE No configuration specified. Defaulting to WizardMachine - Win32 Release.
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
|
|
|
@ -228,13 +228,16 @@ BEGIN
|
||||||
WS_EX_DLGMODALFRAME
|
WS_EX_DLGMODALFRAME
|
||||||
END
|
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 |
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_VSCROLL | WS_HSCROLL |
|
||||||
WS_SYSMENU
|
WS_SYSMENU
|
||||||
CAPTION "Dialog"
|
CAPTION "Dialog"
|
||||||
FONT 8, "MS Sans Serif"
|
FONT 8, "MS Sans Serif"
|
||||||
BEGIN
|
BEGIN
|
||||||
PUSHBUTTON "Cancel",IDCANCEL,268,240,50,14
|
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
|
END
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#define IDC_BASE_TEXT 1004
|
#define IDC_BASE_TEXT 1004
|
||||||
#define IDC_HELP_BUTTON 1005
|
#define IDC_HELP_BUTTON 1005
|
||||||
#define IDC_BUTTON1 1007
|
#define IDC_BUTTON1 1007
|
||||||
|
#define ID_HELP_EDIT 1007
|
||||||
#define IDC_PROGRESS1 1036
|
#define IDC_PROGRESS1 1036
|
||||||
#define IDC_PROGESSTEXT_STATIC 1037
|
#define IDC_PROGESSTEXT_STATIC 1037
|
||||||
#define IDD_HELP_DLG 1537
|
#define IDD_HELP_DLG 1537
|
||||||
|
@ -36,7 +37,7 @@
|
||||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||||
#define _APS_NEXT_RESOURCE_VALUE 142
|
#define _APS_NEXT_RESOURCE_VALUE 142
|
||||||
#define _APS_NEXT_COMMAND_VALUE 32771
|
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||||
#define _APS_NEXT_CONTROL_VALUE 1007
|
#define _APS_NEXT_CONTROL_VALUE 1008
|
||||||
#define _APS_NEXT_SYMED_VALUE 101
|
#define _APS_NEXT_SYMED_VALUE 101
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче