look:
here is my code from my c++ editor:
extern "C" int __declspec(dllexport) FAR PASCAL Print(HWND mWnd, HWND aWnd,char* data,char*,BOOL,BOOL) {
PRINTDLG pd; //define the print dialog short command

// Initialize PRINTDLG
ZeroMemory(&pd, sizeof(PRINTDLG));
pd.lStructSize = sizeof(PRINTDLG);
pd.hwndOwner = aWnd;
pd.hDevMode = NULL; // Don't forget to free or store hDevMode.
pd.hDevNames = NULL; // Don't forget to free or store hDevNames.
pd.Flags = PD_USEDEVMODECOPIESANDCOLLATE | PD_RETURNDC;
pd.nCopies = 1;
pd.nFromPage = 0xFFFF;
pd.nToPage = 0xFFFF;
pd.nMinPage = 1;
pd.nMaxPage = 0xFFFF;

if (PrintDlg(&pd)==TRUE) {

// GDI calls to render output.
StartDoc(pd.hDC,pd.);
// Delete DC when done.
DeleteDC(pd.hDC);

}
return 3;
}

here is the code when i place it into mirc's editor:
extern "C" int __declspec(dllexport) FAR PASCAL Print(HWND mWnd, HWND aWnd,char* data,char*,BOOL,BOOL) {
PRINTDLG pd; //define the print dialog short command

// Initialize PRINTDLG
ZeroMemory(&pd, sizeof(PRINTDLG));
pd.lStructSize = sizeof(PRINTDLG);
pd.hwndOwner = aWnd;
pd.hDevMode = NULL; // Don't forget to free or store hDevMode.
pd.hDevNames = NULL; // Don't forget to free or store hDevNames.
pd.Flags = PD_USEDEVMODECOPIESANDCOLLATE | PD_RETURNDC;
pd.nCopies = 1;
pd.nFromPage = 0xFFFF;
pd.nToPage = 0xFFFF;
pd.nMinPage = 1;
pd.nMaxPage = 0xFFFF;

if (PrintDlg(&pd)==TRUE) {

// GDI calls to render output.
StartDoc(pd.hDC,pd.);
// Delete DC when done.
DeleteDC(pd.hDC);

}
return 3;
}
err. guess it dun support tabs... but it was spaced out
By the way:DO NOT STEAD THE CODE

Last edited by Ic3flamez; 05/06/03 04:38 AM.