Renaming Compile Results Window with a PWB ExtensionLast reviewed: July 17, 1997Article ID: Q81322 |
1.00 1.10 2.00
MS-DOS
kbtool kbcode
The information in this article applies to:
SUMMARYThe following article describes how to rename the Compile Results window in the Programmer's WorkBench (PWB) versions 1.0 and 1.1.
MORE INFORMATIONThis is possible because PWB references only the name of the pseudofile that is contained in <>, and whatever comes after that will be displayed as the title of the window. This is illustrated by the following sample. To rename the Compile Results window:
Sample Code
/* Compile and link options needed: cl /c /ACw /Gs [programname].c link exthdr.obj [programname].obj, [programname].mxt; */ #include "ext.h" /* function prototype */PWBFUNC funcname(unsigned argData, ARG _far *pArg, flagType fMeta); /* switch description table (required for an extension) */struct swiDesc swiTable[] = { { NULL,NULL,0}};
/* command description table ( required for a pwb extension) */struct cmdDesc cmdTable[] ={ { "funcname", funcname, 0 , NOARG}, { NULL, NULL, 0, 0}}; /* function that PWB calls when loading the extension */ void EXTERNAL WhenLoaded(void){ DoMessage("Loading funcname extension"); }PWBFUNC funcname(unsigned argData, ARG _far *pArg, flagType fMeta) { PFILE pFileCompile; char szNewName[] = "<COMPILE>New Name for Window"; if((pFileCompile = FileNameToHandle("<COMPILE>",NULL))!=PNULL) SetEditorObject(RQ_FILE_NAME | 0xff, pFileCompile, szNewName);}
|
Additional reference words: kbinf 1.00 1.10 2.00 PWBIss
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |