Jump to content

WinSetTitleAndIcon: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
==Prototype:==
==Prototype==
 
APIRET16 APIENTRY16 WinSetTitleAndIcon (PSZ szTitle, PSZ szIconPath);
APIRET16 APIENTRY16 WinSetTitleAndIcon ( PSZ szTitle, PSZ szIconPath ) ;  
 
==Linkage Definition:==


==Linkage Definition==
IMPORTS WinSetTitleAndIcon = PMSHAPI.97  
IMPORTS WinSetTitleAndIcon = PMSHAPI.97  


==Parameters:==  
==Parameters==
 
;PSZ szTitle:New window title text.
PSZ szTitle New window title text.  
;PSZ szIconPath:New window icon file name (full path).
PSZ szIconPath New window icon file name (full path).  
 
==Comments:==


==Comments==
This function is for VIO programs, and allows them to set their containing window's title text and icon. I have found that the Workplace Shell has a tendency to override this function.
This function is for VIO programs, and allows them to set their containing window's title text and icon. I have found that the Workplace Shell has a tendency to override this function.


==Example Code:==  
==Example Code==  
 
* [[WinSetTitleAndIcon.c - Example code]]
* [[WinSetTitleAndIcon.c - Example code]]  
* [[WinSetTitleAndIcon.def - Linkage definitions]]
* [[WinSetTitleAndIcon.def - Linkage definitions]]  
 


[[Category:The OS/2 API Project]]
[[Category:Win]]

Latest revision as of 19:42, 14 August 2019

Prototype

APIRET16 APIENTRY16 WinSetTitleAndIcon (PSZ szTitle, PSZ szIconPath);

Linkage Definition

IMPORTS WinSetTitleAndIcon = PMSHAPI.97

Parameters

PSZ szTitle
New window title text.
PSZ szIconPath
New window icon file name (full path).

Comments

This function is for VIO programs, and allows them to set their containing window's title text and icon. I have found that the Workplace Shell has a tendency to override this function.

Example Code