PM_UserProfileChanged

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

Const.PM_UserProfileChanged

The Const.PM_UserProfileChanged message is sent to the window that invoked the property dialog for user globals, when the user selects OK or Apply in the dialog.

Parameters

Name Description
wParamUnused
sChanges = SalString.FromHandle(Sys.lParam) List of all globals and their new values. The list is on the format "<global name><CHAR_US><value><CHAR_RS><global name>…"

Returns

Unused (the Framework ignores the return value of this message)

Example

This example uses the Const.PM_UserProfileChanged message to clear the window and update the window title when the user global settings have been changed.

On PM_UserProfileChanged
   ! Clear form and update window title
   Call DataSourceClear( METHOD_Execute, 0 )
   Call SetWindowTitle( )
C# code
public new SalBoolean _ProfileWrite(SalString sProfileName, SalString sProfileSection)
{
	#region Local Variables
	SalString lsAllChanges = "";
	#endregion
	
	#region Actions
	using (new SalContext(this))
	{
		// Apply changes and clear flags
		lsAllChanges = NewSettingsSet();
		Sal.SendMsg(i_hWndInvoker, Const.PM_UserProfileChanged, 0, lsAllChanges.ToHandle());
		Sal.TblSetFlagsAnyRows(tblUserParameters, ((Sys.ROW_Edited | Sys.ROW_New) | Sys.ROW_MarkDeleted),
false, 0, 0); return true; } #endregion }