Problem:
The SetWindowText Win32 API function can be used in a "Quick Win" or Windows application to change what is displayed by Windows in the Windows "Title Bar." In a Graphical Windows program, as opposed to a character ("Quick Win") program, you would get your Window handle from your CreateWindow Api call rather than the PC_WIN_HANDLE call-by-name routine.
Resolution:
INTRODUCTION
==========
The SetWindowText Api can be used in a character mode program compiled with the Graphical setting or in a graphical application, to change what is displayed in the application's Window "Title Bar." In a graphical Windows program, you would get your Window handle from your CreateWindow Api call rather than the PC_WIN_HANDLE call-by-name routine used in this character mode example program.
SOURCE FILES:
=========
Program Files Description
----------------- -----------------------------------------------------------
Title.cbl Application program
OPERATION:
========
You will have to execute the program in the Debug Folder from a Net Express Command Prompt to see the updated Title Bar for the application's Window.
==========================================================
Keywords: demonstration, sample, example, demo, win32 api, setwindowtext.zip
demo.ex
demo.ne