PWB Extensions Help (ext.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
RQ_WIN_PWBHANDLE Details
                                             Up Contents Index Back
─────PWB Extensions─────────────────────────────────────────────────────────
 
     For a RQ_WIN_PWBHANDLE GetEditorObject request, if no PWB window
     exists for the file, a new PWB window and its corresponding PWB
     Windows menu command is created. The window is not opened until the
     user chooses the PWB Windows menu command for the file.
 
     To determine if the window is a new window, get the winContents
     structure of the window with the following call:
 
          GetEditorObject( RQ_WIN_CONTENTS|0xff, pfile, &wcContents );
 
     Then examine the wcContents.arcWin rectangle for the window. The
     rectangle is all zeros for a newly created PWB window.
 
     When the window is opened, it appears in the lower third of the
     screen by default. To change the default size and position for the
     window, set the arcWin rectangle to your new dimensions and then
     call
 
          SetEditorObject( RQ_WINCONTENTS|0xff, pwndWindow, pwcContents );
 
     The name of the PWB Windows menu command is taken from the title
     part of the specified pfile name. The first letter of the title is
     used as the highlighted access key. To change the title of the menu
     command, use SetPWBWindowMenuTitle.
     See: SetPWBWindowMenuTitle, Pseudofile Naming Convention
                                    -♦-